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

@tilt-launcher/sidecar

v1.2.2

Published

Standalone sidecar binary + typed client for the Tilt Launcher SDK — JSON-RPC 2.0 over stdio

Readme

@tilt-launcher/sidecar

Standalone sidecar process + typed client for the Tilt Launcher SDK. Communicates via JSON-RPC 2.0 over stdio — use it from any runtime or language.

Install

bun add @tilt-launcher/sidecar
# or
npm install @tilt-launcher/sidecar

This installs both the tilt-sidecar binary and the typed TypeScript client. The SDK (@tilt-launcher/sdk) is included as a dependency — no need to install it separately.

Quick Start

import { createSidecarClient } from '@tilt-launcher/sidecar';

const sidecar = createSidecarClient();
await sidecar.ready();

// Everything is typed — same API as the SDK
const config = await sidecar.getConfig();
const status = await sidecar.getStatus();

await sidecar.startEnv('my-app');

sidecar.onStatusUpdate((update) => {
  console.log('Status changed:', update);
});

sidecar.onLogDelta((delta) => {
  console.log('New logs:', delta);
});

// Clean up
sidecar.close();

Why use the sidecar instead of the SDK directly?

| | SDK | Sidecar | | ----------------- | ------------------------------------------------ | ----------------------------- | | Use when | Your app is Bun/Node and you want direct control | You want a managed subprocess | | Process model | In-process | Separate binary | | Language | TypeScript only | Any (JSON-RPC over stdio) | | Lifecycle | You manage polling and cleanup | Sidecar handles it | | Best for | Libraries, tight integration | Apps, CLIs, multi-language |

API

createSidecarClient(options?)

Spawns the sidecar and returns a typed client.

const sidecar = createSidecarClient({
  binPath: '/path/to/tilt-sidecar', // optional, auto-detected
  env: { TILT_LAUNCHER_CONFIG: '/custom/config.json' }, // optional
  readyTimeoutMs: 15000, // optional, default 10s
});

Commands

| Method | Returns | | ------------------------------ | ------------------------------------------------------ | | ready() | Promise<void> — resolves when sidecar is initialized | | getConfig() | Promise<Config> | | saveConfig(config) | Promise<Result> | | getStatus() | Promise<StatusUpdate> | | getLogs(envId) | Promise<{ envLogs, resourceLogs }> | | startEnv(envId) | Promise<Result> | | stopEnv(envId) | Promise<Result> | | restartEnv(envId) | Promise<Result> | | triggerResource(envId, name) | Promise<Result> | | enableResource(envId, name) | Promise<Result> | | disableResource(envId, name) | Promise<Result> | | discoverResources(input) | Promise<DiscoverResult> | | getHomeDir() | Promise<string> | | classifyTiltfilePath(path) | Promise<PickedTiltfile> | | readDir(dirPath) | Promise<ReadDirResult> | | close() | Kills the sidecar process |

Events

sidecar.onStatusUpdate((update: StatusUpdate) => { ... });
sidecar.onLogDelta((delta: LogDelta) => { ... });
sidecar.onConfigUpdated((config: Config) => { ... });

Types

All types are re-exported from @tilt-launcher/sdk:

import type { Config, StatusUpdate, LogDelta, ResourceRow } from '@tilt-launcher/sidecar';

Using the binary directly

The sidecar binary can be used from any language via JSON-RPC 2.0 over stdin/stdout:

# Spawn it
./node_modules/.bin/tilt-sidecar

# Send a request (newline-delimited JSON)
{"jsonrpc":"2.0","id":1,"method":"getStatus","params":{}}

# Receive a response
{"jsonrpc":"2.0","id":1,"result":{"envs":{}}}

# Receive push notifications (no id)
{"jsonrpc":"2.0","method":"statusUpdate","params":{...}}

Requirements

  • tilt must be on $PATH
  • macOS or Linux (no Windows support yet)

License

MIT