pikku-http

Wire Pikku functions to HTTP endpoints with routes, groups, and middleware.

56|Updated Apr 18, 2021
One-click install
npx skills add https://github.com/pikkujs/pikku --skill pikku-http
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pikku-http
Source: https://github.com/pikkujs/pikku/tree/main/.claude/skills/pikku-http
Command: npx skills add https://github.com/pikkujs/pikku --skill pikku-http

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Wire Pikku functions to HTTP endpoints and expose REST-like interfaces through route wiring, grouping, and middleware.

Core Features & Use Cases

  • Wire single HTTP routes with wireHTTP.
  • Group routes with defineHTTPRoutes and wireHTTPRoutes for scalable APIs, including auth, permissions, and SSE.
  • Generate type-safe clients and OpenAPI docs to simplify integration and improve DX.

Quick Start

Define HTTP routes using defineHTTPRoutes, wire them with wireHTTPRoutes, and run your Pikku app to expose endpoints.

Frequently Asked Questions about pikku-http

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I wire TypeScript functions to HTTP routes for a REST API?

Wire HTTP routes for TypeScript functions by using wireHTTP for single endpoints or defineHTTPRoutes and wireHTTPRoutes to group routes, creating scalable REST APIs with shared middleware and permissions.

How does Server-Sent Events (SSE) streaming work with HTTP route wiring?

Route groups defined with defineHTTPRoutes support SSE streaming, enabling you to wire HTTP endpoints that push real-time event streams to clients alongside standard REST API routes.

Can I apply shared authentication and middleware to grouped HTTP routes?

Grouped HTTP routes wired via wireHTTPRoutes support shared auth, middleware, and permissions, enabling scalable APIs to enforce consistent security policies across multiple endpoints simultaneously.

How do I generate type-safe fetch clients and OpenAPI documentation from HTTP routes?

Wiring HTTP routes with wireHTTP and wireHTTPRoutes enables generating type-safe fetch clients and OpenAPI docs, simplifying frontend integration and improving developer experience.

What is the best way to structure scalable HTTP endpoints for a TypeScript backend?

Structure scalable HTTP endpoints by using defineHTTPRoutes to group routes with shared auth and middleware, then wiring them with wireHTTPRoutes to maintain organized REST APIs.