
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
A lightweight, git-friendly SQL database that stores data as JSON files
MicroSQL is a zero-dependency database engine for JavaScript/TypeScript projects. Run SQL-like queries on JSON files without SQLite, Postgres, or any database server. Perfect for open source projects where you want users to clone and run immediately.
.db filesnpm install microsql
Or with pnpm:
pnpm add microsql
import { MicroSQL } from "microsql";
const db = new MicroSQL("./data");
db.query(`INSERT INTO users (id, name, age, city) VALUES (1, "Alice", 25, "Berlin")`);
db.query(`INSERT INTO users (id, name, age, city) VALUES (2, "Bob", 30, "Paris")`);
const users = db.query(`SELECT * FROM users WHERE age > 20`);
console.log(users);
Each table is stored as ./data/users.json - no database server required.
| Feature | Example |
|---|---|
| SELECT | SELECT name, age FROM users |
| INSERT | INSERT INTO users (id, name) VALUES (1, "Alice") |
| UPDATE | UPDATE users SET age = 26 WHERE name = "Alice" |
| DELETE | DELETE FROM users WHERE id = 1 |
| WHERE | WHERE age > 25 AND city = "Berlin" |
| LIKE | WHERE email LIKE "%@gmail.com" |
| JOIN | JOIN orders ON users.id = orders.user_id WHERE users.age > 25 |
| IN | WHERE id IN (1, 2, 3) |
| ORDER BY | ORDER BY age DESC |
| LIMIT | LIMIT 10 |
=, >, <, >=, <=LIKE with % (any chars) and _ (single char)IN (value1, value2, ...)AND, OR with parentheses supportconst db = new MicroSQL("./data");
db.query(`INSERT INTO products (id, name, price) VALUES (1, "Laptop", 999)`);
const products = db.query(`SELECT * FROM products`);
db.query(`UPDATE products SET price = 899 WHERE id = 1`);
db.query(`DELETE FROM products WHERE id = 1`);
db.query(`SELECT * FROM users WHERE age >= 18 AND city = "Berlin"`);
db.query(`SELECT name FROM users WHERE email LIKE "%@company.com"`);
db.query(`SELECT name FROM users WHERE id IN (1, 3, 5)`);
db.query(`SELECT name, age FROM users ORDER BY age DESC LIMIT 5`);
db.query(`
SELECT name, email
FROM users
WHERE (city = "Berlin" AND age > 25) OR status = "premium"
ORDER BY name ASC
LIMIT 10
`);
MicroSQL is perfect for:
./data/tablename.json)./data/
├── users.json
├── products.json
└── orders.json
Each JSON file contains an array of objects:
[
{ "id": "1", "name": "Alice", "age": "25" },
{ "id": "2", "name": "Bob", "age": "30" }
]
MIT
FAQs
A tiny file-based database for TypeScript and JavaScript projects.
We found that microsql 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.