SkillHub

secure-api-starter

v1.0.0

提供生产级API模板,集成JWT/API密钥/OAuth2认证、角色权限控制、限流、输入验证及日志功能。

Sourced from ClawHub, Authored by Sunshine-del-ux

Installation

Please help me install the skill `secure-api-starter` from SkillHub official store. npx skills add Sunshine-del-ux/secure-api-starter

Secure API Starter

Production-ready secure API template.

Features

  • Authentication - JWT, API keys, OAuth2
  • Authorization - Role-based access control
  • Rate Limiting - Per-user, per-IP
  • Input Validation - Schema validation
  • Logging - Request/response logs
  • Error Handling - Structured errors

Quick Start

# Create API
./create-api.sh my-api

# Add authentication
./create-api.sh my-api --auth jwt

# Add rate limiting
./create-api.sh my-api --rate-limit 100

Auth Methods

  • JWT tokens
  • API keys
  • OAuth2 (Google, GitHub)
  • Session-based

Requirements

  • Node.js 18+
  • TypeScript

Author

Sunshine-del-ux