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

@nik2208/sqlite-gui-node

v2.0.4

Published

GUI for Node js SQLite databases, extended to support MySQL, PostgreSQL or any other SQL databases. Provides an intuitive interface for managing and querying databases.

Readme

GUI for Node.js Databases

Version npm npm Downloads

build status coverage status

NPM

A modern, dark-themed web GUI for managing your Node.js databases — SQLite, MySQL/MariaDB and PostgreSQL — directly from the browser. Schema discovery is performed automatically via database reflection, so no manual configuration is required.

Installation

To use sqlite-gui-node, you need to have Node.js installed on your machine. You can download Node.js from nodejs.org.

Step 1: Install the Package

$ npm install @nik2208/sqlite-gui-node

Step 2: Import and Initialize

After installing the package, import it in your server's entry file.

const express = require("express");
// import the SQLite DB that you use
const sqlite3 = require("sqlite3").verbose();
const db = new sqlite3.Database("app.db");
// Import the package
const { SqliteGuiNode } = require("sqlite-gui-node");

const app = express();

// start the GUI (default port 8080)
SqliteGuiNode(db).catch((err) => {
  console.error("Error starting the GUI:", err);
});

app.listen(4000);

Step 3: Access the GUI

Once the GUI is started, open your browser and navigate to http://localhost:8080/home to start managing your database.

Using a Custom Port

// Pass the port as the second argument
SqliteGuiNode(db, 3005).catch((err) => {
  console.error("Error starting the server:", err);
});

Using it as Express Js Middleware

If you want to mount the GUI inside the same Express app, use SqliteGuiNodeMiddleware:

const express = require("express");
const sqlite3 = require("sqlite3").verbose();
const db = new sqlite3.Database("app.db");
const { SqliteGuiNodeMiddleware } = require("sqlite-gui-node");

const app = express();
app.use(SqliteGuiNodeMiddleware(app, db));

app.listen(4000);

You can also use createSqliteGuiApp to mount the GUI on a sub-path:

const sqlite3 = require('sqlite3').verbose();
const { createSqliteGuiApp } = require('sqlite-gui-node');
const express = require('express');

const app = express();
const db = new sqlite3.Database('app.db');

const sqliteGuiApp = await createSqliteGuiApp(db);
app.use('/sqlite', sqliteGuiApp);
// Dashboard: http://localhost:4000/sqlite/home

Multi-Database Support

mysql2 and pg are optional dependencies — install only the driver you need.

The library ships with a pluggable adapter layer. Each adapter uses database reflection (information_schema / PRAGMA) to discover tables and columns at runtime, so no manual schema definition is required.

MySQL / MariaDB

$ npm install mysql2
const mysql = require("mysql2/promise");
const { MysqlAdapter, SqliteGuiNodeWithAdapter } = require("sqlite-gui-node");

const pool = mysql.createPool({
  host: "localhost",
  user: "root",
  password: "secret",
  database: "mydb",
});

SqliteGuiNodeWithAdapter(new MysqlAdapter(pool), 8080);

PostgreSQL

$ npm install pg
const { Pool } = require("pg");
const { PostgresAdapter, SqliteGuiNodeWithAdapter } = require("sqlite-gui-node");

const pool = new Pool({
  host: "localhost",
  user: "postgres",
  password: "secret",
  database: "mydb",
});

SqliteGuiNodeWithAdapter(new PostgresAdapter(pool), 8080);

Bring your own adapter

Implement the IDatabaseAdapter interface to add support for any other data source:

import type { IDatabaseAdapter } from "sqlite-gui-node";

class MyCustomAdapter implements IDatabaseAdapter {
  // implement all interface methods …
}

Arguments

SqliteGuiNode(db, port?) / SqliteGuiNodeWithAdapter(adapter, port?)

| Argument | Type | Description | | -------- | --------------------------------- | ------------------------------------------------------------------------ | | db | sqlite3.Database | Your SQLite database instance (legacy API). | | adapter | IDatabaseAdapter | A database adapter (SQLite, MySQL, PostgreSQL, or custom). | | port | number | (Optional) Port for the GUI server. Default is 8080. |

Features

1. CRUD Operations

Perform Create, Read, Update, and Delete operations on your database tables with ease.

  • Create: Add new records via auto-generated forms.
  • Read: Browse paginated table data in a clean data grid.
  • Update: Edit existing records field by field.
  • Delete: Remove rows or entire tables.

2. Write Custom Queries

Write and execute any SQL statement directly from the built-in query editor — SELECT, INSERT, UPDATE, DELETE, CREATE, and more.

3. Save Custom Queries

Save your frequently used queries for quick access and reuse.

4. Generate Query Code Using GUI

Generate INSERT / UPDATE / CREATE TABLE SQL from the GUI without writing a single line of SQL.

5. Export Database

Export the entire database schema and data to a .sql file with one click.

6. Multi-Database Support

Connect to SQLite, MySQL/MariaDB, or PostgreSQL using the adapter-based API. Schema introspection is automatic — no manual table mapping needed.

Updating the Package

$ npm update sqlite-gui-node

Uninstallation

$ npm uninstall sqlite-gui-node

Screenshots

Table view Create table Custom query Edit row

Troubleshooting

If you encounter any issues during installation or usage, please refer to the Issues section on GitHub.

License

The MIT License © 2026.


Improved with ♥ by NiK