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

revisium

v2.0.0

Published

A CLI tool for interacting with Revisium instances, providing migration management, schema export, and data export capabilities.

Readme

Revisium CLI

Quality Gate Status codecov Bugs GitHub License GitHub Release

Command-line interface for managing Revisium projects

Overview

A CLI tool for interacting with Revisium instances, providing migration management, schema export, data export, and project synchronization capabilities.

Features

  • Migration Management - Save and apply database migrations with auto-commit
  • Schema Export/Import - Export table schemas and convert to migrations
  • Data Export/Upload - Export and upload rows with smart dependency handling
  • Project Sync - Synchronize schema and data between Revisium projects
  • Bulk Operations - Efficient batch operations with configurable batch size
  • Docker Deployment - Containerized automation for CI/CD

Installation

# Install globally
npm install -g revisium

# Or use with npx
npx revisium --help

Examples

CI/CD Migrations (Prisma-like Workflow)

┌─────────────┐      ┌─────────────┐      ┌─────────────┐
│    DEV      │      │    GIT      │      │   CI/CD     │
│             │      │             │      │             │
│  Revisium   │ save │ migrations  │ push │   apply     │
│    UI       │─────▶│   .json     │─────▶│  migrations │
│             │      │   data/     │      │   + seed    │
└─────────────┘      └─────────────┘      └─────────────┘

Like Prisma, save schema migrations locally and apply them in CI/CD:

# 1. Save migrations locally (during development)
revisium migrate save --file ./revisium/migrations.json \
  --url revisium://cloud.revisium.io/myorg/myproject/master?token=$TOKEN

# 2. Commit to git
git add revisium/migrations.json
git commit -m "Add new schema fields"

# 3. Apply in CI/CD (on deploy)
revisium migrate apply --file ./revisium/migrations.json --commit \
  --url revisium://cloud.revisium.io/myorg/myproject/master

Add to package.json scripts:

{
  "scripts": {
    "revisium:save-migrations": "revisium migrate save --file ./revisium/migrations.json",
    "revisium:apply-migrations": "revisium migrate apply --file ./revisium/migrations.json --commit",
    "start:prod": "npm run revisium:apply-migrations && node dist/main"
  }
}

See Docker Deployment for complete CI/CD examples.

Export & Import (File-based)

┌─────────────┐                          ┌─────────────┐
│   SOURCE    │    migrations.json       │   TARGET    │
│  Revisium   │ ────────────────────▶    │  Revisium   │
│             │        data/             │             │
└─────────────┘                          └─────────────┘

Save project to files for backup or deployment to another instance:

# Export from source
revisium migrate save --file ./migrations.json
revisium rows save --folder ./data

# Import to target
revisium migrate apply --file ./migrations.json --commit \
  --url revisium://target.example.com/org/proj/main
revisium rows upload --folder ./data --commit \
  --url revisium://target.example.com/org/proj/master

Sync (Direct Transfer)

┌─────────────┐                          ┌─────────────┐
│   SOURCE    │    schema + data         │   TARGET    │
│  Revisium   │ ════════════════════▶    │  Revisium   │
│             │       (direct)           │   :draft    │
└─────────────┘                          └─────────────┘

Synchronize directly between two projects without intermediate files:

revisium sync all \
  --source revisium://source.example.com/org/proj/master:head?token=xxx \
  --target revisium://target.example.com/org/proj?token=yyy \
  --commit

Commands

| Command | Description | Documentation | |---------|-------------|---------------| | schema save | Export table schemas to JSON files | Schema Commands | | schema create-migrations | Convert schemas to migration format | Schema Commands | | migrate save | Export migrations to JSON file | Migrate Commands | | migrate apply | Apply migrations from JSON file | Migrate Commands | | rows save | Export table data to JSON files | Rows Commands | | rows upload | Upload table data from JSON files | Rows Commands | | sync schema | Sync schema between projects | Sync Commands | | sync data | Sync data between projects | Sync Commands | | sync all | Full sync (schema + data) | Sync Commands |

Configuration

Configure via environment variables or .env file:

REVISIUM_URL=revisium://cloud.revisium.io/your_org/your_project/main
REVISIUM_USERNAME=your_username
REVISIUM_PASSWORD=your_password

Or use command-line options with URL:

revisium schema save --folder ./schemas \
  --url revisium://cloud.revisium.io/my-org/my-project/develop?token=$TOKEN

See Configuration and URL Format for details.

Documentation

Development

git clone https://github.com/revisium/revisium-cli.git
cd revisium-cli
npm install
npm run build

License

MIT License - see LICENSE file for details.