hai-kit
OfficialUnified, security-first SvelteKit integration.
Authorhai-series
Version1.0.0
Installs0
System Documentation
What problem does it solve?
hai-kit consolidates request handling, security boundaries, and contract-driven endpoints for SvelteKit into a single, consistent namespace, reducing boilerplate and errors across projects.
Core Features & Use Cases
- Centralizes request entry points (kit.createHandle / kit.sequence) and security guards (kit.guard.*) to standardize API behavior.
- Enables type-safe, contract-driven endpoints via kit.fromContract with auto Zod validation, improving developer confidence and runtime safety.
- Provides reusable API utilities (kit.handler, kit.response, kit.validate) and Bearer Token authentication to streamline secure API development across SSR and CSR.
- Use Case: Build a multi-endpoint admin interface with uniform auth, rate limiting, CORS, and consistent responses.
Quick Start
Create a SvelteKit handle using kit.createHandle with auth, rateLimit, and cors options, then compose routes with kit.fromContract and kit.handler.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: hai-kit Download link: https://github.com/hai-series/hai-framework/archive/main.zip#hai-kit Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.