HSuite Libraries
A comprehensive suite of libraries for building enterprise-grade applications on the Hedera Hashgraph network.
Overview
The HbarSuite Smart Engines library collection provides a robust and modular framework for developing applications on the Hedera Hashgraph network. Each library is designed to handle specific aspects of blockchain interaction, network management, and distributed systems.
Core Libraries
Authentication & Security
@hsuite/auth
: Authentication and authorization system@hsuite/auth-types
: Type definitions for authentication@hsuite/api-key
: API key management and validation
Client & SDK
@hsuite/client
: Core client implementation@hsuite/client-types
: Type definitions for client operations@hsuite/smartnode-sdk
: SDK for smart node interactions
Distributed Systems
@hsuite/dkg-types
: Type definitions for DKG operations@hsuite/hashgraph-types
: Type definitions for Hashgraph operations
Network & Transactions
@hsuite/smart-config
: Configuration management@hsuite/smart-network-types
: Network type definitions@hsuite/smart-transaction-types
: Transaction type definitions
System Management
@hsuite/health
: Health check and monitoring@hsuite/helpers
: Common utility functions@hsuite/ipfs
: IPFS integration@hsuite/snapshots
: System state snapshots
User & Access Control
@hsuite/users
: User management and operations@hsuite/users-types
: Type definitions for user management@hsuite/validators-types
: Type definitions for validators@hsuite/throttler
: Rate limiting and request throttling@hsuite/throttler-types
: Type definitions for throttling@hsuite/subscriptions
: Subscription management@hsuite/subscriptions-types
: Type definitions for subscriptions
Installation
Each library can be installed individually using npm:
For example:
Documentation
Each library includes detailed documentation that can be generated using Compodoc:
Development
Prerequisites
Node.js ≥ 14
npm or yarn
NestJS framework knowledge
Hedera network access
Setup
Clone the repository
Install dependencies:
yarn install
Build all libraries:
yarn build
Run tests:
yarn test
Architecture
The libraries follow a modular architecture with clear separation of concerns:
Core Services: Client, Authentication, and Network integration
Support Services: Throttling, Validation, and User Management
Utility Services: Configuration, Health Checks, and Helpers
Type Definitions: Separate -types packages for type safety
Best Practices
Use TypeScript for type safety
Follow NestJS patterns and practices
Implement proper error handling
Include comprehensive documentation
Write unit and integration tests
Follow semantic versioning
Contributing
Fork the repository
Create a feature branch
Commit your changes
Push to the branch
Create a Pull Request
License
This project is part of the HbarSuite ecosystem and is covered by its license terms.
Built with ❤️ by the HbarSuite Team Copyright © 2024 HbarSuite. All rights reserved.
Last updated