Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>MockMaster Pro: Instant Mock Data & Local API Server 🧩New to Visual Studio Code? Get it now.
MockMaster Pro: Instant Mock Data & Local API Server 🧩

MockMaster Pro: Instant Mock Data & Local API Server 🧩

PirapaakaranPirathapan

|
1 install
| (0) | Free
Generate realistic mock data inline (@mock.name, @mock.email, @mock.uuid) and launch zero-dependency local mock REST API servers from any JSON file!
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

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.

Version License: MIT


✨ 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

  • LinkedIn: pirapaakaran-pirathapan
  • Repository: vscode-ex GitLab

📜 License

MIT License. Free for personal and commercial usage.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft