Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>API CompanionNew to Visual Studio Code? Get it now.
API Companion

API Companion

Monarch

|
12 installs
| (1) | Free
View API details of your code in a sidebar
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

API Companion

API Companion

A Visual Studio Code extension that helps you visualize and navigate API endpoints in your codebase.

Version Installs Rating

Features

  • 🔍 Automatic API Detection: Automatically detects API endpoints in your TypeScript and JavaScript files
  • 🚀 Real-time Updates: Automatically refreshes when files are created, modified, or deleted
  • 📌 Quick Navigation: Click on any endpoint to jump directly to its definition
  • 🎯 Multiple Framework Support: Supports various API patterns including:
    • Express.js routes (app.get('/path'))
    • Router definitions (router.post('/path'))
    • NestJS decorators (@Get('/path'))
    • FastAPI-style decorators

Usage

  1. Install the extension
  2. Open a project containing API endpoints
  3. Click on the API Companion icon in the activity bar (sidebar)
  4. Browse through your API endpoints organized by file
  5. Click on any endpoint to navigate to its definition

Supported Patterns

The extension currently recognizes the following API patterns:

// Express-style routes
app.get('/users', ...)
app.post('/users', ...)

// Router definitions
router.get('/products', ...)
router.post('/products', ...)

// NestJS decorators
@Get('/orders')
@Post('/orders')

// FastAPI-style decorators
@get('/items')
@post('/items')

Features at a Glance

  • ✨ Shows the number of endpoints per file
  • 📝 Displays HTTP method and path for each endpoint
  • 🔗 Direct link to endpoint definition in code
  • 🔄 Auto-refresh on file changes
  • 🎨 Clean and intuitive interface

Requirements

  • Visual Studio Code version 1.97.0 or higher
  • TypeScript/JavaScript projects with API endpoints

Extension Settings

This extension contributes the following settings:

  • api-companion.enable: Enable/disable the API Companion
  • api-companion.refreshOnSave: Enable/disable auto-refresh on file save

Known Issues

None reported. If you find any issues, please report them on our GitHub repository.

Release Notes

0.0.1

Initial release of API Companion:

  • Basic API endpoint detection
  • File system watching
  • Quick navigation to endpoint definitions

Contributing

Contributions are always welcome! Please feel free to submit a Pull Request.

License

This extension is licensed under the MIT License.


Enjoy! 💻✨

Made with ❤️ by Monarch

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