@happyvertical/ai
AIStandardized AI interface supporting OpenAI, Anthropic, Google Gemini, AWS Bedrock, and Hugging Face with unified API
TypeScript toolkit with pluggable adapters
Build applications that outlast your infrastructure choices. Switch AI providers, databases, or storage without touching business logic.
View on GitHubimport { AI, Database, Storage } from '@happyvertical/sdk';
// Initialize with any provider
const ai = new AI({ provider: 'openai', model: 'gpt-4' });
const db = new Database({ provider: 'postgres', url: process.env.DATABASE_URL });
const storage = new Storage({ provider: 's3', bucket: 'my-bucket' });
// Switch providers without changing application code
const ai = new AI({ provider: 'anthropic', model: 'claude-3' });Design patterns that protect your code from vendor decisions.
Standardized interfaces with pluggable adapters. Swap implementations without touching application code.
Your code depends on our interfaces, not third-party APIs. Switch on your terms.
Migrate to better tools one component at a time. No big rewrites.
One interface for OpenAI, Anthropic, Google. Same for databases, caching, storage.
Start with SQLite. Scale to PostgreSQL. Same code works everywhere.
Every package follows consistent conventions. Learn one, know them all.
Modular packages for common infrastructure needs.
Standardized AI interface supporting OpenAI, Anthropic, Google Gemini, AWS Bedrock, and Hugging Face with unified API
Database interface with support for SQLite, PostgreSQL, and DuckDB
File system utilities for local and remote file operations
Standardized caching interface supporting Memory, File, and Redis backends
Lightweight web scraping and HTML content extraction using cheerio, happy-dom, and undici for high-performance server-side operations
Modern PDF processing utilities with text extraction and OCR support using unpdf and @happyvertical/ocr
Standardized OCR interface with support for multiple providers including Tesseract.js and ONNX (PaddleOCR)
Multi-part document processing with support for PDF, HTML, and Markdown
Standardized geographical information interface supporting Google Maps and OpenStreetMap
Standardized translation interface supporting Google Translate, DeepL, and LibreTranslate
Weather data provider abstraction for HappyVertical SDK
Structured logging for HappyVertical SDK with signal adapter
Foundation utilities for ID generation, date parsing, URL handling, string conversion, error handling, and logging
Reusable GitHub Actions utilities for issue triage, PR validation, and workflow automation
MCP server for HappyVertical SDK - Routes queries to package experts using CLAUDE.md files
Email utilities (stub)
Language detection and processing (stub)