A Visual Studio Code extension for working with NATS servers directly from the editor. Create .nats files, connect to servers, and execute commands through an intuitive Code Lens interface.
-
Create a
.natsfile with your commands:SUBSCRIBE foo.bar REQUEST foo.bar { "data": "hello" } PUBLISH foo.bar { "data": "world" } -
Connect to your NATS server:
- Open Command Palette (
Ctrl+Shift+P) - Run
NATS: Connect - Enter server URL (e.g.,
nats://localhost:4222)
- Open Command Palette (
-
Use Code Lens buttons that appear above each command to execute them
- English Documentation - Complete user guide in English
- Русская Документация - Полное руководство пользователя на русском
- Interactive Code Lens - Click buttons to execute NATS commands
- Flexible Data Support - JSON objects, strings, and
randomId()function - Auto-connection - Automatically connects to your last used server
- Separate Output Channels - Dedicated windows for each subject
- Multi-line Support - Handle complex JSON structures
SUBSCRIBE- Subscribe to messagesREQUEST- Send requests and receive responsesPUBLISH- Publish messages
Install from VS Code Marketplace or build from source:
npm install
npm run compileIssues and pull requests are welcome! Please check the documentation files for detailed usage examples.