{"id":50464226,"url":"https://github.com/smilewithkhushi/zk-simulation","last_synced_at":"2026-06-01T06:04:58.362Z","repository":{"id":347937560,"uuid":"1195809757","full_name":"smilewithkhushi/zk-simulation","owner":"smilewithkhushi","description":"Ali baba cave simulation to understand ZK Proofs as a beginner","archived":false,"fork":false,"pushed_at":"2026-03-30T05:02:49.000Z","size":90,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-03-30T06:58:10.682Z","etag":null,"topics":["zero-knowledge-proofs","zkverify"],"latest_commit_sha":null,"homepage":"https://cavesimulation.vercel.app","language":"TypeScript","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/smilewithkhushi.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-30T04:49:30.000Z","updated_at":"2026-03-30T05:02:53.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/smilewithkhushi/zk-simulation","commit_stats":null,"previous_names":["smilewithkhushi/zk-simulation"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/smilewithkhushi/zk-simulation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smilewithkhushi%2Fzk-simulation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smilewithkhushi%2Fzk-simulation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smilewithkhushi%2Fzk-simulation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smilewithkhushi%2Fzk-simulation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/smilewithkhushi","download_url":"https://codeload.github.com/smilewithkhushi/zk-simulation/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smilewithkhushi%2Fzk-simulation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33762220,"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-01T02:00:06.963Z","response_time":115,"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":["zero-knowledge-proofs","zkverify"],"created_at":"2026-06-01T06:04:58.290Z","updated_at":"2026-06-01T06:04:58.356Z","avatar_url":"https://github.com/smilewithkhushi.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ZK Cave Simulator\n\nAn interactive simulation of the **Ali Baba Zero-Knowledge Proof** cave problem — a classic thought experiment used to explain zero-knowledge proofs intuitively.\n\n## What is this?\n\nZero-knowledge proofs (ZKPs) allow one party (the **Prover**) to convince another (the **Verifier**) that they know a secret, without revealing the secret itself. The Ali Baba cave is the canonical analogy:\n\n- A cave has two paths (A and B) connected by a magic door that only opens with a secret password.\n- The Prover claims to know the password.\n- The Verifier challenges the Prover to exit from a randomly chosen side.\n- If the Prover truly knows the secret, they always succeed. A cheater succeeds only 50% of the time per round.\n\nThis simulator lets you explore the three core properties of ZKPs:\n\n| Mode | Description |\n|------|-------------|\n| **Completeness** | An honest Prover who knows the secret always passes |\n| **Soundness** | A cheating Prover who doesn't know the secret gets caught over repeated rounds |\n| **Zero-Knowledge** | The Verifier learns nothing about the secret from the interaction |\n\n## Tech Stack\n\n- [Next.js 14](https://nextjs.org/) (App Router)\n- [React 18](https://react.dev/)\n- [Framer Motion](https://www.framer.com/motion/) — animations\n- [Tailwind CSS](https://tailwindcss.com/) — styling\n- TypeScript\n\n## Getting Started\n\n```bash\n# Install dependencies\npnpm install\n\n# Run the development server\npnpm dev\n```\n\nOpen [http://localhost:3000](http://localhost:3000) in your browser.\n\n## Project Structure\n\n```\napp/                    # Next.js App Router pages\ncomponents/\n  cave-simulator/       # All simulator UI components\n    CaveSimulator.tsx   # Root simulator component\n    CaveScene.tsx       # Animated cave visualization\n    ModeCompleteness.tsx\n    ModeSoundness.tsx\n    ModeZeroKnowledge.tsx\n    NarrativePanel.tsx\n    ProbabilityBar.tsx\n    TranscriptLog.tsx\nlib/                    # Shared utilities\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmilewithkhushi%2Fzk-simulation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmilewithkhushi%2Fzk-simulation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmilewithkhushi%2Fzk-simulation/lists"}