Skip to content

sonofmagic/mokup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Mokup logo

mokup

File-based mock toolkit for Vite, CLI builds, and runtime usage.

Website · Playground · GitHub

Why mokup

  • File-based routing via filename suffixes like users.get.json.
  • JSON/JSONC and TS/JS handlers powered by Hono Context.
  • Works in Vite dev, CLI builds (workers), and runtime adapters.
  • Built-in headers, status, delays, and middleware hooks.

Quick start

Create mock/users.get.json:

{ "ok": true }

Create mock/login.post.ts:

export default async (c) => {
  const body = await c.req.json().catch(() => ({}))
  return { ok: true, user: body }
}

Follow the docs at http://mokup.icebreaker.top/ for Vite and CLI setup.

Contributing

Issues and pull requests are welcome. See CONTRIBUTING.md.

Contributors

Thanks to all contributors!

Authors

ice breaker [email protected]

License

Distributed under the MIT License. See LICENSE for more information.

About

Fast, composable mock tooling

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Contributors 2

  •  
  •