API 代码生成器

Generate RESTful API projects with Node.js, Express, Drizzle ORM, and SQLite from natural language descriptions.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/tanaer/lobster-university-v2 --skill api-tanaer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: API 代码生成器
Source: https://github.com/tanaer/lobster-university-v2/tree/main/skills/courses/api-generator
Command: npx skills add https://github.com/tanaer/lobster-university-v2 --skill api-tanaer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires express, cors, helmet, morgan, typescript, @types/express, @types/node, ts-node, nodemon, drizzle-orm, better-sqlite3, drizzle-kit, @types/better-sqlite3, swagger-jsdoc, swagger-ui-express, vitest, supertest, @types/supertest, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the entire process of creating a functional RESTful API, from understanding a natural language requirement to generating code, documentation, and tests.

Core Features & Use Cases

  • Full-Stack API Generation: Creates data models, CRUD routes, controllers, OpenAPI documentation, and unit tests.
  • Technology Agnostic (Example): Demonstrates generation using Node.js, Express, Drizzle ORM, and SQLite, but the principles apply broadly.
  • Use Case: You need a backend API for a new project. Describe the data entities (e.g., "a blog with posts and users"), and this Skill will generate a complete, runnable API project.

Quick Start

Use the API 代码生成器 skill to generate a RESTful API for a 'product' resource with 'name' and 'price' fields.

Frequently Asked Questions about API 代码生成器

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

FAQPage Schema
How do I generate a RESTful API from a natural language requirement?

To generate a RESTful API from natural language, you describe your data entities and fields, and the tool automatically outputs data models, CRUD routes, controllers, OpenAPI documentation, and unit tests for a complete runnable project.

Can I generate CRUD routes and controllers using Express and Drizzle ORM?

Yes, you can generate CRUD routes and controllers using Express and Drizzle ORM. The tool creates a complete RESTful API project configured with TypeScript, Express, Drizzle ORM, and SQLite as the example database stack.

Does this API generation tool create OpenAPI documentation and unit tests?

Yes, this API generation tool creates OpenAPI documentation using swagger-jsdoc and unit tests using vitest and supertest. It automates the full project setup, including documentation and testing infrastructure for your specified resources.

What is the best way to scaffold a backend API project with TypeScript and Express?

The best way to scaffold a backend API project with TypeScript and Express is to define your resources in natural language. The generator then outputs a complete project with configured dependencies like helmet, cors, morgan, and nodemon for immediate development.

How does automated API code generation work for backend development?

Automated API code generation works by parsing a natural language description of your data entities and fields to instantly produce a full-stack backend structure. It eliminates manual boilerplate setup by generating models, routes, and tests simultaneously.

Do I need to manually configure SQLite and better-sqlite3 for the generated API?

No, you do not need to manually configure SQLite and better-sqlite3. The generated API project includes pre-configured dependencies for drizzle-orm and better-sqlite3, allowing the RESTful API to run immediately after generation.