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

@quantize/cellar-server

v0.1.4

Published

[![license](https://img.shields.io/npm/l/@quantize/cellar-cli)](https://gitlab.com/quantize-bg/cellar/-/blob/main/LICENSE)

Readme

@quantize/cellar-server

license

Self-hosted secrets manager. Encrypts secrets with AES-256-GCM, stores them in a single SQLite file, and serves them over a REST API. Runs on ~15 MB of RAM.

Quick Start

Via CLI (recommended)

npm i -g @quantize/cellar-cli
cellar server start                  # pulls Docker image & starts container
cellar login http://localhost:3000   # auto-detects fresh server, runs setup

Docker (manual)

docker run -d -p 3000:3000 -v cellar-data:/data registry.gitlab.com/quantize-bg/cellar

From Source

git clone https://gitlab.com/quantize-bg/cellar.git
cd cellar && pnpm install
pnpm dev   # starts with hot reload on :3000

First-time Setup

If not using the CLI, the first request to /api/v1/setup initializes the database:

curl -X POST http://localhost:3000/api/v1/setup \
  -H 'Content-Type: application/json' \
  -d '{"name": "admin"}'

Save the returned API key — it is shown only once.

API Reference

All endpoints require Authorization: Bearer <api-key> except health and setup.

Health & Setup

GET  /api/v1/health          # { status: "ok", initialized: true }
POST /api/v1/setup           # { name: "admin" } → admin user + API key

Projects

GET    /api/v1/projects                # list all
POST   /api/v1/projects                # { name: "my-app" }
GET    /api/v1/projects/:id            # get one
DELETE /api/v1/projects/:id            # delete

Environments

GET    /api/v1/projects/:id/envs              # list
POST   /api/v1/projects/:id/envs              # { name: "Production", slug: "production" }
DELETE /api/v1/projects/:id/envs/:slug        # delete

Secrets

GET    /api/v1/projects/:id/envs/:slug/secrets          # list (?format=env|json)
GET    /api/v1/projects/:id/envs/:slug/secrets/:key     # get one
PUT    /api/v1/projects/:id/envs/:slug/secrets/:key     # upsert { value: "..." }
DELETE /api/v1/projects/:id/envs/:slug/secrets/:key     # delete
POST   /api/v1/projects/:id/envs/:slug/secrets/bulk     # { secrets: [{ key, value }] }

Users

GET    /api/v1/users                   # list
POST   /api/v1/users                   # { name: "CI Bot", role: "member" }
DELETE /api/v1/users/:id               # delete

API Keys

GET    /api/v1/users/:id/api-keys              # list
POST   /api/v1/users/:id/api-keys              # { name: "deploy" }
DELETE /api/v1/users/:id/api-keys/:keyId       # revoke

Access Control

GET    /api/v1/projects/:id/access/:userId     # list
PUT    /api/v1/projects/:id/access/:userId     # { permission: "read" | "write" }
DELETE /api/v1/projects/:id/access/:userId     # revoke

Security

| Layer | Implementation | |-------|----------------| | Encryption | AES-256-GCM with unique 12-byte IV per secret | | Master key | 256-bit, stored at data/cellar.key (0600) or CELLAR_MASTER_KEY env var | | API keys | SHA-256 hashed before storage; raw key shown only at creation | | Database | SQLite with WAL mode + foreign key constraints |

Configuration

| Env var | Default | Description | |---------|---------|-------------| | PORT | 3000 | Server port | | HOST | 0.0.0.0 | Bind address | | DATA_DIR | ./data | Data directory (SQLite file + master key) | | CELLAR_MASTER_KEY | auto-generated | Base64-encoded 256-bit key |

Stack

  • Runtime: Bun with built-in SQLite
  • Framework: Hono (~14kb)
  • Database: SQLite (6 tables: users, api_keys, projects, project_access, environments, secrets)
  • Encryption: Node.js crypto module (AES-256-GCM)

Database Schema

Six tables, all SQLite with WAL mode and foreign keys enabled.

| Table | Columns | References | |-------|---------|------------| | users | id, name, role, created_at | — | | api_keys | id, user_id, key_hash, key_prefix, name, created_at, last_used_at | user_id → users | | projects | id, name, created_at | — | | project_access | user_id, project_id, permission | user_id → users, project_id → projects | | environments | id, project_id, name, slug, created_at | project_id → projects | | secrets | id, environment_id, key, encrypted_value, iv, created_at, updated_at | environment_id → environments |

All foreign keys cascade on delete.

Part of the Cellar Monorepo

| Package | Description | |---------|-------------| | @quantize/cellar-server | This package — Hono + SQLite server | | @quantize/cellar-cli | Interactive + scriptable CLI (npm) |

License

MIT