@noirstack/ledgerbill-sdk
v0.1.10
Published
Official TypeScript client for LedgerBill API
Maintainers
Readme
███╗ ██╗ ██████╗ ██╗██████╗ ███████╗████████╗ █████╗ ██████╗██╗ ██╗
████╗ ██║██╔═══██╗██║██╔══██╗ ██╔════╝╚══██╔══╝██╔══██╗██╔════╝██║ ██╔╝
██╔██╗ ██║██║ ██║██║██████╔╝ ███████╗ ██║ ███████║██║ █████╔╝
██║╚██╗██║██║ ██║██║██╔══██╗ ╚════██║ ██║ ██╔══██║██║ ██╔═██╗
██║ ╚████║╚██████╔╝██║██║ ██║ ███████║ ██║ ██║ ██║╚██████╗██║ ██╗
╚═╝ ╚═══╝ ╚═════╝ ╚═╝╚═╝ ╚═╝ ╚══════╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝
LedgerBill SDK | TypeScript | BSL 1.1 | © Noir Stack LLC@noirstack/ledgerbill-sdk
Official TypeScript client scaffold for LedgerBill.
The SDK contract is generated from the canonical OpenAPI source (src/openapi.ts) and exported to /api/openapi.json.
Package listings
- npm: https://www.npmjs.com/package/@noirstack/ledgerbill-sdk
- PyPI: https://pypi.org/project/ledgerbill-sdk/
- VS Code Marketplace: https://marketplace.visualstudio.com/items?itemName=LedgerBill.ledgerbill
- Website: https://ledgerbill.app
Build flow
From repository root:
- Export OpenAPI source of truth:
npm run openapi:export
- Generate strongly-typed API contracts:
npm run sdk:types
- Build SDK package:
npm run sdk:build
- Create local tarball for publishing checks:
npm run sdk:pack
Basic usage
import { LedgerBillClient } from '@ledgerbill/sdk';
const client = new LedgerBillClient({
baseUrl: 'http://localhost:3107',
tenantId: 'tenant_123',
apiKey: 'lb_your_api_key',
});
const plans = await client.getPricingPlans();
const preview = await client.previewUsage({
customerId: 'cus_123',
featureKey: 'events_processed',
amount: 1000,
});Notes
- This package is currently scaffolded from OpenAPI and intentionally thin.
- Any route types come from
src/generated/api-types.ts. - Re-run
npm run sdk:typesafter API contract changes. - Public OpenAPI governance taxonomy expected in
/api/openapi.json:Tenant AdministrationBilling OperationsDeveloper APIsStripe IntegrationPolicy AdministrationAudit & GovernanceReplay Operations
Support & Discussion
- Issues: https://github.com/no1rstack/ledgerbill-sdk/issues
- Discussions: https://github.com/no1rstack/ledgerbill-sdk/discussions
- Wiki: https://github.com/no1rstack/ledgerbill-sdk/wiki
License
This project is licensed under the Business Source License 1.1 (BSL).
- Change Date: 2030-06-14 (4 years from initial release)
- Change License: Apache License 2.0
- Commercial Use: Restricted until Change Date
- After Change Date: Automatically converts to Apache 2.0
For more details, see LICENSE.
© 2026 Noir Stack LLC. All rights reserved.
For alternative licensing arrangements, contact: [email protected]
