{"id":36924259,"url":"https://github.com/Huseyinnurbaki/mocktail","last_synced_at":"2026-01-28T10:01:01.840Z","repository":{"id":38149165,"uuid":"258341966","full_name":"Huseyinnurbaki/mocktail","owner":"Huseyinnurbaki","description":"Free, 11MB, containerized, self-hosted mock server.","archived":false,"fork":false,"pushed_at":"2026-01-25T08:16:58.000Z","size":15652,"stargazers_count":237,"open_issues_count":5,"forks_count":9,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-25T23:11:36.491Z","etag":null,"topics":["docker","go","gofiber","json-server","kubernetes","mock","mock-api","mock-data","mock-server","react"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/Huseyinnurbaki.png","metadata":{"files":{"readme":"readme.md","changelog":"changelog.md","contributing":null,"funding":null,"license":"LICENSE","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":"2020-04-23T22:06:59.000Z","updated_at":"2026-01-25T08:05:04.000Z","dependencies_parsed_at":"2024-06-19T02:55:34.657Z","dependency_job_id":"27d96efe-bafa-4860-8a3a-df031257f54f","html_url":"https://github.com/Huseyinnurbaki/mocktail","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/Huseyinnurbaki/mocktail","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Huseyinnurbaki%2Fmocktail","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Huseyinnurbaki%2Fmocktail/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Huseyinnurbaki%2Fmocktail/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Huseyinnurbaki%2Fmocktail/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Huseyinnurbaki","download_url":"https://codeload.github.com/Huseyinnurbaki/mocktail/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Huseyinnurbaki%2Fmocktail/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28844011,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T07:39:25.367Z","status":"ssl_error","status_checked_at":"2026-01-28T07:39:24.487Z","response_time":57,"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":["docker","go","gofiber","json-server","kubernetes","mock","mock-api","mock-data","mock-server","react"],"created_at":"2026-01-12T19:00:25.491Z","updated_at":"2026-01-28T10:01:01.824Z","avatar_url":"https://github.com/Huseyinnurbaki.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# Mocktail\n\n![Docker Image Version (latest by date)](https://img.shields.io/docker/v/hhaluk/mocktail?color=blue\u0026logo=docker)\n![Docker Image Size (latest by date)](https://img.shields.io/docker/image-size/hhaluk/mocktail?color=B4D4A55\u0026logo=docker)\n![Docker Image Version (latest semver)](https://img.shields.io/docker/v/hhaluk/mocktail?label=stable-version\u0026logo=docker\u0026sort=semver\u0026style=flat-square)\n![GitHub release (latest SemVer including pre-releases)](https://img.shields.io/github/v/release/Huseyinnurbaki/mocktail?include_prereleases\u0026logo=github)\n[![Docker Build CI](https://github.com/Huseyinnurbaki/mocktail/actions/workflows/dockerize.yml/badge.svg?branch=master)](https://github.com/Huseyinnurbaki/mocktail/actions/workflows/dockerize.yml)\n![Docker Pulls](https://img.shields.io/docker/pulls/hhaluk/mocktail?color=gray\u0026logo=docker)\n\nMocktail is completely free, lightweight (~13MB), self-hosted, containerized mock server with a modern dashboard.\n\nNo limitations or restrictions. Mock any HTTP request. Export and import your mocks.\n\n[Quickstart](#quickstart) 🚀 •\n[Features](#features) ✨ •\n[v3.0 Changes](#v30-changes) 🔥\n\n\u003e **Note:** Looking for v2? See [v2.0.3](https://github.com/Huseyinnurbaki/mocktail/tree/2.0.3) - the last stable v2 release.\n\n\u003c/div\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/Huseyinnurbaki/notes/blob/master/Storage/mocktail_V3.gif?raw=true\" alt=\"mocktail_gif\" /\u003e\n\u003c/p\u003e\n\n## Quickstart\n\n\u003cdetails\u003e\n  \u003csummary\u003eDocker 🐳\u003c/summary\u003e\n\n## Run Mocktail in a Docker container 🐳\n\n```console\ndocker run -p 4000:4000 -v $(pwd)/db:/db -d hhaluk/mocktail:3.0.0\n```\n\nThe `-v $(pwd)/db:/db` flag mounts a local directory to persist your mock data.\n\n### Go to **localhost:4000** 🏃\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003eDocker Compose 🐳\u003c/summary\u003e\n\n## Run with Docker Compose\n\n```console\ndocker-compose up -d\n```\n\nOr build and run:\n\n```console\ndocker-compose up -d --build\n```\n\n### Go to **localhost:4000** 🏃\n\nThe database is automatically persisted in `./mocktail-api/db/` on your host machine.\n\n\u003c/details\u003e\n\n## Features\n\n- **Create Mock APIs** - Support for GET/POST/PUT/PATCH/DELETE methods\n- **Custom Status Codes** - Return any HTTP status (200, 404, 500, etc.) to test error handling\n- **Response Delays** - Add 0-30000ms delay to simulate network latency and loading states\n- **JSON Editor** - CodeMirror-powered editor with syntax highlighting, error detection, and code folding\n- **Code Examples** - Instantly generate cURL, Node.js, Python, and Go code snippets for any endpoint\n- **Generate Menu** - Placeholder UI for upcoming AI features (prompt-based generation, array expansion, randomization, anonymization) (In progress)\n- **Modern Dashboard** - Clean, intuitive interface built with React and Chakra UI v3\n- **Catalog View** - Browse, search, and manage all your mock endpoints with quick actions\n- **Quick Edit** - Update status codes and delays instantly via gear icon in catalog\n- **Test Endpoints** - Test mocks directly from the catalog list with visual feedback\n- **Import/Export** - Export mocks to JSON and import them anywhere\n- **Persistent Storage** - SQLite database with volume mounting\n- **Multi-Platform** - Native support for amd64 and arm64 (Intel, Apple Silicon, Raspberry Pi)\n- **Health Check** - `/health` endpoint for monitoring and orchestration\n- **Customizable URLs** - Override display URLs for reverse proxy/custom domain setups\n\n## Configuration\n\n### Environment Variables\n\n**`REACT_APP_MOCKTAIL_URL`** (optional)\n\nOverride the Mocktail URL displayed in the dashboard. Useful when deploying behind a reverse proxy or custom domain.\n\n```bash\n# Example: Custom domain\nREACT_APP_MOCKTAIL_URL=https://api.mycompany.com/mocktail\n\n# Example: Reverse proxy\nREACT_APP_MOCKTAIL_URL=https://gateway.example.com/mocktail\n```\n\nIf not set, defaults to:\n- **Development:** `http://localhost:4000/mocktail`\n- **Production:** `[your-domain]/mocktail`\n\n## v3.0 Changes\n\n### 🎉 What's New\n\n- **Custom Status Codes \u0026 Delays** - Configure HTTP status codes and response delays per endpoint\n- **CodeMirror JSON Editor** - Professional code editor with syntax highlighting and error detection\n- **Quick Actions** - Test, edit, copy, and delete directly from the catalog list with icon buttons\n- **Chakra UI v3** - Complete UI library upgrade with modern components\n- **Go 1.24 \u0026 GORM v2** - Latest backend stack with improved performance\n- **Fiber v2.52** - Updated web framework with security patches\n- **Cleaner Architecture** - Improved code organization and consistency\n- **Health Endpoint** - `/health` for Docker health checks and monitoring\n- **Auto-Setup** - Database directory auto-creates on first run\n- **Import/Export UI** - Moved to Catalog tab with better UX\n\n### 🔄 What Changed\n\n- **Import Tab Removed** - Import functionality now in Catalog tab\n- **Drag \u0026 Drop Removed** - Simplified to native file input\n- **react-dropzone Removed** - Reduced dependencies\n\n### ⚠️ Breaking Changes\n\n**v3.0 is not backwards compatible with v2.x databases.**\n\nHowever, you can migrate your data:\n1. In v2, export your mocks to JSON (Catalog → Export)\n2. Install v3.0\n3. Import the JSON file (Catalog → Import)\n\nYour mock endpoints will work unchanged - only the internal database structure changed.\n\n## Development\n\n\u003cdetails\u003e\n  \u003csummary\u003eLocal Development 🏃\u003c/summary\u003e\n\n### Using Makefile (Recommended)\n\n```console\n# Run backend dev server\nmake dev-api\n\n# Run dashboard dev server (in another terminal)\nmake dev-dashboard\n\n# Build everything\nmake build\n\n# Build Docker image\nmake build-docker\n```\n\n### Manual Setup\n\n**Backend:**\n\n```console\ncd mocktail-api\ngo run main.go\n```\n\n**Dashboard:**\n\n```console\ncd mocktail-dashboard\nyarn install\nyarn start\n```\n\nBackend runs on **localhost:4000**, Dashboard on **localhost:3001**\n\nVSCode debug configuration is included for Go debugging.\n\n\u003c/details\u003e\n\n### References\n\n- [Changelog](https://github.com/Huseyinnurbaki/mocktail/blob/master/changelog.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FHuseyinnurbaki%2Fmocktail","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FHuseyinnurbaki%2Fmocktail","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FHuseyinnurbaki%2Fmocktail/lists"}