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

fortress-cli

v1.0.0

Published

Fortress CLI - Node.js bindings for Fortress secure database system with enterprise-grade encryption

Readme

fortress-cli-napi

NAPI bindings for Fortress CLI - Node.js native bindings for the Fortress secure database CLI tool.

Installation

npm install fortress-cli-napi

Usage

const { FortressCLI } = require('fortress-cli-napi');

// Initialize Fortress CLI
const cli = new FortressCLI();

// Run CLI commands programmatically
await cli.init();
await cli.serverStart();
await cli.keyCreate({ name: 'my-key', algorithm: 'aes256-gcm' });

Features

  • Native Performance: NAPI bindings for maximum performance
  • Complete CLI API: All CLI commands available programmatically
  • Cross-Platform: Windows, macOS, and Linux support
  • TypeScript Support: Full TypeScript definitions included
  • Error Handling: Comprehensive error reporting

API Reference

FortressCLI

Constructor

const cli = new FortressCLI(options?);

Methods

init()

Initialize Fortress configuration.

await cli.init();
serverStart(options?)

Start the Fortress server.

await cli.serverStart({ 
  host: '0.0.0.0', 
  port: 8080,
  daemon: false 
});
keyCreate(options)

Create a new encryption key.

await cli.keyCreate({
  name: 'my-key',
  algorithm: 'aes256-gcm',
  length: 256
});
keyList()

List all encryption keys.

const keys = await cli.keyList();
console.log(keys);
encrypt(options)

Encrypt data.

const encrypted = await cli.encrypt({
  keyId: 'my-key',
  input: 'secret data',
  output: 'encrypted.dat'
});
decrypt(options)

Decrypt data.

const decrypted = await cli.decrypt({
  keyId: 'my-key',
  input: 'encrypted.dat'
});

Supported Algorithms

  • aegis256 - AEGIS-256 (recommended)
  • aes256-gcm - AES-256-GCM
  • chacha20-poly1305 - ChaCha20-Poly1305

Error Handling

try {
  await cli.keyCreate({ name: 'my-key' });
} catch (error) {
  console.error('CLI Error:', error.message);
  console.error('Error Code:', error.code);
}

Development

Building from Source

# Clone repository
git clone https://github.com/Genius740Code/Fortress.git
cd Fortress/crates/fortress-cli-napi

# Install dependencies
npm install

# Build NAPI bindings
npm run build

# Run tests
npm test

Requirements

  • Node.js 16+
  • Rust 1.70+
  • NAPI-rs CLI (npm install -g @napi-rs/cli)

License

This project is licensed under the Server Side Public License (SSPL) - see the LICENSE file for details.

Support