Skip to main content
MiniLedger

MiniLedger

Zero-config private blockchain framework for Node.js.
Embeddable, SQL-queryable, production-ready.

npm install miniledger

Why MiniLedger?

A lightweight alternative to Hyperledger Fabric, R3 Corda, and Quorum for teams that need a private blockchain without the operational burden.

Zero Config

No Docker, no Kubernetes, no certificate authorities. A single npm install gives you a production-ready private blockchain.

SQL Queries

World state lives in SQLite. Run SELECT * FROM world_state directly against your ledger data — no custom query languages.

Embeddable

Import as a library into any Node.js or TypeScript application. No separate processes, no infrastructure overhead.

Enterprise-Grade Features

Everything you need for a production consortium blockchain — without the complexity.

Raft Consensus

Production-grade leader election with log replication and automatic fault tolerance across multi-node clusters.

Smart Contracts

Write and deploy contracts in plain JavaScript. No Solidity, no Go, no Kotlin — just functions that read and write state.

Per-Record Privacy

AES-256-GCM field-level encryption with ACL-based access control. No channels needed, no complexity.

On-Chain Governance

Propose and vote on network changes directly on-chain. Quorum-based decision making with automatic execution.

Block Explorer

Built-in web dashboard with block/transaction drill-down, state browser, SQL console, and full-text search.

P2P Networking

WebSocket mesh with automatic peer discovery, reconnection, and chain synchronization across organizations.

Get Started in 5 Lines

Embed a private blockchain directly into your Node.js application.

app.ts
import { MiniLedger } from 'miniledger';

const node = await MiniLedger.create({ dataDir: './my-ledger' });
await node.init();
await node.start();

// Submit a transaction
await node.submit({ key: 'account:alice', value: { balance: 1000 } });

// Query state with SQL
const results = await node.query(
'SELECT * FROM world_state WHERE key LIKE ?',
['account:%']
);

How It Compares

MiniLedger vs Hyperledger Fabric, R3 Corda, and Quorum.

MiniLedgerHyperledger FabricR3 CordaQuorum
Setup time10 secondsHours/daysHoursHours
Dependenciesnpm installDocker, K8s, CAsJVM, Corda nodeJVM, Go-Ethereum
Config files0 (auto)Dozens of YAMLMultiple configsGenesis + static nodes
ConsensusRaft (built-in)Raft (separate orderer)Notary serviceIBFT / Raft
Smart contractsJavaScriptGo / Java / NodeKotlin / JavaSolidity
State queriesSQLCouchDB queriesJPA / VaultNo native query
PrivacyPer-record ACLsChannels (complex)Point-to-pointPrivate transactions
GovernanceOn-chain votingOff-chain manualOff-chainOff-chain
DashboardBuilt-in explorerNone (3rd party)NoneNone
EmbeddableYes (npm library)NoNoNo

Built for Real Use Cases

From supply chain to financial audit trails — MiniLedger handles enterprise distributed ledger scenarios without the enterprise complexity.

Supply Chain

Immutable record of goods movement across organizations with full provenance tracking.

Audit Trails

Tamper-proof logs for compliance, finance, and healthcare with cryptographic verification.

Tokenization

Issue and transfer digital tokens with smart contracts — asset-backed, loyalty, or utility.

IoT Data Integrity

Sensor data committed to an immutable ledger with per-device identity and signatures.

Compliance

Timestamped, cryptographically signed record keeping for regulatory requirements.

Multi-Party Workflows

Shared ledger between organizations without a central authority — each party runs a node.

Get Started

npm install miniledger