Skip to main content

Pikku

Function API Framework

TypeScript functions with minimal boilerplate. Support multiple transports and deploy to any javascript runtime, serverless or server.

  • 🍦

    Vanilla TypeScript

    Write functions and services using vanilla TypeScript — just user logic and types.

  • 🚦

    Transport Agnostic

    Wire functions to HTTP, WebSockets, Cron jobs and more. Pikku adapts to any event-driven architecture.

  • 🔋

    Batteries Included

    Auth, validation, and services built-in — everything you need without extra dependencies.

  • 🌍

    Deploy Anywhere

    Works on cloud, server, edge, or serverless with minimal config—no runtime lock-in.

Functions, Supercharged.

Write simple functions—Pikku provides services, validated data, and user sessions automatically. Modify state via services, return data, or throw an error.

  • 📖

    OpenAPI & Typed Clients

    Automatcically generates OpenAPI documentation and tiny fully-typed Fetch/WebSocket clients automatically.

  • Generated Type Safety & Validation

    Pikku generates schemas from your function types, ensuring full type safety and runtime validation without additional code.

  • 🔒

    Built-In Auth & Session Management

    Secure APIs with via authentication, permissions, and user session management.

  • ⚙️

    Singleton & Session-Based Services

    Define services that persist across function calls, whether singleton instances or session-scoped state.

Deploy Anywhere, Integrate Seamlessly.

Use Pikku as middleware in existing projects or deploy standalone. Adapters for major runtimes are provided, and writing your own is simple.