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/sdk

v1.2.2

Published

SDK for managing Tilt dev environments — start, stop, monitor, and control resources

Readme

@tilt-launcher/sdk

SDK for managing Tilt dev environments — start, stop, monitor, and control resources programmatically.

Install

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

Quick Start

One-Shot Query (CLI tools, CI, health checks)

import { queryTilt } from '@tilt-launcher/sdk';

const status = await queryTilt(10350);
if (!status.allHealthy) {
  for (const err of status.errors) {
    console.error(`${err.name}: ${err.lastBuildError ?? err.runtimeStatus}`);
  }
  process.exit(1);
}
console.log(`All ${status.healthy.length} resources healthy`);

Streaming (dashboards, monitoring)

import { watchTilt } from '@tilt-launcher/sdk';

const stop = await watchTilt(10350, (event) => {
  for (const r of event.resources) {
    if (r.runtimeStatus === 'error') console.error(`${r.name} failed!`);
  }
  for (const log of event.logs) {
    console.log(`[${log.resourceName ?? 'system'}] ${log.text}`);
  }
});

// Stop watching when done
setTimeout(stop, 60_000);

Full Client (multiple operations)

import { TiltClient } from '@tilt-launcher/sdk';

const tilt = new TiltClient(10350);

if (await tilt.isReachable()) {
  const resources = await tilt.getResources();
  const status = await tilt.getStatus();
  const myService = await tilt.getResource('my-service');
  await tilt.triggerResource('my-service');
}

tilt.close();

Full Manager (multi-env orchestration)

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

const config: Config = {
  environments: [
    {
      id: 'my-app',
      name: 'My App',
      repoDir: '/path/to/repo',
      tiltfile: 'Tiltfile',
      tiltPort: 10350,
      selectedResources: [],
      cachedResources: [],
    },
  ],
};

const sdk = new TiltManagerSDK(config, {
  onStatusUpdate: (update: StatusUpdate) => console.log('Status:', update.envs),
  onLogDelta: (delta: LogDelta) => console.log('Logs:', delta),
});

sdk.startPolling(5000);
await sdk.startEnv('my-app');

API

queryTilt(port, options?)Promise<TiltStatus>

One-shot: fetch all resources and return a structured status summary. No cleanup needed.

watchTilt(port, callback, options?)Promise<() => void>

Stream resource + log updates via WebSocket. Returns an unsubscribe function.

TiltClient

| Method | Description | | ----------------------- | ----------------------------------------- | | isReachable() | Check if Tilt is running at this port | | getResources() | Fetch all resource statuses | | getStatus() | Fetch resources as a TiltStatus summary | | getResource(name) | Get a single resource by name | | triggerResource(name) | Trigger a resource update | | watch(callback) | Subscribe to WebSocket updates | | close() | Close all connections |

TiltManagerSDK

| Method | Description | | ------------------------------ | ---------------------------------- | | startEnv(envId) | Start a Tilt environment | | stopEnv(envId) | Stop a running environment | | restartEnv(envId) | Kill and restart an environment | | triggerResource(envId, name) | Manually trigger a resource update | | enableResource(envId, name) | Re-enable a disabled resource | | disableResource(envId, name) | Disable a resource | | getEnvLogs(envId) | Get env + resource log lines | | currentStatusUpdate() | Get latest status snapshot | | setConfig(config) | Update config at runtime | | discoverResources(input) | Discover resources from a Tiltfile | | startPolling(intervalMs) | Start polling Tilt APIs | | stopPolling() | Stop polling |

Key Types

| Type | Description | | ---------------- | ----------------------------------------------------- | | TiltResource | Single resource from TiltClient (name, status, etc) | | TiltStatus | Status summary: resources, errors, healthy, pending | | TiltWatchEvent | WebSocket event: resources + logs | | ResourceRow | Resource from TiltManagerSDK (includes health) | | StatusUpdate | Full status snapshot from TiltManagerSDK | | LogDelta | Incremental log update | | Config | App configuration with environment list | | Environment | Single Tilt environment definition | | LauncherBridge | Abstract UI bridge interface |

Requirements

  • tilt must be on $PATH
  • Node.js ≥ 18 or Bun

License

MIT