Skip to main content

Pikku

Pikku - meaning tiny 🔎 in Finnish - is a minimalistic batteries included framework built around simple functions. It works with any event driven design (currently http, websockets and scheduled tasks) and can be run on any Javascript runtime, currently Cloudflare Workers, Fastify, Bun, AWS Lambda, Express, uWS, WS and others.

const helloWorld: APIFunction<
{ language: 'en' | 'es' },
string
> = async (
services, data, session
) => {
if (language === 'en') {
return `Hey ${session.username}!`
} else {
return `Ola ${session.username}!`
}
}

// Register it as a HTTP Route
addRoute({
method: 'get',
route: '/',
func: helloWorld
})

Quick Start​

npm create pikku

Features​

  • Tiny 🔎 - The Pikku footprint is minimal. It currently relies on two small dependencies cookie and path-to-regex.
  • Deploy Anywhere 🌍 - Run your functions anywhere, as long as it's event based. Currently supporting HTTP, WebSockets and Scheduled Tasks with more coming soon.
  • Batteries Included 🔋 - Services, session management, auth, docs, it's all here..
  • Zero Boilerplate ðŸŠķ - Only write business logic in Typescript, Pikku automatically optimizes, validates and generates everything needed in a powerful framework.

Quick Intro​

Getting Started


Introduction Talk​