π¦ ClawHubβ¦ BytesAgain
Api Generator
by @ckchzh
API code generator. Generate RESTful endpoints, GraphQL schemas, OpenAPI/Swagger docs, API clients, mock servers, authentication, rate limiting.
TERMINAL
clawhub install api-generatorπ About This Skill
version: "2.0.0" name: api-generator description: "API code generator. Generate RESTful endpoints, GraphQL schemas, OpenAPI/Swagger docs, API clients, mock servers, authentication, rate limiting." author: BytesAgain homepage: https://bytesagain.com source: https://github.com/bytesagain/ai-skills
β‘ API Generator
Generate production-ready API code scaffolds from zero. REST, GraphQL, auth, tests β all in one tool.
Usage
bash scripts/apigen.sh [options]
Commands
Core Generation
β RESTful CRUD endpoints (Express.js) β GraphQL Type + Query + Mutation schema β OpenAPI 3.0 specification documentUtilities
β Python API client class β Mock API server with in-memory store β Auth code (jwt / oauth / apikey) β Rate limiter (token-bucket / sliding-window) β Jest + Supertest API test suiteExamples
bash scripts/apigen.sh rest user # RESTful user endpoints
bash scripts/apigen.sh graphql product # GraphQL product schema
bash scripts/apigen.sh auth jwt # JWT authentication
bash scripts/apigen.sh test order # Order API tests
Output
All code prints to stdout. Copy or redirect into your project files. Generated code includes full comments and can serve as a project starting point.
π¬ Feedback & Feature Requests: https://bytesagain.com/feedback Powered by BytesAgain | bytesagain.com
π‘ Examples
bash scripts/apigen.sh rest user # RESTful user endpoints
bash scripts/apigen.sh graphql product # GraphQL product schema
bash scripts/apigen.sh auth jwt # JWT authentication
bash scripts/apigen.sh test order # Order API tests