Overview Version History Q & A Rating & Review
MockMaster Pro 🧩
Instant realistic mock data generator (@mock.name, @mock.email, @mock.uuid) and zero-dependency local mock REST API server from any JSON file for VS Code.
✨ Features
⚡ Inline Code Completions: Type @mock. in any code file (JS, TS, JSON, Python, HTML, YAML) and get instant autocompletion for:
@mock.uuid: Standard RFC 4122 v4 UUID
@mock.name: Realistic full names
@mock.email: Clean email addresses
@mock.phone: Formatted telephone numbers
@mock.avatar: UI avatar image URLs
@mock.date / @mock.datetime: ISO dates & timestamps
@mock.city / @mock.country / @mock.street: Realistic geo addresses
@mock.company / @mock.jobTitle: Corporate and professional titles
@mock.price: Numerical price values
@mock.lorem: Filler placeholder text
@mock.users(5): Array of 5 structured user objects
@mock.products(5): Array of 5 structured e-commerce products
@mock.posts(5): Array of 5 blog post objects
🚀 Embedded Local Mock REST API Server: 1-Click "Start Local Mock REST API from JSON":
Launches an HTTP server at http://localhost:4000 with zero external dependencies .
Supports automatic routing: /api/users, /api/users/1, /api/products, etc.
Supports GET , POST (appends item with auto-incremented ID), and DELETE (/api/users/:id).
Automatic CORS headers (Access-Control-Allow-Origin: *) for seamless frontend testing from React, Vue, Next.js, or Vite!
Simulated latency (configurable, e.g. 150ms) to test frontend loading spinners and skeletons.
📦 1-Click Mock Dataset Generator: Creates a structured multi-resource database (users, products, posts) in seconds.
🎯 Status Bar Indicator: Shows current port and active server state with 1-click browser launch and server stop.
⌨️ Shortcuts & Commands
Command
Title
Default Shortcut
mockMaster.insertMockData
Insert Realistic Mock Data at Cursor 🧩
Alt+M (Cmd+M on Mac)
mockMaster.startServer
Start Local Mock REST API from JSON
Command Palette
mockMaster.stopServer
Stop Local Mock REST API
Command Palette
mockMaster.generateDataset
Generate Sample Mock JSON Dataset
Command Palette
⚙️ Configuration Settings
Configure in VS Code Settings (Ctrl+, -> search MockMaster):
mockMaster.serverPort: Port number for the mock API server (default: 4000).
mockMaster.simulateLatencyMs: Simulated network delay in milliseconds (default: 150).
mockMaster.enableCors: Enable CORS headers for browser requests (default: true).
👤 Author
Developed by Pirapaakaran Pirathapan
📜 License
MIT License. Free for personal and commercial usage.