
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.
fastify-sqlite-typed
Advanced tools
SQLite integration plugin for Fastify
Effortlessly incorporate SQLite databases into your Fastify applications using fastify-sqlite-typed. This plugin leverages node-sqlite3 and node-sqlite for effective database operations.
For Fastify V 4.X.X click here
node-sqlite3 Documentation: https://github.com/TryGhost/node-sqlite3node-sqlite Documentation: https://github.com/kriasoft/node-sqlitenpm install fastify-sqlite-typed
# or
yarn add fastify-sqlite-typed
Import and register the plugin with your Fastify instance, and execute a sample query:
import fastify from "fastify";
// With fastify-plugin
import { fpSqlitePlugin } from "fastify-sqlite-typed";
// Without fastify-plugin
// import { sqlitePlugin } from "fastify-sqlite-typed";
const app = fastify();
app.register(fpSqlitePlugin, {
dbFilename: "./myDB.db",
// additional options
});
// Example query
app.get("/users", async (request, reply) => {
const users = await app.db.all("SELECT * FROM users");
reply.send(users);
});
fastify.listen({ port: 3000 }, (err, address) => {
if (err) throw err
})
| Option | Description | Type | Default |
|---|---|---|---|
dbFilename | Path to the database file (:memory: for in-memory, "" for disk-based). | String | None |
mode | Database mode, combining Dbmode values. | Dbmode | READWRITE | CREATE | FULLMUTEX |
driverSettings | Settings for the SQLite driver (see DriverSettings below). | Object | Default settings |
DriverSettings| Option | Description | Type | Default |
|---|---|---|---|
verbose | Enables verbose mode for detailed stack traces. | Boolean | false |
cached | Enables database object caching. | Boolean | false |
trace | Function to run on each query execution. | Function | None |
Licensed under MIT.
FAQs
Fastify-sqlite-plugin
We found that fastify-sqlite-typed demonstrated a not healthy version release cadence and project activity because the last version was released 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.