Skip to main content
TypeScript · Hyperledger Fabric

hlf-core

TypeScript framework for Hyperledger Fabric smart contracts

client.ts
import { TransportFabric } from '@hlf-core/transport';

const transport = new TransportFabric(logger, settings);
await transport.connect();

// single entry point, application signature
const user = await transport.sendListen(
  new UserGetCommand(uid),
);

The problem

Fabric is deliberately low-level, and everything it lacks you have to build yourself: manual work with key-value state, hand-rolled user identity, a token system reinvented every time. And mistakes in exactly these places cost the most, from accounting discrepancies to security holes.

The solution

hlf-core is that layer, built once and proven in production: an ORM approach to state, a single command transport, user identity with replay protection, and a token system with full audit. In other words, less code and predictable security exactly where it is hardest to get right by hand.