npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@journeyapps/sqlcipher

v6.0.0

Published

Asynchronous, non-blocking SQLCipher bindings

Readme

Fork of node-sqlite3, modified to use SQLCipher.

This fork bundles SQLCipher directly and currently ships as a source-build-only package for macOS and Linux.

Supported platforms

  • macOS
  • Linux

Windows and prebuilt binary publishing are intentionally unsupported in this phase.

Installation

pnpm add "@journeyapps/sqlcipher"
# Or: npm install --save "@journeyapps/sqlcipher"

The install script always builds the native addon from source.

On Linux you will need the standard native toolchain plus OpenSSL development headers, for example:

sudo apt-get install -y build-essential libssl-dev pkg-config

Development

This repository uses pnpm for local development and CI on macOS and Linux.

The active CI matrix targets Node 24 and Electron 41 on the supported platforms.

Use nvm use to match the checked-in Node version from .nvmrc when working locally.

pnpm install
pnpm test

Usage

var sqlite3 = require('@journeyapps/sqlcipher').verbose();
var db = new sqlite3.Database('test.db');

db.serialize(function() {
  // This is the default, but it is good to specify explicitly:
  db.run("PRAGMA cipher_compatibility = 4");

  // To open a database created with SQLCipher 3.x, use this:
  // db.run("PRAGMA cipher_compatibility = 3");

  db.run("PRAGMA key = 'mysecret'");
  db.run("CREATE TABLE lorem (info TEXT)");

  var stmt = db.prepare("INSERT INTO lorem VALUES (?)");
  for (var i = 0; i < 10; i++) {
      stmt.run("Ipsum " + i);
  }
  stmt.finalize();

  db.each("SELECT rowid AS id, info FROM lorem", function(err, row) {
      console.log(row.id + ": " + row.info);
  });
});

db.close();

SQLCipher

A copy of the source for SQLCipher 4.14.0 is bundled, which is based on SQLite 3.51.3.

Building from source

Building from source is the only supported install path in this phase.

The published tarball includes the native sources needed for macOS and Linux rebuilds so that pnpm install, npm install, node-gyp rebuild, and rebuild tools such as @electron/rebuild can compile the addon when needed.

Platform notes:

  1. macOS uses SQLCipher's CommonCrypto provider via Security.framework and does not require Homebrew [email protected].
  2. Linux links against the system libcrypto.
  3. Windows is not supported.

Usage with electron-forge / @electron/rebuild

electron-forge uses @electron/rebuild and will rebuild native modules from source by default.

That rebuild path is the expected install path for this package.

To ensure this library is rebuilt along with the rest of your native dependencies, keep it included in your @electron/rebuild configuration:

    "config": {
        "forge": {
            "electronRebuildConfig": {
                "onlyModules": ["@journeyapps/sqlcipher"]
            }
        }
    }

Note: electron-builder should continue to work directly.

OpenSSL

SQLCipher depends on OpenSSL.

On macOS we use CommonCrypto instead of a vendored OpenSSL build.

On Linux we dynamically link against the system OpenSSL / libcrypto.

Windows is not supported in this phase.

API

See the API documentation in the wiki.

Documentation for the SQLCipher extension is available here.

Acknowledgments

Most of the work in this library is from the node-sqlite3 library by MapBox.

Additionally, some of the SQLCipher-related changes are based on a fork by liubiggun.

License

node-sqlcipher is BSD licensed.

SQLCipher is Copyright (c) 2016, ZETETIC LLC under the BSD license.

SQLite is Public Domain