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

@gravito/launchpad

v1.2.1

Published

Container lifecycle management system for flash deployments

Downloads

585

Readme

@gravito/launchpad

🚀 Instant Deployment System for Bun. Container lifecycle management and zero-downtime deployment.

Gravito Launchpad is a specialized orchestration system built for the Bun runtime. It uses a unique "Rocket Pool" architecture to pre-warm containers, enabling sub-second deployments by injecting code into already running instances instead of building images from scratch.

✨ Core Features

  • 🔥 Rocket Pool: Pre-warmed container pool eliminates cold start times.
  • 💉 Payload Injection: Skip docker build. Code is injected via docker cp in milliseconds.
  • 🏗️ DDD Architecture: Built on @gravito/enterprise with rigorous state machine management.
  • ♻️ Auto-Recycling: Containers are automatically refurbished and returned to the pool after missions.
  • 🤖 GitHub Integration: Built-in webhook handler for PR previews and automated comments.
  • 🛡️ Secure Isolation: Each deployment runs in an isolated container environment.

🏗️ Architecture Overview

Launchpad follows Clean Architecture principles:

Domain Layer

  • Rocket: The aggregate root representing a container instance.
  • Mission: Represents a deployment task (repo, commit, branch).
  • Status Machine: Strictly manages transitions (Idle -> Assigned -> Deployed -> Recycling).

Application Layer

  • PoolManager: Orchestrates the lifecycle of Rockets (warmup, assignment, recycling).
  • PayloadInjector: Handles the git clone and code injection process.
  • MissionControl: High-level facade for launching missions.
  • RefurbishUnit: Cleans up used containers for reuse.

Infrastructure Layer

  • DockerAdapter: Low-level communication with Docker daemon.
  • ShellGitAdapter: Git operations via shell commands.
  • BunProxyAdapter: Manages reverse proxying to active containers.

🚀 Quick Start

Installation

bun add @gravito/launchpad

Basic Usage

import { PoolManager, PayloadInjector, Mission } from '@gravito/launchpad'
import { DockerAdapter, ShellGitAdapter, InMemoryRocketRepository } from '@gravito/launchpad/infra'

// Initialize adapters
const docker = new DockerAdapter()
const repo = new InMemoryRocketRepository()
const manager = new PoolManager(docker, repo)

// 1. Warmup the pool (Create 3 idle containers)
await manager.warmup(3)

// 2. Create a mission
const mission = Mission.create({
  id: 'mission-1',
  repoUrl: 'https://github.com/user/repo.git',
  commitSha: 'latest'
})

// 3. Launch! (Assigns a rocket and injects code)
const rocket = await manager.assignMission(mission)
const injector = new PayloadInjector(docker, new ShellGitAdapter())
await injector.deploy(rocket)

console.log(`Mission deployed to http://localhost:${rocket.port}`)

Running as a Service (Orbit)

Launchpad can run as a Gravito Orbit, providing a REST API and Webhook support.

import { bootstrapLaunchpad } from '@gravito/launchpad'

const { port } = await bootstrapLaunchpad()
console.log(`Launchpad Server running on port ${port}`)

⚙️ Configuration

Launchpad relies on Docker. Ensure Docker is installed and running.

| Environment Variable | Description | Default | |----------------------|-------------|---------| | GITHUB_TOKEN | Token for GitHub API access | (Required for PR comments) | | GITHUB_WEBHOOK_SECRET | Secret for verifying webhooks | (Optional) | | POOL_SIZE | Target number of pre-warmed containers | 3 |

🧪 Testing

bun test

📄 License

MIT © Gravito Framework