{"id":39937502,"url":"https://github.com/sonofmagic/mokup","last_synced_at":"2026-02-11T14:03:58.180Z","repository":{"id":332891488,"uuid":"1134939000","full_name":"sonofmagic/mokup","owner":"sonofmagic","description":"Fast, composable mock tooling","archived":false,"fork":false,"pushed_at":"2026-02-06T15:18:13.000Z","size":3114,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-06T23:56:39.621Z","etag":null,"topics":["hono","mock","mock-server"],"latest_commit_sha":null,"homepage":"https://mokup.icebreaker.top/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sonofmagic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null},"funding":{"github":["sonofmagic"],"custom":["https://github.com/sonofmagic/sponsors"]}},"created_at":"2026-01-15T12:22:57.000Z","updated_at":"2026-02-06T15:15:37.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/sonofmagic/mokup","commit_stats":null,"previous_names":["sonofmagic/mokup"],"tags_count":104,"template":false,"template_full_name":"sonofmagic/monorepo-template","purl":"pkg:github/sonofmagic/mokup","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sonofmagic%2Fmokup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sonofmagic%2Fmokup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sonofmagic%2Fmokup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sonofmagic%2Fmokup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sonofmagic","download_url":"https://codeload.github.com/sonofmagic/mokup/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sonofmagic%2Fmokup/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29333927,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-11T12:42:24.625Z","status":"ssl_error","status_checked_at":"2026-02-11T12:41:23.344Z","response_time":97,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hono","mock","mock-server"],"created_at":"2026-01-18T19:00:53.703Z","updated_at":"2026-02-11T14:03:58.164Z","avatar_url":"https://github.com/sonofmagic.png","language":"TypeScript","funding_links":["https://github.com/sponsors/sonofmagic","https://github.com/sonofmagic/sponsors"],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"docs/assets/mokup-logo.svg\" width=\"180\" alt=\"Mokup logo\"\u003e\n\u003c/p\u003e\n\u003ch1 align=\"center\"\u003emokup\u003c/h1\u003e\n\u003cp align=\"center\"\u003eFile-based mock toolkit for Vite, CLI builds, and runtime usage.\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"http://mokup.icebreaker.top/\"\u003eWebsite\u003c/a\u003e ·\n  \u003ca href=\"http://mokup.icebreaker.top/__mokup\"\u003ePlayground\u003c/a\u003e ·\n  \u003ca href=\"https://github.com/sonofmagic/mokup\"\u003eGitHub\u003c/a\u003e\n\u003c/p\u003e\n\n## Why mokup\n\n- File-based routing via filename suffixes like `users.get.json`.\n- JSON/JSONC and TS/JS handlers powered by Hono Context.\n- Works in Vite dev, CLI builds (workers), and runtime adapters.\n- Built-in headers, status, delays, and middleware hooks.\n\n## Quick start\n\nCreate `mock/users.get.json`:\n\n```json\n{ \"ok\": true }\n```\n\nCreate `mock/login.post.ts`:\n\n```ts\nexport default async (c) =\u003e {\n  const body = await c.req.json().catch(() =\u003e ({}))\n  return { ok: true, user: body }\n}\n```\n\nTip: you can use `defineHandler` for better IntelliSense:\n\n```ts\nimport { defineHandler } from 'mokup'\n\nexport default defineHandler(async (c) =\u003e {\n  const body = await c.req.json().catch(() =\u003e ({}))\n  return { ok: true, user: body }\n})\n```\n\nFollow the docs at http://mokup.icebreaker.top/ for Vite and CLI setup.\n\n## Contributing\n\nIssues and pull requests are welcome. See [CONTRIBUTING.md](CONTRIBUTING.md).\n\n## Contributors\n\nThanks to [all contributors](https://github.com/sonofmagic/mokup/graphs/contributors)!\n\n## Authors\n\nice breaker \u003c1324318532@qq.com\u003e\n\n## License\n\nDistributed under the MIT License. See [LICENSE](LICENSE) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsonofmagic%2Fmokup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsonofmagic%2Fmokup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsonofmagic%2Fmokup/lists"}