What is Apiser?
Apiser is a collection of typed TypeScript packages designed to streamline backend and frontend application development. It provides type-safe, chainable APIs that make building modern applications easier and more maintainable.Type-safe models
Build reusable Drizzle ORM models with progressive query flows and automatic type inference
Smart controllers
Create composable request handlers with built-in validation, caching, and error handling
Response utilities
Standardized response formatting with consistent error handling across your API
Schema validation
Universal schema validation powered by Zod with TypeBox support
Key features
Progressive query building
Build database queries step-by-step with clear intent:Reusable model abstraction
Define your models once and use them everywhere with consistent formatting:Type-safe request handlers
Create handlers with automatic validation and type inference:Error-safe execution
Handle errors gracefully with safe execution flows:Core packages
@apisr/drizzle-model
Type-safe, chainable model runtime for Drizzle ORM with progressive query building
@apisr/controller
Composable request handlers with built-in validation, caching, and error handling
@apisr/response
Standardized response utilities for consistent API responses
@apisr/schema
Universal schema validation with Zod support
@apisr/logger
Colorful console logging with JSON formatting and stack trace parsing
@apisr/zod
Enhanced Zod utilities for schema validation and type inference
Philosophy
Apiser is built on these principles:- Type safety first - Leverage TypeScript’s type system for compile-time guarantees
- Progressive enhancement - Start simple and add complexity only when needed
- Composability - Build complex functionality from simple, reusable pieces
- Developer experience - Clear APIs, helpful errors, and minimal boilerplate
- Framework agnostic - Works with Elysia, Hono, or any Node.js framework
Get started
Installation
Install the packages you need for your project
Quick start
Build your first application with Apiser in minutes
Drizzle Model Guide
Comprehensive guide for the Drizzle ORM model runtime
Building Controllers
Learn to build type-safe API controllers
Development status
Community and support
Apiser is an open-source project. Get help and contribute:- GitHub - Report issues and contribute
- Discord - Join our community for discussions and support
- Documentation - Comprehensive guides and API references