{"id":50745547,"url":"https://github.com/edycutjong/ghopay","last_synced_at":"2026-06-10T20:30:41.194Z","repository":{"id":356675207,"uuid":"1233596654","full_name":"edycutjong/ghopay","owner":"edycutjong","description":"Private batch payroll for DAOs — powered by Cloak SDK on Solana.","archived":false,"fork":false,"pushed_at":"2026-05-09T08:03:39.000Z","size":3869,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-09T08:31:53.322Z","etag":null,"topics":["cloak-sdk","hackathon","nextjs","payroll","privacy","solana"],"latest_commit_sha":null,"homepage":"https://ghopay.edycu.dev","language":"TypeScript","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/edycutjong.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-05-09T06:09:18.000Z","updated_at":"2026-05-09T08:03:43.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/edycutjong/ghopay","commit_stats":null,"previous_names":["edycutjong/ghopay"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/edycutjong/ghopay","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edycutjong%2Fghopay","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edycutjong%2Fghopay/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edycutjong%2Fghopay/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edycutjong%2Fghopay/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/edycutjong","download_url":"https://codeload.github.com/edycutjong/ghopay/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edycutjong%2Fghopay/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34170162,"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-10T02:00:07.152Z","response_time":89,"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":["cloak-sdk","hackathon","nextjs","payroll","privacy","solana"],"created_at":"2026-06-10T20:30:36.196Z","updated_at":"2026-06-10T20:30:41.189Z","avatar_url":"https://github.com/edycutjong.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n\u003ch1\u003eGhopay 👻\u003c/h1\u003e\n\n\u003cp\u003e\u003cstrong\u003ePrivate batch payroll for DAOs.\u003c/strong\u003e Institutional-grade payroll protocol using Cloak SDK for stealth addresses and batch transfers on Solana. Ensure team privacy without losing treasury auditability.\u003c/p\u003e\n\n\u003cimg src=\"docs/readme-hero.png\" alt=\"Ghopay Hero Image\" width=\"100%\"\u003e\n\n\u003cbr/\u003e\n\n[![Live Demo](https://img.shields.io/badge/🚀_Live-Demo-06b6d4?style=for-the-badge)](https://ghopay.edycu.dev/)\n[![Pitch Deck](https://img.shields.io/badge/📊_Pitch-Deck-f59e0b?style=for-the-badge)](https://ghopay.edycu.dev/pitch)\n[![Pitch Video](https://img.shields.io/badge/🎬_Pitch-Video-ef4444?style=for-the-badge)](https://youtu.be/DWfZf8vvVbo)\n[![Built for Frontier](https://img.shields.io/badge/Colosseum-Frontier_Hackathon-8b5cf6?style=for-the-badge)](https://superteam.fun/earn/listing/cloak-track)\n\n\u003cbr/\u003e\n\n[![Next.js 16](https://img.shields.io/badge/Next.js-16-black?logo=next.js\u0026style=flat)](https://nextjs.org)\n[![Solana](https://img.shields.io/badge/Solana-Devnet-9945FF?logo=solana\u0026style=flat)](https://solana.com)\n[![TypeScript](https://img.shields.io/badge/TypeScript-5.x-3178C6?logo=typescript\u0026style=flat)](https://typescriptlang.org)\n[![License: MIT](https://img.shields.io/badge/License-MIT-cyan?style=flat)](LICENSE)\n[![Ghopay CI](https://github.com/edycutjong/ghopay/actions/workflows/ci.yml/badge.svg)](https://github.com/edycutjong/ghopay/actions/workflows/ci.yml)\n\n\u003c/div\u003e\n\n---\n\n## 🎯 Problem\n\nCrypto payroll is fully public. Large-scale DAO payouts are fundamentally broken for individual contributors:\n\n- **Targeted Phishing** — When a DAO paid 47 contributors on-chain, 12 received targeted phishing emails within 24 hours — each referencing the exact salary amount visible on the explorer.\n- **Identity Exposure** — On-chain analysis links wallets to real identities, compromising contributor safety and negotiating leverage.\n- **Compliance Friction** — DAOs need transparent treasuries, but individuals need financial privacy.\n\nThe crypto payroll market requires confidentiality, yet there are few privacy-preserving, non-custodial batch transfer protocols on Solana.\n\n## 💡 Solution\n\n**Ghopay** provides a private batch payroll system using stealth addresses:\n\n1. 💸 **Treasury executes batch** — Sends payroll to N employees in a single transaction via Cloak SDK.\n2. 👻 **Stealth address generation** — Each employee receives funds in a unique, untraceable stealth address.\n3. 🛡️ **Public treasury, private salaries** — No individual salary is visible on-chain. The treasury debit is public, but the per-employee amounts and destinations are hidden.\n4. 👁️ **Auditable compliance** — HR/Auditors can use a **Viewing Key** to decrypt the full payroll for compliance reviews without exposing data publicly.\n\n---\n\n## 🏗️ Architecture \u0026 Tech Stack\n\n| Layer | Technology |\n|---|---|\n| **Frontend** | Next.js 16 (App Router), React 19 |\n| **Styling** | Tailwind CSS v4 |\n| **Animation** | Framer Motion, Canvas Particles, ScrambleText |\n| **Privacy SDK** | [`@cloak.dev/sdk`](https://docs.cloak.ag/sdk/introduction) v0.1.6 (Solana UTXO shielded pool) |\n| **Blockchain** | Solana Mainnet (Program: `zh1eLd6rSphLejbFfJEneUwzHRfMKxgzrgkfwA6qRkW`) |\n| **Testing** | Vitest + Testing Library |\n\n\u003e 📐 **[Full architecture deep-dive →](docs/ARCHITECTURE.md)** — Detailed system diagrams, data flows, and tech stack breakdowns.\n\n---\n\n## 🚀 Quick Start\n\n```bash\n# Clone\ngit clone https://github.com/edycutjong/ghopay.git\ncd ghopay\n\n# Install\nnpm install\n\n# Configure environment\ncp .env.example .env.local\n# Optional: Set KEYPAIR_PATH for live on-chain mode\n# Without it, the app runs in demo mode (simulated stealth addresses)\n\n# Run\nnpm run dev\n```\n\nOpen [http://localhost:3000](http://localhost:3000) — the dashboard loads with the full animation suite.\n\n### Live Mode Setup (Optional)\n\nBy default, Ghopay runs in **demo mode** — no keypair or SOL needed. To enable real on-chain stealth transfers via the Cloak SDK:\n\n```bash\n# 1. Install Solana CLI (if not already installed)\nsh -c \"$(curl -sSfL https://release.anza.xyz/stable/install)\"\n\n# 2. Generate a keypair\nsolana-keygen new --outfile ~/.config/solana/ghopay-keypair.json\n\n# 3. Check your public address\nsolana address -k ~/.config/solana/ghopay-keypair.json\n\n# 4. Fund the keypair with SOL\n#    Devnet: solana airdrop 2 \u003cADDRESS\u003e --url devnet\n#    Mainnet: transfer SOL from an exchange or wallet\n\n# 5. Set in .env.local (use absolute path)\necho \"KEYPAIR_PATH=/Users/$(whoami)/.config/solana/ghopay-keypair.json\" \u003e\u003e .env.local\n```\n\n\u003e **⚠️ Security:** Never commit your keypair file or share it. The `.gitignore` already excludes `*.json` keypair files.\n\n### Testing\n\n76 unit tests across all components, services, and the health API route (100% coverage).\n\n```bash\nnpm test              # watch mode\nnpm run test:coverage # single run with coverage report\nnpm run ci            # typecheck + lint + coverage (CI gate)\n```\n\n---\n\n## 📱 User Flow\n\n### 1. Landing Page\nPremium landing screen with particle background canvas and ScrambleText animations, highlighting the stealth payroll value proposition.\n\n### 2. HR Dashboard\nExecute stealth batch transfers for employees. Stealth addresses are revealed dynamically as they are assigned.\n\n### 3. Payroll Actions \u0026 Audit\nGenerate scoped Viewing Keys for auditors, ensuring full compliance disclosure without public data leakage.\n\n### 4. System Status\nReal-time monitoring via the `/api/health` endpoint integrated directly into the dashboard header.\n\n---\n\n## 📂 Project Structure\n\n```\nsrc/\n├── app/\n│   ├── api/health/route.ts   # uptime endpoint\n│   ├── about/page.tsx        # about page\n│   ├── layout.tsx            # root layout (StatusBar, Footer, TechStack)\n│   └── page.tsx              # main HR dashboard\n├── components/\n│   ├── EmployeeTable.tsx     # payroll table with stealth address reveal\n│   ├── Footer.tsx\n│   ├── HeroLanding.tsx       # animated landing screen\n│   ├── PayrollActions.tsx    # execute batch + generate viewing key\n│   ├── StatusBar.tsx         # system status header\n│   ├── TechStack.tsx         # tech badges\n│   └── WowEffects.tsx        # ScrambleText + ParticleBackground\n└── lib/\n    └── cloak.ts              # CloakService (@cloak.dev/sdk UTXO wrapper)\n```\n\n---\n\n## 🎨 Design System\n\n| Token | Value | Usage |\n|-------|-------|-------|\n| Background | `#0f172a` | App background (Slate 900) |\n| Surface | `#1e293b` | Cards, panels (Slate 800) |\n| Primary | `#06b6d4` | Cloak accent (Cyan 500) |\n| Success | `#22c55e` | Verified/completed states (Green 500) |\n| Font Brand | System Default | Headlines, protocol name |\n| Font Body | System Default | Body text |\n| Font Mono | System Mono | Data, addresses, terminal |\n\n---\n\n## 🏆 Sponsor Tracks\n\n| Track | Sponsor | Prize |\n|-------|---------|-------|\n| Privacy \u0026 Stealth | Cloak | $10,000 |\n| General Track | 100xDevs | $10,000 |\n\n---\n\n## 🛡️ Privacy Architecture\n\n| Threat | Mitigation |\n|--------|------------|\n| Public Salary Exposure | Cloak UTXO shielded pool — `transact()` → `fullWithdraw()` per payee |\n| Audit Friction | Viewing keys via `getNkFromUtxoPrivateKey()` + `scanTransactions()` for HR/regulators |\n| Linkability | Fresh `generateUtxoKeypair()` per payment — unique stealth addresses each epoch |\n\n### Cloak SDK Integration Depth\n\n| SDK Capability | Usage in Ghopay |\n|---|---|\n| **Private transfers** | Each payroll payout routes through the shielded pool via `transact()` + `fullWithdraw()` |\n| **Batch disbursement** | Sequential shielded transfers for N employees in a single payroll run |\n| **Stealth addresses** | Each employee receives to a fresh `Keypair.generate()` stealth address |\n| **Viewing keys** | `getNkFromUtxoPrivateKey()` derives auditor viewing keys; `scanTransactions()` + `toComplianceReport()` for compliance |\n\n\u003e **Program ID:** `zh1eLd6rSphLejbFfJEneUwzHRfMKxgzrgkfwA6qRkW`\n\u003e **Relay:** `https://api.cloak.ag`\n\u003e **SDK:** `@cloak.dev/sdk@0.1.6`\n\n---\n\n## 📄 License\n\n[MIT](LICENSE)\n\n---\n\n\u003cp align=\"center\"\u003e\n  \u003cstrong\u003eBuilt for the \u003ca href=\"https://www.colosseum.org/\"\u003eColosseum Frontier Hackathon\u003c/a\u003e\u003c/strong\u003e\u003cbr/\u003e\n  \u003csub\u003eby \u003ca href=\"https://x.com/edycutjong\"\u003e@edycutjong\u003c/a\u003e\u003c/sub\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedycutjong%2Fghopay","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedycutjong%2Fghopay","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedycutjong%2Fghopay/lists"}