
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.
@effect-native/libsqlite
Advanced tools
Universal, version-pinned libsqlite3 that Just Works — prebuilt via Nix with per-platform paths.
Universal, version‑pinned libsqlite3 that Just Works — prebuilt via Nix for macOS and Linux (glibc), with three usage styles.
bun add @effect-native/libsqlite@3.50
The npm version matches the bundled SQLite version (e.g., 3.50.2). JS‑only fixes may use -N suffix (e.g., 3.50.2-1).
import { pathToLibSqlite } from "@effect-native/libsqlite"
// IMPORTANT: gotta setCustomSQLite before loading any databases
Database.setCustomSQLite(pathToLibSqlite)
import { linux_x86_64 } from "@effect-native/libsqlite/paths"
// IMPORTANT: gotta setCustomSQLite before loading any databases
Database.setCustomSQLite(linux_x86_64)
import { getLibSqlitePath } from "@effect-native/libsqlite/effect"
import * as Effect from "effect/Effect"
const program = Effect.gen(function* () {
// IMPORTANT: gotta setCustomSQLite before loading any databases
Database.setCustomSQLite(yield* getLibSqlitePath)
const sql = yield* SqliteClient
sql.loadExtension(yield* getPathToCrSqliteExtension)
})
If you'd like musl or Windows support, please open an issue and we'll prioritize it. We actively want to support platforms you care about.
major.minor mirrors SQLite; patch encodes both SQLite patch and wrapper patch.
patch = sqlitePatch * 100 + wrapperPatch3.50.2, first wrapper → 3.50.200; next wrapper → 3.50.201.^3.50.0 ranges see wrapper updates within the same SQLite minor.lib/metadata.json and surfaced in docs./* eslint-disable @typescript-eslint/no-require-imports */
// GOAL: embed and use libsqlite and crsqlite in a compiled Bun single file executable
import { Database } from "bun:sqlite"
import { getCrSqliteExtensionPathSync } from "@effect-native/libcrsql" with { type: "macro" }
import { getLibSqlitePathSync } from "@effect-native/libsqlite" with { type: "macro" }
const embeddedLibSqlitePath = String(require(getLibSqlitePathSync()))
const embeddedCrSqliteExtensionPath = String(require(getCrSqliteExtensionPathSync()))
if (Bun.embeddedFiles.length) {
const embeddedLibSqliteFile = Bun.file(embeddedLibSqlitePath)
const exportedLibSqlitePath = `./.${embeddedLibSqliteFile.name}`
Bun.write(exportedLibSqlitePath, embeddedLibSqliteFile)
Database.setCustomSQLite(exportedLibSqlitePath)
} else {
Database.setCustomSQLite(embeddedLibSqlitePath)
}
const db = new Database(":memory:")
console.log("LibSqlite loaded successfully?", db.query("SELECT sqlite_version() AS sqliteVersion").get())
try {
db.loadExtension(embeddedCrSqliteExtensionPath, "sqlite3_crsqlite_init")
} catch (cause) {
if (!String(cause).includes("no such file")) throw cause
const embeddedCrSqliteExtensionFile = Bun.file(embeddedCrSqliteExtensionPath)
const exportedCrSqliteExtensionPath = `./.${embeddedCrSqliteExtensionFile.name}`
Bun.write(exportedCrSqliteExtensionPath, embeddedCrSqliteExtensionFile)
db.loadExtension(exportedCrSqliteExtensionPath, "sqlite3_crsqlite_init")
}
console.log("CRSQLite extension loaded successfully?", db.query("SELECT hex(crsql_site_id()) AS siteId").get())
FAQs
Universal, version-pinned libsqlite3 that Just Works — prebuilt via Nix with per-platform paths.
The npm package @effect-native/libsqlite receives a total of 6 weekly downloads. As such, @effect-native/libsqlite popularity was classified as not popular.
We found that @effect-native/libsqlite 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.