{"id":50745551,"url":"https://github.com/edycutjong/blinksplit","last_synced_at":"2026-06-10T20:30:38.672Z","repository":{"id":356643906,"uuid":"1233466366","full_name":"edycutjong/blinksplit","owner":"edycutjong","description":"⚡ Snap a receipt. AI splits it. Drop a Solana Blink in the group chat. Everyone pays in one click.","archived":false,"fork":false,"pushed_at":"2026-05-09T02:46:10.000Z","size":1098,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-09T03:41:38.412Z","etag":null,"topics":["ai","bill-splitting","blinks","frontier","gpt4o-vision","hackathon","nextjs","solana","solana-actions","supabase","usdc"],"latest_commit_sha":null,"homepage":"https://blinksplit.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-09T01:54:52.000Z","updated_at":"2026-05-09T02:46:14.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/edycutjong/blinksplit","commit_stats":null,"previous_names":["edycutjong/blinksplit"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/edycutjong/blinksplit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edycutjong%2Fblinksplit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edycutjong%2Fblinksplit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edycutjong%2Fblinksplit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edycutjong%2Fblinksplit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/edycutjong","download_url":"https://codeload.github.com/edycutjong/blinksplit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edycutjong%2Fblinksplit/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":["ai","bill-splitting","blinks","frontier","gpt4o-vision","hackathon","nextjs","solana","solana-actions","supabase","usdc"],"created_at":"2026-06-10T20:30:36.335Z","updated_at":"2026-06-10T20:30:38.665Z","avatar_url":"https://github.com/edycutjong.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ch1\u003eBlinkSplit ⚡\u003c/h1\u003e\n  \u003cp\u003e\u003cem\u003eSnap a receipt. AI splits it. Drop a Solana Blink in the group chat. Everyone pays in one click.\u003c/em\u003e\u003c/p\u003e\n  \u003cimg src=\"docs/readme.png\" alt=\"BlinkSplit\" width=\"100%\"\u003e\n\n  \u003cbr/\u003e\n\n  [![Live Demo](https://img.shields.io/badge/🚀_Live-Demo-06b6d4?style=for-the-badge)](https://blinksplit.edycu.dev)\n  [![Pitch Video](https://img.shields.io/badge/🎬_Pitch-Video-ef4444?style=for-the-badge)](https://youtu.be/PToTJLDjYNM)\n  [![Pitch Deck](https://img.shields.io/badge/📊_Pitch-Deck-f59e0b?style=for-the-badge)](https://blinksplit.edycu.dev/pitch)\n  [![Built for Frontier](https://img.shields.io/badge/Colosseum-Frontier_Hackathon-8b5cf6?style=for-the-badge)](https://superteam.fun/earn/listing/100xdevs-frontier-hackathon-track)\n\n  \u003cbr/\u003e\n\n  ![Next.js](https://img.shields.io/badge/Next.js_16-black?style=flat\u0026logo=next.js)\n  ![Solana](https://img.shields.io/badge/Solana-9945FF?style=flat\u0026logo=solana\u0026logoColor=white)\n  ![Supabase](https://img.shields.io/badge/Supabase-3ECF8E?style=flat\u0026logo=supabase\u0026logoColor=white)\n  ![OpenAI](https://img.shields.io/badge/GPT--4o_Vision-412991?style=flat\u0026logo=openai\u0026logoColor=white)\n  ![TypeScript](https://img.shields.io/badge/TypeScript-3178C6?style=flat\u0026logo=typescript\u0026logoColor=white)\n  [![BlinkSplit CI](https://github.com/edycutjong/blinksplit/actions/workflows/ci.yml/badge.svg)](https://github.com/edycutjong/blinksplit/actions/workflows/ci.yml)\n\n\u003c/div\u003e\n\n---\n\n## 📸 See it in Action\n\n\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"docs/readme.png\" alt=\"BlinkSplit App Demo\" width=\"100%\"\u003e\n\u003c/div\u003e\n\n\u003e **Three steps, zero app downloads.** Snap → Split → Blink.\n\n---\n\n## 💡 The Problem \u0026 Solution\n\nSplitting a dinner bill with friends is still painful in 2026. Venmo requires everyone to have the same app. Bank transfers take days. And someone always \"forgets\" to pay.\n\n**BlinkSplit** solves this by combining **AI receipt parsing** with **Solana Blinks** — shareable payment links that work inside any app (X/Twitter, Telegram, Discord). Your friends click the link, sign with their Solana wallet, and you receive USDC instantly. No app downloads. No sign-ups. No IOUs.\n\n**Key Features:**\n- ⚡ **AI-Powered Receipt OCR** — GPT-4o Vision parses line items, tax, and tips in seconds\n- 🔗 **Solana Blinks** — One-click USDC payments via shareable URLs (works in X, Telegram, Discord)\n- 📱 **Zero App Required** — Friends just click the link and sign with any Solana wallet (Phantom, Backpack, Solflare)\n- 💰 **Instant USDC Settlement** — No holding periods, no price volatility, funds arrive instantly\n- 📊 **Real-Time Tracking** — Live payment status dashboard powered by Supabase Realtime\n- 🧪 **Demo Mode** — Fully functional without API keys using built-in demo data\n\n---\n\n## 🏗️ Architecture \u0026 Tech Stack\n\n| Layer | Technology |\n|-------|-----------|\n| **Frontend** | Next.js 16, React 19, Tailwind CSS v4 |\n| **AI** | GPT-4o Vision (receipt OCR) |\n| **Database** | Supabase (PostgreSQL + Realtime) |\n| **Blockchain** | Solana Devnet — Blinks + USDC SPL |\n| **Deploy** | Vercel |\n\n\u003e 📐 **[Full architecture deep-dive →](docs/ARCHITECTURE.md)** — System diagram, database schema, API endpoints, and Solana integration details.\n\n---\n\n## 🏆 Sponsor Tracks Targeted\n\n### Solana Actions / Blinks (Primary Integration)\n\nBlinkSplit is a **pure Solana Actions showcase**. The entire value proposition IS the Blink:\n\n| Integration Point | File | What it Does |\n|---|---|---|\n| `GET` Action endpoint | [`src/app/api/actions/pay/[paymentId]/route.ts`](src/app/api/actions/pay/%5BpaymentId%5D/route.ts) | Returns `ActionGetResponse` with dynamic icon, title, and USDC amount |\n| `POST` Action endpoint | [`src/app/api/actions/pay/[paymentId]/route.ts`](src/app/api/actions/pay/%5BpaymentId%5D/route.ts) | Constructs `VersionedTransaction` with `createTransferCheckedInstruction` for USDC SPL token transfer |\n| Actions manifest | [`public/actions.json`](public/actions.json) | Maps domain URLs to Action endpoints for Blink discovery |\n| Blink generator | [`src/lib/blinks.ts`](src/lib/blinks.ts) | Generates unique Blink URLs for each payer in a split |\n\n**Solana Details:**\n- **Network:** Devnet (mainnet-ready code)\n- **USDC Mint (Devnet):** `4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU`\n- **Transaction Type:** `createTransferCheckedInstruction` (SPL token transfer)\n- **Wallet Support:** Phantom, Backpack, Solflare (any Actions-compatible wallet)\n\n---\n\n## 📁 Project Structure\n\n```\nblinksplit/\n├── src/\n│   ├── app/\n│   │   ├── page.tsx                          # Landing page (glassmorphism hero)\n│   │   ├── split/[id]/page.tsx               # Split assignment + Blink generation\n│   │   ├── split/[id]/blinks/page.tsx        # Blink cards + payment tracker\n│   │   ├── history/page.tsx                  # Split history dashboard\n│   │   ├── api/\n│   │   │   ├── actions/pay/[paymentId]/route.ts  # ⭐ Solana Action endpoints\n│   │   │   ├── splits/route.ts               # Create split session\n│   │   │   ├── splits/[id]/route.ts          # Get/update split\n│   │   │   ├── splits/[id]/generate-blinks/route.ts\n│   │   │   ├── splits/[id]/pay/route.ts      # Mark payment complete\n│   │   │   ├── parse-receipt/route.ts        # GPT-4o Vision OCR\n│   │   │   └── health/route.ts               # Health check\n│   │   └── layout.tsx\n│   └── lib/\n│       ├── blinks.ts                         # Blink URL generation\n│       ├── receipt-parser.ts                 # Receipt parsing logic\n│       ├── store.ts                          # Client-side state management\n│       └── supabase.ts                       # Supabase client\n├── db/\n│   └── schema.sql                            # Supabase schema (JSONB-based)\n├── public/\n│   ├── logo.svg                              # Brand logo\n│   └── actions.json                          # Solana Actions manifest\n├── .env.example                              # ⭐ Environment variable template\n├── package.json\n└── README.md                                 # You are here\n```\n\n---\n\n## 🚀 Run it Locally (For Judges)\n\n### Quick Start\n\n```bash\n# 1. Clone the repo\ngit clone https://github.com/edycutjong/blinksplit.git\ncd blinksplit\n\n# 2. Install dependencies\nnpm install\n\n# 3. Set up environment variables\ncp .env.example .env.local\n# Fill in your API keys (see below) — or skip for demo mode!\n\n# 4. Run the app\nnpm run dev\n```\n\nOpen [http://localhost:3000](http://localhost:3000) and you're in!\n\n### Environment Variables\n\n| Variable | Required? | Where to Get |\n|----------|-----------|--------------|\n| `NEXT_PUBLIC_RPC_URL` | Optional | [Helius](https://helius.dev) — defaults to public devnet RPC |\n| `NEXT_PUBLIC_FEE_ACCOUNT` | Optional | Your Solana wallet address (Phantom/Solflare) |\n| `OPENAI_API_KEY` | Optional | [OpenAI](https://platform.openai.com/api-keys) — falls back to demo data |\n| `NEXT_PUBLIC_SUPABASE_URL` | Optional | [Supabase](https://supabase.com/dashboard) |\n| `NEXT_PUBLIC_SUPABASE_ANON_KEY` | Optional | Supabase Dashboard → Settings → API |\n\n\u003e **💡 Note for Judges:** All API keys are **optional**! The app includes a \"Try Demo Receipt\" button that works with zero configuration. Click it to see the full flow with pre-loaded sample data.\n\n### CI \u0026 Quality\n\n```bash\n# Run the full CI pipeline (lint + typecheck + 100% test coverage)\nnpm run ci\n```\n\n| Check | Command | Status |\n|-------|---------|--------|\n| ESLint | `npm run lint` | ✅ Zero warnings |\n| TypeScript | `npm run typecheck` | ✅ Strict mode |\n| Tests | `npm run test:coverage` | ✅ 109 tests, **100% coverage** |\n\n---\n\n## 🧪 Test Coverage\n\n```\n 16 test files  |  109 tests passed  |  100% coverage across all metrics\n─────────────────────────────────────────────────────────────\n File                                 | Stmts | Branch | Funcs | Lines\n─────────────────────────────────────────────────────────────\n All files                            |  100  |  100   |  100  |  100\n─────────────────────────────────────────────────────────────\n```\n\n---\n\n## 🧰 Key Libraries\n\n| Package | Purpose |\n|---------|---------|\n| `@solana/actions` | Solana Actions/Blinks SDK — metadata + tx construction |\n| `@solana/web3.js` | Solana RPC connection, transaction building |\n| `@solana/spl-token` | USDC (SPL token) transfer instructions |\n| `@supabase/supabase-js` | Database client + Realtime subscriptions |\n| `framer-motion` | Glassmorphism UI animations |\n| `lucide-react` | Icon library |\n\n---\n\n## 👤 Built By\n\n**Edy Cu Tjong** — Solo developer\n\n- [![X](https://img.shields.io/badge/@edycutjong-000000?style=flat-square\u0026logo=x\u0026logoColor=white)](https://x.com/edycutjong)\n- [![GitHub](https://img.shields.io/badge/@edycutjong-181717?style=flat-square\u0026logo=github\u0026logoColor=white)](https://github.com/edycutjong)\n\n---\n\n## 📄 License\n\nThis project is licensed under the [MIT License](LICENSE).\n\n---\n\n\u003cdiv align=\"center\"\u003e\n  \u003csub\u003eBuilt with ☕ and ⚡ for the \u003cstrong\u003eColosseum Frontier Hackathon\u003c/strong\u003e\u003c/sub\u003e\n\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedycutjong%2Fblinksplit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedycutjong%2Fblinksplit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedycutjong%2Fblinksplit/lists"}