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

@gasboost/cli

v0.3.11

Published

Developer tooling for the Gasboost ecosystem

Readme

@gasboost/cli

Developer-facing command entry point for the gasboost ecosystem.

Install:

pnpm add -D @gasboost/cli

The CLI coordinates developer tooling around a gasboost project.

Its responsibilities include:

  • command routing
  • loading project configuration
  • opening the gasboost console
  • loading application TypeScript modules
  • generating RTDB Security Rules
  • filesystem output
  • diagnostics
  • process exit status

Commands

Project Console

Open the local project console:

gasboost console open

Generated projects normally expose:

{
  "scripts": {
    "console": "gasboost console open"
  }
}

so the console can be opened with:

pnpm console

To avoid automatically opening the browser:

gasboost console open --no-browser

The browser UI itself is implemented by @gasboost/console.

The CLI is responsible for starting it and connecting it to the current project.

Console operations are registered operations with structured input. The browser is not given an arbitrary local shell endpoint.

RTDB Security Rules

Generate Firebase Realtime Database Security Rules:

gasboost rtdb rules

Configuration is read from:

gasboost.config.ts

Canonical configuration:

import { defineGasboostConfig } from "@gasboost/config";

export default defineGasboostConfig({
  firebase: {
    realtimeDatabase: {
      source: "./src/backend/lib/rtdb.ts",
      out: "./database.rules.json",
    },
  },
});

The legacy:

rtdb: {
  source: "...",
  out: "...",
}

shape is normalized for compatibility, but new projects should use:

firebase.realtimeDatabase

Project Configuration

gasboost.config.ts is loaded through @gasboost/config.

It represents the gasboost Project Definition / Desired State rather than CLI-specific preferences.

gasboost.config.ts
        ↓
@gasboost/config
        ↓
@gasboost/cli

The canonical config API is:

import { defineGasboostConfig } from "@gasboost/config";

@gasboost/cli also re-exports config types for compatibility, but project documentation should use @gasboost/config directly.

RTDB Definition

The module configured by:

firebase.realtimeDatabase.source

must export rtdb.

For example:

import { FirebaseRtdb } from "@gasboost/realtime-firebase";
import { itemsTable } from "../../shared/tables";
import { itemsRls } from "./rls";

export const rtdb = FirebaseRtdb.generate({
  tables: [itemsTable] as const,

  rowLevelSecurity: [itemsRls],

  principal: {
    userId: "auth.uid",
  },
});

The CLI loads the module and invokes:

rtdb.rules()

The resulting rules are written to the configured output.

For example:

database.rules.json

TypeScript Module Loading

The CLI uses jiti to load application TypeScript modules.

This allows project modules to use the project's normal TypeScript configuration, including path aliases.

Example:

{
  "compilerOptions": {
    "baseUrl": ".",
    "paths": {
      "@/*": ["./src/*"]
    }
  }
}

Application code can continue to use:

import { something } from "@/something";

The application does not need to rewrite imports just for gasboost CLI execution.

Responsibility Boundaries

@gasboost/cli does not implement Firebase authorization compilation or the console UI itself.

For RTDB rules:

@gasboost/realtime-firebase
  ├─ RLS projection
  ├─ authorization layout
  ├─ runtime path generation
  ├─ projectability validation
  └─ Security Rules generation

@gasboost/cli
  ├─ config load
  ├─ TypeScript module load
  ├─ command routing
  ├─ filesystem output
  ├─ diagnostics
  └─ exit code

For the project console:

@gasboost/cli
  ↓
start / route command

@gasboost/console
  ↓
gasboost-specific lifecycle UI + operations

@gasboost/console-runtime
  ↓
generic localhost operation runtime

Requirements

  • Node.js 24+
  • pnpm

License

MIT