🎁 Get the FREE AI Skills Starter Guide β€” Subscribe β†’
BytesAgainBytesAgain
πŸ¦€ ClawHub✦ BytesAgain

Api Generator

by @ckchzh

API code generator. Generate RESTful endpoints, GraphQL schemas, OpenAPI/Swagger docs, API clients, mock servers, authentication, rate limiting.

Versionv2.0.0
Downloads2,885
Installs21
Stars⭐ 3
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

  • rest β€” RESTful CRUD endpoints (Express.js)
  • graphql β€” GraphQL Type + Query + Mutation schema
  • swagger β€” OpenAPI 3.0 specification document
  • Utilities

  • client β€” Python API client class
  • mock β€” Mock API server with in-memory store
  • auth β€” Auth code (jwt / oauth / apikey)
  • rate-limit β€” Rate limiter (token-bucket / sliding-window)
  • test β€” Jest + Supertest API test suite
  • 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
    

    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