{"id":28527658,"url":"https://github.com/keep-starknet-strange/scaffold-garaga","last_synced_at":"2026-01-31T03:01:56.514Z","repository":{"id":288153777,"uuid":"966072203","full_name":"keep-starknet-strange/scaffold-garaga","owner":"keep-starknet-strange","description":"Noir + Garaga + Starknet web app tutorial (in-browser proving)","archived":false,"fork":false,"pushed_at":"2025-12-04T14:16:57.000Z","size":2451,"stargazers_count":25,"open_issues_count":3,"forks_count":9,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-12-07T19:38:12.315Z","etag":null,"topics":["cairo","hackaton","noir","starknet","starter"],"latest_commit_sha":null,"homepage":"https://www.youtube.com/watch?v=su2F0rShkiQ","language":"Cairo","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/keep-starknet-strange.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":"2025-04-14T11:06:44.000Z","updated_at":"2025-12-04T14:16:35.000Z","dependencies_parsed_at":"2025-12-05T10:07:34.806Z","dependency_job_id":null,"html_url":"https://github.com/keep-starknet-strange/scaffold-garaga","commit_stats":null,"previous_names":["m-kus/scaffold-garaga","keep-starknet-strange/scaffold-garaga"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/keep-starknet-strange/scaffold-garaga","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keep-starknet-strange%2Fscaffold-garaga","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keep-starknet-strange%2Fscaffold-garaga/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keep-starknet-strange%2Fscaffold-garaga/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keep-starknet-strange%2Fscaffold-garaga/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/keep-starknet-strange","download_url":"https://codeload.github.com/keep-starknet-strange/scaffold-garaga/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keep-starknet-strange%2Fscaffold-garaga/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28927769,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T02:59:34.861Z","status":"ssl_error","status_checked_at":"2026-01-31T02:59:05.369Z","response_time":128,"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":["cairo","hackaton","noir","starknet","starter"],"created_at":"2025-06-09T12:14:29.109Z","updated_at":"2026-01-31T03:01:56.509Z","avatar_url":"https://github.com/keep-starknet-strange.png","language":"Cairo","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Scaffold Garaga app\n\nThis is a Noir+Garaga+Starknet starter with in-browser proving and a step-by-step guide how to:\n- Generate and deploy UltraHonk proof verifier contract to Starknet devnet\n- Add state to your privacy preserving app\n- Add wallet connection and deploy to public testnet\n\n## Install\n\nEnsure you have node.js \u003e= 20 installed.  \n\nBun is used for package management, install it with:\n```sh\nmake install-bun\n```\n\nFor compiling Noir circuits and generating proofs we need specific versions of Aztec packages:\n```sh\nmake install-noir\nmake install-barretenberg\n```\n\nStarknet toolkit comes in a single bundle via asdf (the following command will install it if you don't have it):\n```sh\nmake install-starknet\n```\n\nWe also need to install a tool for spawning local Starknet chain:\n```sh\nmake install-devnet\n```\n\nFinally we need to install Garaga. Make sure you have Python 3.10 in your system. You may also need to start a separate Python virtual environment for this to work. You can do that with `python3.10 -m venv garaga-venv \u0026\u0026 source garaga-venv/bin/activate`. Then install with:\n\n```sh\nmake install-garaga\n```\n\nNote that we need specific versions of Noir, Barretenberg, and Garaga to work well together. If you are experiencing any issues with code generation, proving, and verification — first of all ensure you have the correct package versions.\n\n## Tutorial\n\nThis repo is organized in layers: each app iteration is a new git branch.  \n\nFollow the steps and checkout the necessary branch:\n1. [`master`](https://github.com/m-kus/scaffold-garaga/tree/master) — in-browser proof generation and stateless proof verification in devnet\n2. [`1-app-logic`](https://github.com/m-kus/scaffold-garaga/tree/1-app-logic) — more involved Noir circuit logic\n3. [`2-app-state`](https://github.com/m-kus/scaffold-garaga/tree/2-app-state) — extend onchain part with a storage for nullifiers\n4. [`3-testnet`](https://github.com/m-kus/scaffold-garaga/tree/3-testnet) — deploy to public Starknet testnet and interact via wallet\n\n## Run app\n\nFirst of all we need to build our Noir circuit:\n\n```sh\nmake build-circuit\n```\n\nSample inputs are already provided in `Prover.toml`, execute to generate witness:\n\n```sh\nmake exec-circuit\n```\n\nGenerate verification key:\n\n```sh\nmake gen-vk\n```\n\nNow we can generate the verifier contract in Cairo using Garaga:\n\n```sh\nmake gen-verifier\n```\n\nLet's start our local development network in other terminal instance:\n\n```sh\nmake devnet\n```\n\nYou now need to start a new terminal window. Initialize the account we will be using for deployment:\n\n```sh\nmake accounts-file\n```\n\nFirst we need to declare out contract (\"upload\" contract code):\n\n```sh\nmake declare-verifier\n```\n\nNow we can instantiate the contract class we obtained (you might need to update the command in Makefile):\n\n```sh\nmake deploy-verifier\n```\n\nGreat! Now let's copy necessary artifacts:\n\n```sh\nmake artifacts\n```\n\nPrepare the app and its requirements so you can run it. Go to the `app` folder and:\n1. Update the contract address in the app code (change App.tsx). \n1. Make sure you have `tsc` installed. If not, you can install it with `bun add -d typescript@next`.\n1. Install vite with `npm install -D vite`\n1. Build the app with `bun run build`\n1. Finally we can run the app: `bun run dev`\n\n## Useful links\n\n- Noir quickstart https://noir-lang.org/docs/getting_started/quick_start\n- Garaga docs https://garaga.gitbook.io/garaga/deploy-your-snark-verifier-on-starknet/noir\n- Starknet.js docs https://starknetjs.com/docs/guides/intro\n- Starknet quickstart https://docs.starknet.io/quick-start/overview/\n- Sncast 101 https://foundry-rs.github.io/starknet-foundry/starknet/101.html\n- Cairo book https://book.cairo-lang.org/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeep-starknet-strange%2Fscaffold-garaga","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkeep-starknet-strange%2Fscaffold-garaga","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeep-starknet-strange%2Fscaffold-garaga/lists"}