npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@freestyle-sh/with-vscode

v0.0.3

Published

[VS Code](https://github.com/coder/code-server) in the browser for [Freestyle](https://freestyle.sh) VMs, powered by code-server.

Downloads

362

Readme

@freestyle-sh/with-vscode

VS Code in the browser for Freestyle VMs, powered by code-server.

Installation

npm install @freestyle-sh/with-vscode freestyle

Usage

import { freestyle, VmSpec } from "freestyle";
import { VmVscode } from "@freestyle-sh/with-vscode";

const domain = `${crypto.randomUUID()}.style.dev`;

const { vm } = await freestyle.vms.create({
  snapshot: new VmSpec({
    with: {
      vscode: new VmVscode(),
    },
  }),
  domains: [
    {
      domain,
      vmPort: 8080,
    },
  ],
});

console.log(`VS Code available at: https://${domain}`);

With Extensions

const { vm } = await freestyle.vms.create({
  snapshot: new VmSpec({
    with: {
      vscode: new VmVscode({
        workdir: "/root/project",
        extensions: ["esbenp.prettier-vscode", "dbaeumer.vscode-eslint"],
      }),
    },
  }),
  domains: [
    {
      domain,
      vmPort: 8080,
    },
  ],
});

Options

new VmVscode({
  port: 8080,              // Optional: port to run on (default: 8080)
  workdir: "/root",        // Optional: folder to open (default: /root)
  user: "root",            // Optional: user to run as (default: root)
  extensions: [],          // Optional: VS Code extensions to pre-install
})

| Option | Type | Default | Description | |--------|------|---------|-------------| | port | number | 8080 | Port to run code-server on | | workdir | string | "/root" | Folder to open in VS Code | | user | string | "root" | User to run code-server as | | extensions | string[] | [] | VS Code extensions to pre-install (e.g. ["esbenp.prettier-vscode"]) |

API

vm.vscode.route({ domain })

Expose code-server publicly via Freestyle domain routing.

await vm.vscode.route({ domain: "my-editor.example.com" });

vm.vscode.port

Returns the configured port number.

How It Works

The package uses systemd services to install and run code-server during VM creation:

  1. Downloads code-server v4.100.3 from GitHub releases
  2. Installs any specified VS Code extensions
  3. Starts code-server as a systemd service with auto-restart

Authentication is disabled by default. Code-server listens on all interfaces (0.0.0.0).

Documentation