HbarSuite Docs
  • Welcome to HbarSuite
  • HbarSuite Developer Documentation
    • HbarSuite Smart Engine Applications
      • @hsuite/cross-chain-exchange
      • @hsuite/dao
      • @hsuite/exchange
      • @hsuite/launchpad
      • @hsuite/multisig
      • @hsuite/nft-exchange
    • HSuite Libraries
      • @hsuite/api-key
      • @hsuite/auth-types
      • @hsuite/auth
      • @hsuite/client-types
      • @hsuite/client
      • @hsuite/dkg-types
      • @hsuite/hashgraph-types
      • @hsuite/health
      • @hsuite/helpers
      • @hsuite/ipfs
      • @hsuite/smart-config
      • @hsuite/smart-network-types
      • @hsuite/smart-transaction-types
      • @hsuite/smartnode-sdk
      • @hsuite/snapshots
      • @hsuite/subscriptions-types
      • @hsuite/subscriptions
      • @hsuite/throttler-types
      • @hsuite/throttler
      • @hsuite/users-types
      • @hsuite/users
      • @hsuite/validators-types
  • General Documentation
    • Tokenomics
      • Tokenomics v1
      • Tokenomics V2
    • Smart Apps and Interaction
      • Subscription-Based Model
      • Token-Gate Model
    • The Smart Node Network
      • security-layer
        • Security Layer Integration
        • Setting Up Secure Clusters
        • Generating and Sharing Keys Collaboratively
        • Protecting Secrets with Shamir's Method
        • Managing Cluster Membership
        • Handling Node Expulsion and Replacement
        • Automating Responses to Network Changes & Key Rotation
        • Ensuring Continuous Operation and Recovery
      • Understanding Validators in Our System
        • Type of Validators Explained
    • What is a Smart Node?
  • Restful APIs Documentation
Powered by GitBook
On this page
  • Overview
  • Core Libraries
  • Authentication & Security
  • Client & SDK
  • Distributed Systems
  • Network & Transactions
  • System Management
  • User & Access Control
  • Installation
  • Documentation
  • Development
  • Prerequisites
  • Setup
  • Architecture
  • Best Practices
  • Contributing
  • License
  1. HbarSuite Developer Documentation

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:

npm install @hsuite/[library-name]

For example:

npm install @hsuite/client
npm install @hsuite/auth
npm install @hsuite/smart-config

Documentation

Each library includes detailed documentation that can be generated using Compodoc:

# Generate documentation for a specific library
cd libs/[library-name]
yarn compodoc

# Generate documentation with coverage information
yarn compodoc:coverage

Development

Prerequisites

  • Node.js ≥ 14

  • npm or yarn

  • NestJS framework knowledge

  • Hedera network access

Setup

  1. Clone the repository

  2. Install dependencies: yarn install

  3. Build all libraries: yarn build

  4. 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

  1. Use TypeScript for type safety

  2. Follow NestJS patterns and practices

  3. Implement proper error handling

  4. Include comprehensive documentation

  5. Write unit and integration tests

  6. Follow semantic versioning

Contributing

  1. Fork the repository

  2. Create a feature branch

  3. Commit your changes

  4. Push to the branch

  5. 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.

Previous@hsuite/nft-exchangeNext@hsuite/api-key

Last updated 3 months ago