{"id":48801179,"url":"https://github.com/getmockd/mockd-samples","last_synced_at":"2026-04-14T03:01:12.642Z","repository":{"id":344978983,"uuid":"1183835267","full_name":"getmockd/mockd-samples","owner":"getmockd","description":"Real-world mockd sample configs — Stripe, Twilio, OpenAI digital twins","archived":false,"fork":false,"pushed_at":"2026-03-17T05:14:14.000Z","size":183,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-17T18:44:38.440Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/getmockd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-17T01:56:20.000Z","updated_at":"2026-03-17T05:14:17.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/getmockd/mockd-samples","commit_stats":null,"previous_names":["getmockd/mockd-samples"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/getmockd/mockd-samples","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getmockd%2Fmockd-samples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getmockd%2Fmockd-samples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getmockd%2Fmockd-samples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getmockd%2Fmockd-samples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/getmockd","download_url":"https://codeload.github.com/getmockd/mockd-samples/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getmockd%2Fmockd-samples/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31779947,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T02:24:21.117Z","status":"ssl_error","status_checked_at":"2026-04-14T02:24:20.627Z","response_time":153,"last_error":"SSL_read: 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":[],"created_at":"2026-04-14T03:01:11.567Z","updated_at":"2026-04-14T03:01:12.625Z","avatar_url":"https://github.com/getmockd.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mockd Samples\n\nReal-world examples of [mockd](https://github.com/getmockd/mockd)'s digital twin and API mocking capabilities.\n\n## Available Samples\n\n### Digital Twins (Third-Party APIs)\n\n| Sample | Description | Stateful | Endpoints | SDK Tested |\n|--------|-------------|----------|-----------|------------|\n| [Stripe API](third-party-apis/stripe-api/) | Full Stripe payment API digital twin | 9 tables, 46 bindings, 8 custom ops | 587 | stripe-go 49/49 |\n| [Twilio API](third-party-apis/twilio-api/) | Twilio REST API v2010 digital twin | 7 tables, 32 bindings | 197 | twilio-go 13/13 |\n| [OpenAI API](third-party-apis/openai-api/) | OpenAI API with stateful models + assistants | 3 tables, 11 bindings | 237 | openai Python SDK |\n\n### Use Case Samples\n\n| Sample | Description | What it shows |\n|--------|-------------|---------------|\n| [MCP Workflow](ai-agents/mcp-workflow/) | Build a Todo API with AI tool calls | Create mocks via MCP — zero CLI commands |\n| [GitHub Actions](ci-testing/github-actions/) | Contract testing in CI | `setup-mockd` action + `mockd verify` |\n| [Docker Compose](microservices/docker-compose/) | Mock dependent microservices | User + Payment service mocks for local dev |\n\n## Quick Start\n\nEvery sample follows the same pattern:\n\n```bash\ncd third-party-apis/stripe-api\nmockd start -c mockd.yaml --no-auth\n```\n\nOr with Docker:\n\n```bash\ndocker compose up\n```\n\nThe mock server runs on `localhost:4280` by default.\n\n## Digital Twin Architecture\n\nThe Stripe and Twilio samples are **digital twins** — stateful mocks that behave like the real API:\n\n- **Tables** define in-memory resource collections (customers, invoices, messages, etc.)\n- **Extend bindings** wire HTTP endpoints to CRUD operations on those tables\n- **Custom operations** handle domain logic (e.g., paying an invoice, sending a message)\n- **Imports** split large configs into composable files\n\nThis means `POST /v1/customers` actually creates a customer that `GET /v1/customers/:id` can retrieve — no scripting required.\n\n## Requirements\n\n- mockd v0.6.0+\n\n## Links\n\n- [mockd](https://github.com/getmockd/mockd) — Core engine\n- [docs.mockd.io](https://docs.mockd.io) — Documentation\n- [mockd-templates](https://github.com/getmockd/mockd-templates) — Reusable mock configs\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetmockd%2Fmockd-samples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgetmockd%2Fmockd-samples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetmockd%2Fmockd-samples/lists"}