MiniLedger
Zero-config private blockchain framework for Node.js.
Embeddable, SQL-queryable, production-ready.
npm install miniledgerWhy 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.
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.
| MiniLedger | Hyperledger Fabric | R3 Corda | Quorum | |
|---|---|---|---|---|
| Setup time | 10 seconds | Hours/days | Hours | Hours |
| Dependencies | npm install | Docker, K8s, CAs | JVM, Corda node | JVM, Go-Ethereum |
| Config files | 0 (auto) | Dozens of YAML | Multiple configs | Genesis + static nodes |
| Consensus | Raft (built-in) | Raft (separate orderer) | Notary service | IBFT / Raft |
| Smart contracts | JavaScript | Go / Java / Node | Kotlin / Java | Solidity |
| State queries | SQL | CouchDB queries | JPA / Vault | No native query |
| Privacy | Per-record ACLs | Channels (complex) | Point-to-point | Private transactions |
| Governance | On-chain voting | Off-chain manual | Off-chain | Off-chain |
| Dashboard | Built-in explorer | None (3rd party) | None | None |
| Embeddable | Yes (npm library) | No | No | No |
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.