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

ailocalkit

v1.0.0

Published

Manages a local application process, starting it when needed and stopping it after inactivity

Readme

Spawn Apps

A utility for managing local application processes, starting them when needed and stopping them after inactivity.

Features

  • Start and stop applications with a single line of code

  • Automatically manage process lifecycle

  • Set custom timeouts for auto-shutdown

  • Register custom applications with OS-specific paths

  • TypeScript support with type definitions

  • Cross-platform support (macOS, Windows, Linux)

TypeScript Setup

This project is now written in TypeScript. The build process generates JavaScript files and TypeScript declaration files (.d.ts) in the dist directory.

To build the project:

  1. Install dependencies:

    npm install
  2. Build the TypeScript code:

    npm run build

    This will compile the TypeScript files to JavaScript in the dist directory.

  3. Run the example:

    npm run start:example

Alternatively, you can run the build script which handles all of the above:

./build.sh

Development

  • Run in watch mode to automatically recompile on changes:

    npm run dev
  • Clean the build directory:

    npm run clean

Usage

After building, you can import the library from the dist directory:

import { startApp, stopApp } from "./dist/index.js";
// Or when installed as a package:
// import { startApp, stopApp } from "spawn-apps";

// Start an application with arguments (returns a Promise)
await startApp("Desktop Crawler", ["--headless", "--firecrawl-headless"]);

// Your application code here...

// Stop the application when done
stopApp("Desktop Crawler");

API Reference

startApp(appName: string, args: string[] = [], timeout: number = DEFAULT_TIMEOUT): Promise<boolean>

Starts an app with the given arguments and sets an auto-shutdown timeout.

stopApp(appName: string, timeout: number = 0): boolean

Stops the app immediately or schedules a stop after the specified timeout.

registerApp(appName: string, options: AppOptions): void

Registers a new app with the registry, specifying bundle ID and OS-specific paths.

License

MIT