Welcome to the Happy Vertical SDK
Happy Vertical SDK
Build powerful, vertical AI agents in TypeScript
The Happy Vertical SDK is a modern toolkit for building powerful, vertical AI agents in TypeScript.β
Built around the SMRT Agent Framework, the Happy Vertical SDK provides the structure, memory, and perception needed for agents to perform complex tasks. The SMRT framework serves as the central orchestrator that brings together AI capabilities, persistent storage, and external integrations into a cohesive, production-ready system.
30-Second Exampleβ
See how easy it is to create a production-ready service with SMRT's auto-generation:
import { BaseObject, smrt } from '@have/smrt';
// Define your data model - that's it!
@smrt()
export class Product extends BaseObject {
name: string = '';
description: string = '';
category: string = '';
manufacturer: string = '';
specifications: Record<string, any> = {};
tags: string[] = [];
async getSpecification(key: string): Promise<any> {
return this.specifications[key];
}
// AI-powered method from BaseObject
async summarize(): Promise<string> {
return await this.do(`Summarize this product: ${this.name} - ${this.description}`);
}
}
That's it! This single @smrt()
decorator automatically generates everything you need:
- REST API endpoints (
GET /products
,POST /products
,PUT /products/:id
,DELETE /products/:id
) - AI tools for agents (list, get, create, update, search operations)
- CLI commands (
product list
,product create
,product update
,product delete
) - TypeScript client library (type-safe API calls)
- MCP server integration (for AI agent tools)
- Database schema and migrations (automatic table creation)
All with full TypeScript type safety and zero boilerplate!
Core Philosophyβ
The Happy Vertical SDK embraces three fundamental principles:
ποΈ Structureβ
Agents need a clear way to organize and model their world. SMRT provides SmartObjects
and Collections
that automatically handle persistence, validation, and relationships.
π§ Memoryβ
Agents must remember past interactions and build knowledge over time. SMRT integrates with databases seamlessly, giving agents both short-term working memory and long-term storage.
ποΈ Perceptionβ
Agents need to interact with the world. SMRT provides tools and integrations that let agents read files, scrape websites, process documents, and moreβall through a consistent interface.
What Makes the Happy Vertical SDK Different?β
π― Triple-Purpose Architectureβ
Build once, deploy everywhere. Every Happy Vertical SDK service can be consumed as:
- Standalone Application: Complete web app with UI (
npm run dev:standalone
) - Module Federation: Runtime component sharing (
import ProductCard from 'productService/ProductCard'
) - NPM Package: Traditional library imports (
import { Product } from '@have/products'
)
π€ AI-First Auto-Generationβ
The @smrt()
decorator automatically generates everything you need:
- REST APIs: Full CRUD endpoints with OpenAPI docs
- MCP Tools: AI agent integrations for Claude/GPT
- TypeScript Clients: Type-safe API clients
- CLI Commands: Admin interfaces
- Database Schemas: Automatic migrations
β‘ Vite-Powered Developmentβ
- Virtual Modules: Auto-generated code appears as imports (
@smrt/routes
,@smrt/client
) - Hot Module Replacement: Instant updates during development
- Code Splitting: Optimal bundles for each consumption pattern
- Module Federation: Runtime micro-frontend composition
ποΈ Production-Ready Architectureβ
- Type Safety: Full TypeScript throughout
- Error Handling: Automatic retries and resilience
- Monitoring: Built-in logging and observability
- Scalability: Horizontal scaling with micro-frontends
Quick Linksβ
The Happy Vertical SDK Ecosystemβ
The Happy Vertical SDK is built around the SMRT framework, which orchestrates multiple specialized libraries:
graph TB
SMRT[SMRT Framework]
SMRT --> AI[@have/ai<br/>AI Providers]
SMRT --> SQL[@have/sql<br/>Database]
SMRT --> Files[@have/files<br/>File System]
SMRT --> PDF[@have/pdf<br/>Documents]
SMRT --> Spider[@have/spider<br/>Web Scraping]
SMRT --> Utils[@have/utils<br/>Utilities]
style SMRT fill:#3b82f6,stroke:#1e40af,stroke-width:3px,color:#fff
style AI fill:#e5e7eb
style SQL fill:#e5e7eb
style Files fill:#e5e7eb
style PDF fill:#e5e7eb
style Spider fill:#e5e7eb
style Utils fill:#e5e7eb
Each library provides specific capabilities that Happy Vertical SDK agents can leverage:
- @have/ai: Multi-provider AI integration (OpenAI, Anthropic, Gemini, Bedrock)
- @have/sql: Database operations for agent memory
- @have/files: File system access and manipulation
- @have/pdf: PDF processing and text extraction
- @have/spider: Web content extraction
- @have/utils: Common utilities and helpers
Who Should Use the Happy Vertical SDK?β
The Happy Vertical SDK is perfect for:
- π Startups building AI-powered products quickly
- π’ Enterprises needing reliable, scalable agent systems
- π¨βπ» Developers who want to focus on agent logic, not infrastructure
- π¬ Researchers prototyping new agent architectures
- π Students learning about AI agent development
Real-World Use Casesβ
Teams are using the Happy Vertical SDK to build:
- Customer Support Agents that understand context and resolve tickets
- Research Assistants that gather, analyze, and summarize information
- Document Processors that extract and transform data from PDFs
- Content Generators that create contextual, structured content
- Workflow Automators that orchestrate complex business processes
- Data Analysts that query databases and generate reports
Ready to Build?β
π Start Your Agent Journey
Install the Happy Vertical SDK and create your first intelligent agent in minutes:
bun add @have/smrt
Get Started β
Community & Supportβ
- GitHub: happyvertical/sdk
- Discord: Join our community
- Twitter: @smrtframework
SMRT: Structure + Memory + Perception = Intelligence