skills$openclaw/MockAPI - Instant REST API from JSON
lxgicstudios9.1kโ˜…

by lxgicstudios

MockAPI - Instant REST API from JSON โ€“ OpenClaw Skill

MockAPI - Instant REST API from JSON is an OpenClaw Skills integration for coding workflows. Spin up a mock REST API server from JSON files in seconds. Full CRUD, filtering, pagination. Zero config. Free CLI tool for frontend developers.

9.1k stars2.7k forksSecurity L1
Updated Feb 7, 2026Created Feb 7, 2026coding

Skill Snapshot

nameMockAPI - Instant REST API from JSON
descriptionSpin up a mock REST API server from JSON files in seconds. Full CRUD, filtering, pagination. Zero config. Free CLI tool for frontend developers. OpenClaw Skills integration.
ownerlxgicstudios
repositorylxgicstudios/mockapi
languageMarkdown
licenseMIT
topics
securityL1
installopenclaw add @lxgicstudios/mockapi
last updatedFeb 7, 2026

Maintainer

lxgicstudios

lxgicstudios

Maintains MockAPI - Instant REST API from JSON in the OpenClaw Skills directory.

View GitHub profile
File Explorer
2 files
.
_meta.json
299 B
SKILL.md
2.1 KB
SKILL.md

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

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": "alice@example.com" },
    { "id": 2, "name": "Bob", "email": "bob@example.com" }
  ],
  "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

README.md

No README available.

Permissions & Security

Security level L1: Low-risk skills with minimal permissions. Review inputs and outputs before running in production.

Requirements

  • OpenClaw CLI installed and configured.
  • Language: Markdown
  • License: MIT
  • Topics:

FAQ

How do I install MockAPI - Instant REST API from JSON?

Run openclaw add @lxgicstudios/mockapi in your terminal. This installs MockAPI - Instant REST API from JSON into your OpenClaw Skills catalog.

Does this skill run locally or in the cloud?

OpenClaw Skills execute locally by default. Review the SKILL.md and permissions before running any skill.

Where can I verify the source code?

The source repository is available at https://github.com/openclaw/skills/tree/main/skills/lxgicstudios/mockapi. Review commits and README documentation before installing.