
Research
/Security News
Laravel Lang Compromised with RCE Backdoor Across 700+ Versions
Laravel Lang packages were compromised with an RCE backdoor across hundreds of versions, exposing cloud, CI/CD, and developer secrets.
@trithanka/sql-builder
Advanced tools
A lightweight, function-based, chainable SQL query builder for Node.js using MySQL pool connections.
A lightweight, function-based, chainable SQL query builder for Node.js projects using MySQL/MariaDB pool connections and raw queries. Perfect for building dynamic filters, pagination, and safe SQL operations — without a full-blown ORM.
? bindings)pool.execute / pool.querySELECT, INSERT, UPDATE, DELETEnpm install @trithanka/sql-builder
const { createSelectBuilder } = require('@trithanka/sql-builder');
const filters = {
status: 'active',
role: 'admin',
fromDate: '2024-01-01',
toDate: '2024-12-31'
};
const { sql, values } = createSelectBuilder('SELECT * FROM users')
.where('status = ?', filters.status)
.where('role = ?', filters.role)
.where('created_at >= ?', filters.fromDate)
.where('created_at <= ?', filters.toDate)
.orderBy('created_at', 'desc')
.paginate(10, 0)
.build();
await pool.execute(sql, values);
const { buildInsertQuery } = require('@trithanka/sql-builder');
const { sql, values } = buildInsertQuery('users', {
name: 'Ravi',
age: 25,
gender: 'male'
});
// INSERT INTO users (name, age, gender) VALUES (?, ?, ?)
// ['Ravi', 25, 'male']
await pool.execute(sql, values);
const { buildUpdateQuery } = require('@trithanka/sql-builder');
const { sql, values } = buildUpdateQuery(
'users',
{ name: 'Ravi Kumar', age: 26 },
'id = ?',
[101]
);
// UPDATE users SET name = ?, age = ? WHERE id = ?
// ['Ravi Kumar', 26, 101]
await pool.execute(sql, values);
const { buildDeleteQuery } = require('@trithanka/sql-builder');
const { sql, values } = buildDeleteQuery('users', 'id = ?', [101]);
// DELETE FROM users WHERE id = ?
// [101]
await pool.execute(sql, values);
src/
├── selectBuilder.js
├── insertBuilder.js
├── updateBuilder.js
├── deleteBuilder.js
└── index.js
pool.execute) and need reusable filters?)mysql2, mysql, mariadb modules.whereIn(field, [...values]).between(field, from, to).groupBy(column)MIT © Trithanka
FAQs
A lightweight, function-based, chainable SQL query builder for Node.js using MySQL pool connections.
The npm package @trithanka/sql-builder receives a total of 12 weekly downloads. As such, @trithanka/sql-builder popularity was classified as not popular.
We found that @trithanka/sql-builder 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.

Research
/Security News
Laravel Lang packages were compromised with an RCE backdoor across hundreds of versions, exposing cloud, CI/CD, and developer secrets.

Security News
Socket found a malicious postinstall hook across 700+ GitHub repos, including PHP packages on Packagist and Node.js project repositories.

Security News
Vibe coding at scale is reshaping how packages are created, contributed, and selected across the software supply chain