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

@dipras/nodamin

v1.2.5

Published

Lightweight Database Admin for Node.js

Readme

⚡ Nodamin

Nodamin

Lightweight Database Admin for Node.js — A single-process Adminer alternative powered by Node.js and TypeScript.

Nodamin is a web-based database administration tool inspired by Adminer. Built with Node.js and TypeScript, it is compiled into a highly portable package that requires zero external configuration to run.

✨ Features

  • 🚀 Zero Configuration - Instantly run via npx with no setup required.
  • 🔌 Multiple Database Support - MySQL & SQLite (Available), PostgreSQL, MongoDB (Planned)
  • 🎨 Simple & Clean UI - Toggle between Light and Dark themes.
  • ⚙️ Custom Host & Port - Configure binding ports and hosts via CLI or environment variables.
  • 🔧 Full CRUD Operations - Insert, update, delete, truncate, and drop tables/rows.
  • 📝 SQL Query Editor - Execute raw SQL with an interactive result viewer.
  • 📊 Table Browser - Discover tables with pagination, sorting, and quick actions.
  • 🔍 Database Explorer - Browse databases, tables, and structures easily.
  • 📦 Export/Import - Export database/table to SQL dumps, or import existing SQL files.
  • Bulk Actions - Select multiple tables/rows for bulk operations.

🚀 Quick Start

The fastest and easiest way to use Nodamin is via npx (requires Node.js):

# Automatically download & run via npx
npx @dipras/nodamin

# Run with a custom port and host
npx @dipras/nodamin --port 8080 --host 127.0.0.1

Open your browser to the URL displayed in your terminal (default: http://localhost:3088) and connect to your MySQL or SQLite database.

# Clone repository
git clone https://github.com/dipras/nodamin.git
cd nodamin

# Install dependencies
npm install

# Build the distribution file
npm run build

# Run
npm start

📝 Notes for SQLite:

  • You can upload an existing .db file directly via the UI.
  • Selecting the Create New option will provision a temporary In-Memory database (data is lost upon server restart). This is perfect for quick testing and prototyping.

🛠️ Configuration & CLI Variables

Nodamin can be configured using CLI arguments or Environment Variables:

| CLI Argument | Environment Variable | Default | Description | | :--- | :--- | :--- | :--- | | --port <number> | NODAMIN_PORT | 3088 | Port for the web interface. | | --host <string> | NODAMIN_HOST | 0.0.0.0 | IP Address/Host to bind the server to. |

Example using Environment Variables:

NODAMIN_HOST=127.0.0.1 NODAMIN_PORT=9000 npx @dipras/nodamin

🛠️ Development

# Type check
npm run typecheck

# Build single file (production)
npm run build

# Development mode with watch
npm run dev

Project Structure

src/
├── index.ts           # Entry point & CLI parser
├── server.ts          # HTTP server
├── router.ts          # Request router & body parser
├── routes.ts          # Route handlers
├── types.ts           # TypeScript type definitions
├── db/
│   └── mysql.ts       # MySQL driver & operations
└── views/
    └── pages.ts       # HTML templates (embedded)

📋 Current MySQL Features

  • ✅ Connect / Disconnect
  • ✅ List databases
  • ✅ Create / Drop database
  • ✅ List tables with metadata (engine, rows, size, collation)
  • ✅ View table structure (columns, types, keys, defaults)
  • ✅ Browse table data with pagination & sorting
  • ✅ Insert, Edit, Delete rows
  • ✅ Drop & Truncate tables
  • ✅ Raw SQL query editor with result display
  • ✅ Create table with GUI (column types, constraints)
  • ✅ Export table to SQL dump
  • ✅ Export entire database to SQL dump
  • ✅ Import SQL files
  • ✅ Bulk actions for tables (drop, truncate, export multiple)
  • ✅ Bulk delete for rows
  • ✅ Light/Dark theme toggle with localStorage persistence
  • ✅ Error handling with user-friendly messages

🗺️ Roadmap

Database Drivers

  • [ ] PostgreSQL - Second priority after MySQL
  • [x] SQLite - File-based & In-Memory database support ✅
  • [ ] MariaDB - Should be easy since it's MySQL-compatible
  • [ ] MongoDB - NoSQL support with collection/document view
  • [ ] Microsoft SQL Server - Enterprise database support
  • [ ] Redis - Key-value store browser

Features

  • [x] Export - Export table/query results to SQL dump ✅
  • [x] Import - Import SQL files ✅
  • [x] Table creation - Create table with GUI (columns, types, constraints) ✅
  • [x] Dark/Light theme toggle
  • [x] Bulk actions - Select and operate on multiple tables/rows ✅
  • [ ] Alter table - Add/modify/drop columns via GUI
  • [ ] Index management - Create/drop indexes
  • [ ] Foreign key viewer - View and manage foreign key relationships
  • [ ] Export to CSV/JSON - Additional export formats
  • [ ] Query history - Save and recall previous SQL queries
  • [ ] Multiple connections - Save and switch between database connections
  • [ ] Keyboard shortcuts - Quick navigation
  • [ ] Query autocomplete - Basic SQL autocomplete in query editor
  • [ ] Table search/filter - Filter tables in sidebar
  • [ ] Column-level filtering - Filter data by column value
  • [ ] Stored procedures/functions - View and execute
  • [ ] User/privileges management - Manage database users
  • [ ] ERD viewer - Visual entity relationship diagram
  • [x] Connection via URL - Support connection string format (e.g., mysql://user:pass@host:port/db)
  • [ ] Authentication - Optional login to protect the admin panel
  • [x] npx support - Run directly with npx @dipras/nodamin

📝 License

GPL-2.0 - Same as Adminer

🙏 Credits

Inspired by Adminer by Jakub Vrána.

Built with Node.js, TypeScript, and ❤️