pikku-concepts

Explains Pikku's pikkuFunc model across HTTP, WebSocket, queues, and RPC wirings.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Pikku concepts explain how to map common backend patterns to the Pikku function-centric model, helping developers design transport-agnostic business logic.

Core Features & Use Cases

  • Understand the core pikkuFunc mental model (services, data, wire) and how it drives all wirings.
  • Learn how routing, middleware, auth, validation, and DI map to transports like HTTP, WebSocket, queues, and RPC.
  • Explore project structure, code generation, testing, and how Pikku maps to traditional backend patterns and architectures.

Quick Start

Ask for an overview of Pikku concepts or request a guided walkthrough to wire a pikkuFunc to HTTP, WebSocket, and queues.

Frequently Asked Questions about pikku-concepts

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

FAQPage Schema
What is transport-agnostic backend architecture in TypeScript?

Pikku maps common backend patterns to a function-centric model using a core pikkuFunc. This approach separates business logic from network protocols, enabling transport-agnostic routing, middleware, and validation across HTTP, WebSocket, queues, and RPC.

How do I wire a single TypeScript function to HTTP and WebSocket?

To wire a TypeScript function to HTTP and WebSocket, you map a core pikkuFunc to the desired transports. The function-centric model handles routing, middleware, and dependency injection, exposing the same business logic across multiple network protocols.

How does dependency injection work in a function-centric backend framework?

Dependency injection in a function-centric backend framework works by passing required services and data directly into the core function wire. This allows transport-agnostic business logic to access necessary dependencies uniformly across HTTP, WebSocket, queues, and RPC.

Can I use existing backend patterns like middleware and auth with function-centric wiring?

Yes, existing backend patterns like middleware and auth work with function-centric wiring. The framework maps these traditional patterns, along with validation and dependency injection, directly to its core functions for HTTP, WebSocket, and queues.

What is the required project structure for a TypeScript function-centric backend?

A TypeScript function-centric backend requires a project structure that separates core pikkuFunc definitions from transport configurations. This organization supports code generation, testing, and the mapping of services, data, and wire to HTTP, WebSocket, and queues.

How do I migrate an existing backend to a function-centric architecture?

Migrating an existing backend to a function-centric architecture involves mapping traditional routing, middleware, and validation patterns to core pikkuFunc definitions. This refactors existing logic into transport-agnostic functions wired to HTTP, WebSocket, queues, and RPC.