mockapi-instant-rest-api-from-json

1
1
Source

Spin up a mock REST API server from JSON files in seconds. Full CRUD, filtering, pagination. Zero config. Free CLI tool for frontend developers.

Install

mkdir -p .claude/skills/mockapi-instant-rest-api-from-json && curl -L -o skill.zip "https://mcp.directory/api/skills/download/6172" && unzip -o skill.zip -d .claude/skills/mockapi-instant-rest-api-from-json && rm skill.zip

Installs to .claude/skills/mockapi-instant-rest-api-from-json

About this skill

MockAPI

Create a REST API from a JSON file. Perfect for frontend development, testing, prototyping.

Installation

npm install -g @lxgicstudios/mockapi

Quick Start

# Create example db.json
npx @lxgicstudios/mockapi --init

# Start server
npx @lxgicstudios/mockapi db.json

Data File Format

Create db.json:

{
  "users": [
    { "id": 1, "name": "Alice", "email": "[email protected]" },
    { "id": 2, "name": "Bob", "email": "[email protected]" }
  ],
  "posts": [
    { "id": 1, "title": "Hello", "body": "Content", "userId": 1 }
  ]
}

Generated Routes

For each resource (users, posts):

MethodRouteDescription
GET/usersList all
GET/users/:idGet by id
POST/usersCreate
PUT/users/:idReplace
PATCH/users/:idUpdate
DELETE/users/:idDelete

Query Parameters

# Filter
GET /users?name=Alice

# Pagination
GET /users?_page=1&_limit=10

# Sort
GET /users?_sort=name&_order=asc

Options

OptionDescription
-p, --portPort (default: 3001)
-d, --delayResponse delay in ms
-w, --watchWatch file for changes
-r, --readonlyDisable mutations
--initCreate example db.json

Common Use Cases

Frontend development:

npx @lxgicstudios/mockapi db.json --watch

Demo with delay:

npx @lxgicstudios/mockapi db.json --delay 500

Read-only API:

npx @lxgicstudios/mockapi db.json --readonly

Features

  • Full CRUD operations
  • Automatic ID generation
  • Filtering and pagination
  • Sorting
  • CORS enabled
  • Hot reload with --watch
  • Persistent changes to JSON

Built by LXGIC Studios

๐Ÿ”— GitHub ยท Twitter

a-stock-analysis

openclaw

A่‚กๅฎžๆ—ถ่กŒๆƒ…ไธŽๅˆ†ๆ—ถ้‡่ƒฝๅˆ†ๆžใ€‚่Žทๅ–ๆฒชๆทฑ่‚ก็ฅจๅฎžๆ—ถไปทๆ ผใ€ๆถจ่ทŒใ€ๆˆไบค้‡๏ผŒๅˆ†ๆžๅˆ†ๆ—ถ้‡่ƒฝๅˆ†ๅธƒ๏ผˆๆ—ฉ็›˜/ๅฐพ็›˜ๆ”พ้‡๏ผ‰ใ€ไธปๅŠ›ๅŠจๅ‘๏ผˆๆŠข็ญน/ๅ‡บ่ดงไฟกๅท๏ผ‰ใ€ๆถจๅœๅฐๅ•ใ€‚ๆ”ฏๆŒๆŒไป“็ฎก็†ๅ’Œ็›ˆไบๅˆ†ๆžใ€‚Use when: (1) ๆŸฅ่ฏขA่‚กๅฎžๆ—ถ่กŒๆƒ…, (2) ๅˆ†ๆžไธปๅŠ›่ต„้‡‘ๅŠจๅ‘, (3) ๆŸฅ็œ‹ๅˆ†ๆ—ถๆˆไบค้‡ๅˆ†ๅธƒ, (4) ็ฎก็†่‚ก็ฅจๆŒไป“, (5) ๅˆ†ๆžๆŒไป“็›ˆไบใ€‚

316125

research-paper-writer

openclaw

Creates formal academic research papers following IEEE/ACM formatting standards with proper structure, citations, and scholarly writing style. Use when the user asks to write a research paper, academic paper, or conference paper on any topic.

4773

gog

openclaw

Google Workspace CLI for Gmail, Calendar, Drive, Contacts, Sheets, and Docs.

16470

seedream-image-gen

openclaw

Generate images via Seedream API (doubao-seedream models). Synchronous generation.

4062

weread

openclaw

WeChat Reading (ๅพฎไฟก่ฏปไนฆ) CLI tool for fetching notes and highlights. Use when: (1) user asks about weread/ๅพฎไฟก่ฏปไนฆ notes or highlights, (2) fetching today's or recent reading notes, (3) exporting book highlights, (4) managing reading bookshelf, (5) any task involving reading notes from WeChat Reading.

5061

keyword-research

openclaw

Discovers high-value keywords with search intent analysis, difficulty assessment, and content opportunity mapping. Essential for starting any SEO or GEO content strategy.

27857

You might also like

flutter-development

aj-geddes

Build beautiful cross-platform mobile apps with Flutter and Dart. Covers widgets, state management with Provider/BLoC, navigation, API integration, and material design.

1,6851,430

ui-ux-pro-max

nextlevelbuilder

"UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient."

1,2681,335

drawio-diagrams-enhanced

jgtolentino

Create professional draw.io (diagrams.net) diagrams in XML format (.drawio files) with integrated PMP/PMBOK methodologies, extensive visual asset libraries, and industry-standard professional templates. Use this skill when users ask to create flowcharts, swimlane diagrams, cross-functional flowcharts, org charts, network diagrams, UML diagrams, BPMN, project management diagrams (WBS, Gantt, PERT, RACI), risk matrices, stakeholder maps, or any other visual diagram in draw.io format. This skill includes access to custom shape libraries for icons, clipart, and professional symbols.

1,5441,153

godot

bfollington

This skill should be used when working on Godot Engine projects. It provides specialized knowledge of Godot's file formats (.gd, .tscn, .tres), architecture patterns (component-based, signal-driven, resource-based), common pitfalls, validation tools, code templates, and CLI workflows. The `godot` command is available for running the game, validating scripts, importing resources, and exporting builds. Use this skill for tasks involving Godot game development, debugging scene/resource files, implementing game systems, or creating new Godot components.

1,357809

nano-banana-pro

garg-aayush

Generate and edit images using Google's Nano Banana Pro (Gemini 3 Pro Image) API. Use when the user asks to generate, create, edit, modify, change, alter, or update images. Also use when user references an existing image file and asks to modify it in any way (e.g., "modify this image", "change the background", "replace X with Y"). Supports both text-to-image generation and image-to-image editing with configurable resolution (1K default, 2K, or 4K for high resolution). DO NOT read the image file first - use this skill directly with the --input-image parameter.

1,264728

pdf-to-markdown

aliceisjustplaying

Convert entire PDF documents to clean, structured Markdown for full context loading. Use this skill when the user wants to extract ALL text from a PDF into context (not grep/search), when discussing or analyzing PDF content in full, when the user mentions "load the whole PDF", "bring the PDF into context", "read the entire PDF", or when partial extraction/grepping would miss important context. This is the preferred method for PDF text extraction over page-by-page or grep approaches.

1,491684