{"id":19149931,"url":"https://github.com/harness/ff-mock-server","last_synced_at":"2026-06-17T08:32:03.254Z","repository":{"id":40431546,"uuid":"431073026","full_name":"harness/ff-mock-server","owner":"harness","description":"Feature Flag mock server","archived":false,"fork":false,"pushed_at":"2022-05-18T11:44:03.000Z","size":59,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":58,"default_branch":"main","last_synced_at":"2025-02-22T20:41:57.669Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/harness.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-11-23T11:24:34.000Z","updated_at":"2022-05-12T10:58:29.000Z","dependencies_parsed_at":"2022-07-24T19:17:17.445Z","dependency_job_id":null,"html_url":"https://github.com/harness/ff-mock-server","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/harness/ff-mock-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harness%2Fff-mock-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harness%2Fff-mock-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harness%2Fff-mock-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harness%2Fff-mock-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/harness","download_url":"https://codeload.github.com/harness/ff-mock-server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harness%2Fff-mock-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34441283,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-17T02:00:05.408Z","response_time":127,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2024-11-09T08:10:06.065Z","updated_at":"2026-06-17T08:32:03.236Z","avatar_url":"https://github.com/harness.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Feature Flag mock server\n\nVery light mock server which serves simple configurations and target groups. Supports streams and metrics validation.\n\n# How to run\n```\ndocker run -d -p 9090:3000 ff-mock-server:latest\n// wait until the server starts\ndocker exec ${ID} /bin/bash /app/wait-for-it.sh\n```\n# Authentication keys\nYou need to specify api key to access all api endpoints\n* Server key: `2e182b14-9944-4bd4-9c9f-3e859e2a2954`\n* Client key: `2e2ecf62-ce53-4e9e-8006-b4db0386688c`\n\n# Default values\n```\n* environmentUUID: 265597ad-516c-4575-a16f-b3d17adffc44\n* defaultClusterIdentifier: cluster\n* project: demo\n* environment: dev\n* flag: bool-flag\n* target group: demo\n```\n\n# How to use\n\nWhen server is started sample app can connect and use custom config Url and event Url\n\n```java\nfinal HarnessConnector hc = new HarnessConnector(SDK_KEY, HarnessConfig.builder().configUrl(\"http://localhost:9090/api/1.0\").build(), null);\nfinal CfClient client = new CfClient(hc);\nclient.waitForInitialization();\nfinal boolean bResult = client.boolVariation(\"bool-flag\", null, false);\n\nassert bResult == true\n```\n* flag: demo-flag\n\n# Flags\n\nApplication Options:\n-t, --timeout=     Request timeout\n-s, --status-code= returns HTTP status code\n-m, --message=     Message to display in response\n-e, --sse=         SSE off sequence, -e=10 -e=30 -e=60 means it will go off in 10s, 30s and 60s\n-o, --operation=   operation (Authenticate, GetFeatureConfig, GetFeatureConfigByIdentifier, GetAllSegments, GetSegmentByIdentifier, GetEvaluations, GetEvaluationByIdentifier, postMetrics, Stream)\n\nHelp Options:\n-h, --help         Show this help message\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharness%2Fff-mock-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fharness%2Fff-mock-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharness%2Fff-mock-server/lists"}