Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>RouteForgeNew to Visual Studio Code? Get it now.
RouteForge

RouteForge

Rajan Kumar

|
1 install
| (0) | Free
Automatically generate frontend API code from backend routes with smart naming, nested routing support, and live updates.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

⚡ APIForge

Automatically generate frontend API code from backend routes — instantly.

VSCode License Status


🚀 Features

  • 🔍 Automatic route detection
  • 🔗 Supports nested routers
  • ⚡ Generates clean Axios API functions
  • 🧠 Smart naming (getUsers, createUser, deleteUser, etc.)
  • 🔄 Auto-update on file changes (watch mode)
  • 🧩 Dynamic params support (:id → ${params.id})
  • 📁 Optional file splitting
  • 🧼 Clean output (removes stale APIs)

📦 Example

🔹 Backend (Express)

router.get('/users/:id');
router.post('/users');
router.delete('/users/:id');

🔹 Generated API

export const getUserById = ({ params, query } = {}) => {
  if (!params?.id) throw new Error("Missing param: id");
  return api.get(`/users/${params.id}`, { params: query });
};

export const createUser = ({ data } = {}) => {
  return api.post('/users', data);
};

export const deleteUser = ({ params } = {}) => {
  if (!params?.id) throw new Error("Missing param: id");
  return api.delete(`/users/${params.id}`);
};

⚙️ Usage

  1. Open your backend project in VSCode
  2. Run command:
APIForge: Generate API
  1. Or click the ⚡ button in the editor
  2. APIs will be generated automatically

🧠 Configuration

Setting Description
autoGenerate Auto-generate APIs on file changes
splitFiles Generate separate API files
cleanOutput Remove old APIs before regenerating
outputDir Output folder for generated APIs

📁 Output

Generated APIs are placed inside:

/output

🛠 Supported Backend

  • ✅ Express.js

🚧 Coming soon:

  • FastAPI
  • Flask

🤝 Contributing

Contributions, issues, and feature requests are welcome!


📬 Support

👉 https://github.com/rajankumar2511/ApiForge/issues


🔗 Repository

👉 https://github.com/rajankumar2511/ApiForge


👨‍💻 Author

Rajan Kumar GitHub: https://github.com/rajankumar2511


⭐ Show your support

If you like this project, give it a star ⭐

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft