PromptHub SDKs

PromptHub provides a full suite of open-source SDKs that allow developers, agents, and dApps to integrate seamlessly with the protocol stack—across prompt authoring, execution, visualization, governance, and tokenization. Each SDK is designed to be modular, developer-friendly, and production-ready.

1. 🤖 agent-sdk

A TypeScript/Node.js SDK designed for AI agents, LLM runtimes, and back-end integrations.

  • Connects to PromptVault for prompt discovery and invocation

  • Supports semantic routing through PromptRouter

  • Automates PromptSig generation and verification

  • Compatible with LangChain, AutoGPT, and other agent frameworks

  • Enables DAG graph execution and chaining logic

  • Implements MCP adapters for standardized model interactions, ensuring consistency across different LLM providers

2. 🖥️ ui-sdk

Frontend library (React/Vue) that provides hooks and utilities for:

  • Displaying prompt metadata, licenses, token requirements

  • Executing prompts via PromptCall from web interfaces

  • Staking, rating, and reporting prompts

  • Authenticated signature workflows for PromptSig

Includes ready-to-use components for:

  • Prompt execution modals

  • DAG visual graph viewer

  • Prompt author attribution and tipping

3. 📜 contract-kit

Solana smart contract toolkit and Anchor interfaces for:

  • Minting PromptNFTs and SPL-based PromptTokens

  • Registering prompts to Vault

  • Updating licenses, metadata, and fee structures

  • Interacting with PromptDAO governance modules

Includes client bindings and CLI tools for managing on-chain assets directly from developer environments.

Together, these SDKs form the foundation for building everything from simple prompt apps to full AI agents, DAO dashboards, decentralized marketplaces, and on-chain workflow orchestrators.

Last updated