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

drixio

v1.1.7

Published

A lightweight interactive TUI database client

Readme

🌟 Drixio - The Ultimate Zero-Dependency Database CLI & TUI

Drixio is a lightning-fast, zero-dependency Database Manager designed entirely for your terminal. It supports SQLite, PostgreSQL, and MySQL.

Say goodbye to heavy GUI tools like DBeaver or TablePlus. Drixio allows you to instantly view, edit, query, backup, and visually diagram your databases right from your CLI!

✨ Features

  • 📱 Interactive TUI: A beautiful, mouse-free Terminal User Interface.
  • ⚡ Zero Dependencies: Blazing fast, runs instantly via npx.
  • 🛠️ Multi-Database Support: Connects seamlessly to SQLite, PostgreSQL, and MySQL.
  • 📦 Smart Data Importer & Exporter: Import CSV/JSON safely, or export your tables in seconds.
  • 🌱 Intelligent Data Seeder: Automatically generates realistic fake data (emails, phones, dates) to populate your tables for testing.
  • 🗺️ ER Diagram Generator: Scans your database and generates a Mermaid ER diagram that can be instantly imported into Draw.io or viewed on GitHub!
  • 🧩 TypeScript Types Generator: Instantly generate TypeScript interfaces (.d.ts) directly from your database schema!

🚀 Quick Start

You don't need to install anything. Just run:

npx drixio

Drixio will automatically scan your project for a .env file containing a DATABASE_URL (e.g., DATABASE_URL=postgres://user:pass@localhost:5432/mydb). If it doesn't find one, it will launch a setup wizard to help you connect!

You can also pass a connection string directly:

npx drixio "mysql://user:pass@localhost:3306/mydb"

🛠️ Powerful Subcommands

Drixio is not just a TUI; it comes with powerful quick-commands for your CI/CD pipelines or rapid local development.

🔌 1. Initialize a Local Database

Don't have a database yet? Drixio can create one for you!

npx drixio init sqlite
npx drixio init postgres
npx drixio init mysql

(For Postgres and MySQL, it connects to your local server and runs CREATE DATABASE, then automatically drops a configured .env file in your workspace!)

🔍 2. Quick Query

Run SQL instantly and get a beautifully formatted ASCII table result.

npx drixio query "SELECT * FROM users WHERE age > 18"

📥 3. Import Data

Import massive CSV or JSON files safely. Drixio uses smart chunking to prevent memory overload.

npx drixio import data.csv --table users

📤 4. Export Data

Export your tables to CSV or JSON.

npx drixio export users --format csv
npx drixio export * --format json --schema-only

🌱 5. Generate Fake Data (Seed)

Need 500 fake users for testing? Easy. Drixio intelligently analyzes your column names and types to generate realistic data.

npx drixio seed users 500

🗺️ 6. Generate ER Diagram

Automatically generates a drixio_schema.md containing a Mermaid.js diagram of your database.

npx drixio diagram

Tip: Paste the output into Draw.io (Arrange > Insert > Advanced > Mermaid) for a stunning visual layout!

🧩 7. Generate TypeScript Interfaces

Tired of manually writing types? Auto-generate them from your schema!

npx drixio generate-types

(Outputs drixio-types.d.ts with all your table interfaces)

📜 8. Execute SQL Script

Run entire .sql files instantly. Perfect for database migrations.

npx drixio exec ./migrations/init.sql

📦 9. Database Backup

Backup your entire database. For SQLite, it performs a secure binary copy. For Postgres/MySQL, it dumps schema and data into JSON.

npx drixio backup

❓ Help

To view all commands and options:

npx drixio --help

Built with ❤️ for Developers who love the Terminal.