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

@ichibase/cli

v0.1.0

Published

ichibase migration CLI — extract Supabase / Postgres / MongoDB / Atlas into an ichibase migration bundle and push it to your project.

Downloads

169

Readme

@ichibase/cli

The ichibase CLI. Today it ships the migration commands — extract an existing app from Supabase / Postgres / MongoDB / Atlas into an ichibase migration bundle and push it to your project. (The broader local-dev surface — init / db push / functions deploy — is still future work.)

Extraction runs entirely on your machine against your source. Your source credentials never leave your computer; only the resulting migration bundle is uploaded to your ichibase project.

Install

npm i -g @ichibase/cli      # or: npx @ichibase/cli …

For MongoDB/Atlas sources you also need the MongoDB Database Tools (mongodump) on your PATH.

1. Extract a bundle

# Supabase (tables + data + auth users; bcrypt passwords come across)
# Use the SESSION POOLER string (Settings → Database → Connection string → Session pooler);
# the direct db.<ref>.supabase.co host is IPv6-only and won't resolve on most machines.
ichibase migrate supabase --conn "postgresql://postgres.<ref>:PASSWORD@aws-0-<region>.pooler.supabase.com:5432/postgres" --out ./bundle

# Generic Postgres (schema + data)
ichibase migrate postgres --conn "postgresql://user:pw@host:5432/dbname" --out ./bundle

# MongoDB / Atlas (collections + documents)
ichibase migrate mongodb --conn "mongodb://user:pw@host:27017" --db myapp --out ./bundle
ichibase migrate atlas   --conn "mongodb+srv://user:[email protected]" --db myapp --out ./bundle

This writes an ichibase migration bundle to ./bundle:

manifest.json          source kind, row counts, (mongo) source db name
schema.json            Postgres: tables, columns, PK, uniques, indexes, FKs
data/<table>.ndjson    Postgres rows (one JSON object per line)
data/mongo.archive     Mongo: native mongodump --archive --gzip
auth.ndjson            users (Supabase): id, email, password_hash, oauth links

2. Push it to your project

ichibase migrate push --project <slug> --bundle ./bundle \
  --api https://api.ichibase.com --token "$ICHIBASE_TOKEN"

--token is your ichibase owner token / API key (or set ICHIBASE_TOKEN). The CLI uploads each bundle part to storage via presigned URLs, starts the import, and streams progress until it completes. The final report lists row / document counts and any manual follow-ups.

Notes & limitations (v1)

  • Same-paradigm only: Supabase/Postgres → Postgres, MongoDB/Atlas → MongoDB. Cross-paradigm (SQL→Mongo, Firestore) is coming later.
  • Passwords: imported users keep working — ichibase verifies the source hash (bcrypt) on first login and transparently upgrades it to Argon2id. Users whose hash can't be verified must use "forgot password".
  • User IDs are preserved, so your data's foreign keys to auth.users stay valid.
  • RLS: imported tables have Row-Level Security enabled with no policies — only your service key can read them until you add policies (Dashboard → Database → RLS). Source policies are reported, not auto-translated.
  • Paid plans only.
  • Integers larger than 2^53 should be stored as strings in the source to avoid JSON precision loss; standard bigint ids within that range are fine.