GitHub App · 12,000+ installs

A fake REST and GraphQL API, from one file in your repo.

Add a mockend.yml to a GitHub repository and get a hosted API with realistic data. No server to run, nothing to install. Made for frontend work, prototypes, docs and demos.

14-day free trial · Billing handled by GitHub · Cancel anytime

How it works

Two steps, no backend.

1

Describe your API

Commit a config file. Pick from 100+ random generators, provide your own data, and declare relations between models.

github.com/acme/front-app/mockend.yml
# Mockend configuration file
key: SECRET_KEY # Secure your API (optional)
models:
  User:
    fake: # 100+ random generators
      _count: 50 # Generate 50 users
      name: fullName
      online: bool
      picture: { imageUrl: [ 48, 48 ] }

    data: # Use your own data
      [ { name: 'Alice' } ]

    hasMany: [Post, Comment] # Relations to other models
2

Call it

Your API is live at mockend.com/api/{owner}/{repo}, with REST and GraphQL endpoints for every model. Create, read, update and delete as you would with a real backend.

mockend.com/api/acme/front-app/users/1
{
  "id": 1,
  "name": "Alice",
  "online": true,
  "picture": "https://picsum.photos/48/48"
}

Live demo

Try it now

These requests hit a real Mockend API, generated from this config file. Pick one, or edit the URL.

GET
Click a request to see the response.

Features

What you get

Realistic data
Names, emails, dates, images, addresses and more, generated from a one-line description. Or paste your own JSON.
REST and GraphQL
Every model gets CRUD routes, filters, pagination and sorting, plus a GraphQL endpoint with an explorer.
Relations
Declare hasMany and belongsTo once and query nested resources like a real API.
Private when you need it
Protect an API with a key so it stays hidden from the rest of the internet. Mockend only reads your config file, never your code.
Immutable by default
Writes are accepted but never persisted, so demos, docs and tests always start from the same dataset. Nothing to reset.
Lives in your repo
The API is a file, versioned with the code and reviewed in pull requests. Branches get their own API.

Pricing

Simple, flat pricing

One price per account, whatever the number of APIs or users. 14-day free trial, cancel anytime from GitHub.

Pro

For personal accounts

$29 /month

  • ✓Unlimited APIs and features
  • ✓Private APIs
  • ✓Email support
Start free trial
Teams

Business

For organizations

$99 /month

  • ✓Unlimited team members
  • ✓Unlimited APIs and features
  • ✓Private APIs
  • ✓Priority support
Start free trial

Need GitHub Enterprise or a self-hosted instance? Contact us.

Questions?

Read the FAQ or the documentation, or write to [email protected].