
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
express-sqlite-admin
Advanced tools
A zero-dependency Express middleware that gives you a web admin panel for any SQLite database.
Install. Mount. Done. ✅
npm install express-sqlite-admin
Prerequisites: You need express and better-sqlite3 in your project.
const express = require('express');
const Database = require('better-sqlite3');
const sqliteAdmin = require('express-sqlite-admin');
const app = express();
const db = new Database('my-app.db');
app.use('/admin', sqliteAdmin({
db: db,
password: process.env.ADMIN_PASSWORD,
readonly: false
}));
app.listen(3000);
That's it! Visit http://localhost:3000/admin and log in with your password. 🎉
| Option | Type | Default | Description |
|---|---|---|---|
db | Database | required | A better-sqlite3 database instance |
password | string | required | Password for the admin panel (min 8 characters) |
readonly | boolean | true | Set to false to enable editing and deleting rows |
HttpOnly, SameSite=Strict, auto Secure over HTTPSsqlite_master, all values parameterized⚠️ Always use a strong password and HTTPS in production.
| Feature | Read-only mode | Write mode |
|---|---|---|
| 📋 View all tables with row counts | ✅ | ✅ |
| 🔍 Browse table data (paginated) | ✅ | ✅ |
| 🔎 Search across text columns | ✅ | ✅ |
| ✏️ Edit rows | ❌ | ✅ |
| 🗑️ Delete rows (with confirmation) | ❌ | ✅ |
Once mounted, the middleware provides these routes:
| Route | Description |
|---|---|
GET /login | Login page |
POST /login | Authenticate |
GET /logout | Log out |
GET / | List all tables |
GET /:table | Browse table rows |
GET /:table/:rowid | Edit row form (write mode) |
POST /:table/:rowid | Save row (write mode) |
POST /:table/:rowid/delete | Delete row (write mode) |
All routes are relative to your mount path (e.g. /admin/login).
// Don't hardcode passwords!
sqliteAdmin({ db, password: process.env.ADMIN_PASSWORD })
const db = new Database('my-app.db');
db.pragma('journal_mode = WAL');
app.use('/secret-panel', sqliteAdmin({ db, password: '...' }));
// Now available at /secret-panel
This is intentionally simple. It does not include:
MIT — use it however you want.
FAQs
Zero-dependency Express middleware for a SQLite admin panel
The npm package express-sqlite-admin receives a total of 5 weekly downloads. As such, express-sqlite-admin popularity was classified as not popular.
We found that express-sqlite-admin demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.