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

@danceroutine/tango-cli

v0.1.0

Published

Unified Tango command line interface for migrations and code generation

Readme

@danceroutine/tango-cli

@danceroutine/tango-cli provides the tango command-line executable.

This package gives Tango one unified command surface for project setup and maintenance workflows. It exists so that application developers can learn one CLI instead of having to remember which package owns which command. Today that means migrations and project scaffolding. Over time it also gives Tango a stable place to compose future command modules.

Install

pnpm add -D @danceroutine/tango-cli

The CLI is typically a development dependency because it supports setup, generation, and migration workflows rather than application runtime behavior.

What the CLI is for

Use the tango binary when you want to:

  • scaffold a new Tango project
  • generate migrations from model metadata
  • apply migrations to a database
  • inspect a migration plan or status

The CLI package owns the executable itself. The feature packages still own their underlying behavior. For example, @danceroutine/tango-migrations owns migration generation and execution, while @danceroutine/tango-cli is the package that exposes those workflows through the tango binary.

Common commands

tango new my-app --framework express --package-manager pnpm --dialect sqlite
tango make:migrations --dialect sqlite --models ./src/models.ts --dir ./migrations --name add_posts
tango migrate --dialect sqlite --dir ./migrations --db ./app.sqlite
tango plan --dialect sqlite --dir ./migrations --db ./app.sqlite
tango status --dialect sqlite --dir ./migrations --db ./app.sqlite

The top-level new command is also available as codegen new. Both paths exist so that the first-run project bootstrap workflow feels straightforward while still fitting into the broader command-module structure.

Using the package programmatically

The root export is intentionally small. If you need to embed Tango's CLI into a custom binary or test harness, start with runCli() and createDefaultCommandModules():

import type { Argv } from 'yargs';
import {
  createDefaultCommandModules,
  runCli,
  type TangoCliCommandModule,
} from '@danceroutine/tango-cli';

class AppCommandModule implements TangoCliCommandModule {
  readonly id = 'app';

  register(parser: Argv): Argv {
    return parser.command(
      'seed-demo-data',
      'Load demo data into the local database',
      () => {},
      async () => {},
    );
  }
}

await runCli({
  modules: [...createDefaultCommandModules(), new AppCommandModule()],
});

This approach keeps command composition modular. Tango's built-in modules remain intact, and your application can add its own command tree alongside them.

Documentation

  • Official documentation: https://danceroutine.github.io
  • CLI reference: https://danceroutine.github.io/reference/cli-api
  • Migrations topic: https://danceroutine.github.io/topics/migrations

Development

pnpm --filter @danceroutine/tango-cli build
pnpm --filter @danceroutine/tango-cli typecheck
pnpm --filter @danceroutine/tango-cli test

For the wider contributor workflow, use:

  • https://danceroutine.github.io/contributing

License

MIT