{"id":47865123,"url":"https://github.com/mockzilla/connexions-portable-template","last_synced_at":"2026-04-11T17:08:41.639Z","repository":{"id":347819378,"uuid":"1195353274","full_name":"mockzilla/connexions-portable-template","owner":"mockzilla","description":"Portable mock API server template for Connexions ","archived":false,"fork":false,"pushed_at":"2026-04-06T22:40:12.000Z","size":33,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-07T00:31:43.221Z","etag":null,"topics":["combine-multiple-api","create-api","mocks","mocks-server"],"latest_commit_sha":null,"homepage":"","language":"Go","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/mockzilla.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-29T15:13:02.000Z","updated_at":"2026-04-06T22:39:17.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/mockzilla/connexions-portable-template","commit_stats":null,"previous_names":["mockzilla/connexions-portable-template"],"tags_count":1,"template":true,"template_full_name":null,"purl":"pkg:github/mockzilla/connexions-portable-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mockzilla%2Fconnexions-portable-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mockzilla%2Fconnexions-portable-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mockzilla%2Fconnexions-portable-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mockzilla%2Fconnexions-portable-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mockzilla","download_url":"https://codeload.github.com/mockzilla/connexions-portable-template/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mockzilla%2Fconnexions-portable-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31687969,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-11T13:07:20.380Z","status":"ssl_error","status_checked_at":"2026-04-11T13:06:47.903Z","response_time":54,"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":["combine-multiple-api","create-api","mocks","mocks-server"],"created_at":"2026-04-04T00:05:28.242Z","updated_at":"2026-04-11T17:08:41.634Z","avatar_url":"https://github.com/mockzilla.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Connexions Portable Template\n\nA template for creating self-contained mock API servers using [Connexions](https://github.com/mockzilla/connexions).\n\nPlace your OpenAPI specs in `openapi/` and static responses in `static/`, build a single binary, and run it anywhere - no external files needed.\n\n## Quick start\n\n1. Click [**Use this template**](https://github.com/mockzilla/connexions-portable-template/generate) to create your own repository\n2. Add your OpenAPI specs to `openapi/` and/or static responses to `static/`\n3. Push to main - binaries for Linux, macOS, and Windows are built automatically and published to **Releases**\n\n## OpenAPI specs\n\nDrop `.yml`, `.yaml`, or `.json` OpenAPI spec files into the `openapi/` directory.\nEach spec becomes a separate service, accessible at `/{service-name}/`.\n\n## Static responses\n\nCreate directories under `static/{service-name}/{method}/` with JSON response files:\n\n```\nstatic/\n  hello-world/\n    get/\n      index.json          -\u003e GET /\n    post/\n      index.json          -\u003e POST /\n```\n\nSee the [Connexions docs](https://github.com/mockzilla/connexions) for more options.\n\n## Release\n\nEvery push to main/master builds binaries for Linux, macOS, and Windows (amd64 and arm64) and publishes them to the **Releases** page. Download the binary for your platform from the `latest` release and run it locally:\n\n```bash\n./your-repo-name\n```\n\n## Mockzilla workflow\n\nThe included GitHub Actions workflow (`.github/workflows/mockzilla.yml`) publishes your specs to [Mockzilla](https://mockzilla.org) automatically:\n\n- **Push to main/master** — publishes the latest specs to your main simulation\n- **Pull request with `Mockzilla` label** — deploys a preview simulation for the PR (torn down when the PR is closed)\n\nThe `Mockzilla` label is created automatically on first push via the setup workflow.\n\nYour simulation will be available at:\n- `https://api.mockzilla.org/gh/{org}/{repo}/` — main branch\n- `https://api.mockzilla.org/gh/{org}/{repo}/pr-{n}/` — per pull request\n\n### Action inputs\n\nYou can customize the action in `.github/workflows/mockzilla.yml`:\n\n```yaml\n- uses: mockzilla/actions/portable@v1\n  with:\n    token: ${{ secrets.GITHUB_TOKEN }}\n    region: us-east-1        # optional — preferred AWS region, used as a hint on first deploy only\n    memory-size: 256         # optional — memory in MB (default: 128)\n    timeout: 60              # optional — request timeout in seconds\n    environment: '{\"ENV\":\"production\",\"DEBUG\":\"true\"}'  # optional\n    host: api.mockzilla.net  # optional — API host for the simulation URL\n    spec-dir: openapi        # optional — directory with OpenAPI specs (default: 'openapi')\n    static-dir: static       # optional — directory with static responses (default: 'static')\n    timeout-minutes: 5       # optional — max minutes to wait for simulation to become active (default: 5)\n```\n\n| Input | Required | Description |\n|---|---|---|\n| `token` | yes | `GITHUB_TOKEN` — used to verify repo identity |\n| `region` | no | Preferred AWS region (e.g. `us-east-1`, `ap-southeast-1`). Used as a hint on first deploy — if at capacity, the nearest available region is used. Has no effect after the simulation is deployed. |\n| `memory-size` | no | Memory in megabytes (e.g. `128`, `256`, `512`). Defaults to `128`. |\n| `timeout` | no | Request timeout for the simulation in seconds (e.g. `30`, `60`). |\n| `environment` | no | JSON object of environment variables to set in the simulation (e.g. `'{\"ENV\":\"production\"}'`). |\n| `host` | no | API host for the simulation URL (`api.mockzilla.org`, `api.mockzilla.de`, or `api.mockzilla.net`). Defaults to org setting or `api.mockzilla.org`. |\n| `spec-dir` | no | Directory containing OpenAPI specs. Defaults to `openapi`. |\n| `static-dir` | no | Directory containing static API responses. Defaults to `static`. |\n| `timeout-minutes` | no | Max minutes the action polls for the simulation to become active. Defaults to `5`. |\n\n### Check your simulation URL\n\nAfter pushing, your URL is deterministic:\n\n```bash\necho \"https://api.mockzilla.org/gh/$(gh repo view --json nameWithOwner -q .nameWithOwner)/$(git branch --show-current)/\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmockzilla%2Fconnexions-portable-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmockzilla%2Fconnexions-portable-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmockzilla%2Fconnexions-portable-template/lists"}