尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证Outsider is a curated platform for underground sports, hip-hop, fitness and alternative culture — helping people discover what's happening in their city and connect with the communities behind it.
翻译准备中
取自仓库 README
正在加载完整 README。 以下为已保存的摘录。
City-first platform for discovering underground culture, extreme sports, hip-hop, and fitness experiences.
From skateboarding, BMX, parkour and climbing to hip-hop sessions, battles, cyphers, dance, strength training and other alternative fitness communities — Outsiderr brings together the people, events and experiences that exist outside the mainstream.查看完整 README ↗City-first platform for discovering underground culture, extreme sports, hip-hop, and fitness experiences.
From skateboarding, BMX, parkour and climbing to hip-hop sessions, battles, cyphers, dance, strength training and other alternative fitness communities — Outsiderr brings together the people, events and experiences that exist outside the mainstream.
Unlike traditional event platforms, Outsiderr is curated. Events are not freely published by external organizers. The Outsiderr team controls what gets listed, ensuring that every event fits the platform's culture, community and quality standards.
glass, text-muted, violet-neon, neon-gradient, shadow-glow-violetnpm install
cp .env.example .env.local # fill in Supabase + Razorpay credentials
npm run dev
The app requires Supabase credentials to function (demo mode has been removed).
supabase/schema.sql in the SQL editor (creates all tables, RLS policies, and RPCs).supabase/migrations/fix_all.sql to apply incremental schema fixes.event-media..env.example) and restart.| Variable | Required | Description |
|---|---|---|
NEXT_PUBLIC_SUPABASE_URL | Yes | Supabase project URL |
NEXT_PUBLIC_SUPABASE_ANON_KEY | Yes | Supabase anon key |
SUPABASE_SERVICE_ROLE_KEY | Yes | Service role key (server only — never expose to browser) |
CRON_SECRET | Yes | Secret for the reservation expiry cron endpoint |
RAZORPAY_KEY_ID | No* | Razorpay API key (for Hero Boosts) |
RAZORPAY_KEY_SECRET | No* | Razorpay API secret |
RAZORPAY_WEBHOOK_SECRET | No* | Razorpay webhook HMAC secret |
NEXT_PUBLIC_RAZORPAY_KEY_ID | No* | Razorpay public key (for Checkout.js) |
* Razorpay variables are optional for the current release (manual UPI ticket flow). Required only for Razorpay-managed flows like Hero Boosts.
| Route | Purpose |
|---|---|
/ | Discovery: category pills, featured carousel, today / popular / all feeds |
/events/[id] | Event details, ticket tiers (max 5 per order), T&C |
/organizers/[id] | Organizer public profile and their events |
/clubs | Browse culture clubs (skate crews, hip-hop collectives, etc.) |
/clubs/[id] | Club profile and member list |
/about | About page |
/contact | Contact page |
/legal/[slug] | Legal pages (Terms, Privacy, Refund Policy) |
/list-your-event | Landing page for prospective organizers |
| Route | Purpose |
|---|---|
/login | Phone OTP + Google OAuth sign-in |
| Route | Purpose |
|---|---|
/checkout | Ticket checkout — free RSVP or manual UPI payment with organizer verification |
/tickets | My tickets — orders, QR passes, check-in status, refund requests |
/tickets/[id]/print | Printable ticket with QR code |
/profile | User profile — name, phone, gender, city, interests, avatar |
/scan | QR scanner for door staff (restricted access) |
| Route | Purpose |
|---|---|
/organizer | Dashboard — event list, analytics overview, aggregated stats |
/organizer/events/[id] | Event management — analytics, verification queue, attendees, edit, staff, Hero Boost, cancel/postpone |
/organizer/events/[id]/orders | All orders for an event |
/organizer/events/[id]/checkins | Check-in history for an event |
/organizer/events/[id]/report | Printable revenue report (gross, commission, convenience fee, payout, orders, tickets) |
/organizer/events/[id]/scan | Event-specific QR scanner |
/organizer/scan | Global QR scanner for organizers |
/organizer/boost | Boost request page (featured placement) |
| Route | Purpose |
|---|---|
/admin | Overview — events, orders, GMV, revenue, payouts, users, DAU/MAU |
/admin/events | All events — status, fee overrides, featured toggle, delete |
/admin/orders | All transactions — filterable by status |
/admin/revenue | Revenue report — charts, trends, PDF export |
/admin/analytics | User analytics — DAU, MAU, returning users |
/admin/payments | Payment reconciliation — webhook health, stale reservations |
/admin/payouts | Organizer payout records — pending, completed, bank references |
/admin/users | User management — admin toggle, roles |
/admin/boosts | Boost request approvals |
/admin/hero-boosts | Hero Boost (Front Row) approvals |
/admin/clubs | Club approval queue |
/admin/door-staff | Door staff pricing and availability |
/admin/settings | Platform settings — cancellation/postponement charges, pricing |
/admin/legal | Legal page management |
| Route | Method | Purpose |
|---|---|---|
/api/razorpay/webhook | POST | Razorpay webhook receiver (payment capture, failure, refund events) |
/api/cron/expire-reservations | GET | Cron job to expire stale reserved orders (every 1 min) |
/api/health | GET | Health check (no auth required) |
/api/openapi.json | GET | OpenAPI 3.0 spec (machine-readable) |
/api-docs | GET | Interactive Swagger UI for testing API endpoints |
Swagger UI: Visit http://localhost:3000/api-docs in your browser to view and test all HTTP API endpoints interactively.
See docs/reference/api-spec.md for full API documentation including all Server Actions, Supabase RPCs, realtime channels, and the financial model.
CONFIRMED with tickets minted instantlyPENDING_VERIFICATIONCONFIRMEDNote: For faster verification, users are prompted to send their GPay/PhonePe screenshot to the organizer's phone number (shown on the checkout page).
All money is stored in paise (integer) to avoid floating-point errors.
| Field | Formula | Description |
|---|---|---|
| Subtotal | unit_price × quantity | Ticket face value × quantity |
| Commission | subtotal × commission_bps / 10000 | Platform commission (default 10%) |
| Convenience fee | subtotal × convenience_fee_bps / 10000 | Buyer fee (default 2%) |
| Platform revenue | commission + convenience_fee | Total platform earnings |
| Organizer payout | subtotal - commission | What the organizer receives |
| Buyer pays | subtotal + convenience_fee | Total amount paid by buyer |
Revenue analytics count only CONFIRMED orders. Pending, rejected, cancelled, expired, failed, and refunded orders are excluded from all money calculations.
Admins can override commission and convenience fee percentages per event via the admin events page. All changes are audit-logged.
npx next build # must pass with zero type errors
# Database-level tests (no dev server required)
node scripts/money-accuracy-test.mjs # 104 checks — financial calculations
node scripts/revenue-sync-test.mjs # 18 checks — revenue/payout sync
node scripts/e2e-money-inventory-test.mjs # 45 checks — money + inventory invariants
node scripts/razorpay-flow-test.mjs # 39 checks — Razorpay flow invariants
node scripts/admin-fee-test.mjs # 10 checks — admin fee override + audit
# Browser-based tests (requires dev server running)
node scripts/free-event-test.mjs # 13 checks — free event critical flow
node scripts/lifecycle-test.mjs # 13 checks — draft → publish lifecycle
node scripts/phased-event-test.mjs # 19 checks — phased event flow
node scripts/tba-category-test.mjs # 10 checks — TBA venue + category
| File | Description |
|---|---|
| PRODUCT_VISION.md | Product constitution — read before making product decisions |
| docs/prd.md | Product overview, personas, MVP feature map, financial model, campaigns design |
| docs/architecture.md | System layout, module boundaries, request flows, DB, future split path |
| docs/rules.md | Working rules for AI agents & contributors (supersedes old AGENTS.md) |
| docs/design.md | Design tokens, typography, component patterns |
| docs/task.md | Task tracker — phases, status, blockers (replaces BACKLOG.md) |
| docs/memory.md | Log of past decisions, bugs, and fixes |
| docs/reference/ | Long-form docs: test scenarios, QA report, API spec, historical plans |
| AGENTS.md | Thin pointer → docs/rules.md (kept for tool auto-discovery) |
| supabase/schema.sql | Full database schema with RLS policies and RPCs |
The codebase is organized into domain modules so each product area can later become its own app (apps/<name>) with a mechanical move — see docs/architecture.md for the full boundary rules and split path.
src/
├── app/ # Thin routes only (guard → fetch → render a module component)
├── middleware.ts # Auth/session middleware
└── modules/
├── shared/ # UI primitives, core data (events/orders/tickets/organizers),
│ # auth, db types, lib (constants, validation, pricing, logger…)
├── web/ # Public consumer app: discovery, event page, checkout, tickets,
│ # clubs, reviews, user profile, organizer public profiles
├── organizer/ # Organizer dashboard, event CRUD, KYC submit, collab, staff, PINs
├── admin/ # Moderation, KYC review, settings, legal, users, revenue
├── scanner/ # Door scanner, PIN login, offline sync, box office, walk-in
├── analytics/ # Organizer + admin analytics components & queries
└── campaigns/ # Ad-click / attribution (stub — see docs/prd.md §8)
supabase/
├── schema.sql # Canonical schema — tables, RLS, RPCs
└── migrations/fix_all.sql # Incremental schema fixes (idempotent)
docs/ # Knowledge base — prd, architecture, rules, design, task, memory
Each module exposes index.ts (client-safe), server.ts (server-only data), and actions/* — import only through these. Deep imports into another module's internals are banned by ESLint.
Proprietary. © Outsiderr.
| supabase/migrations/fix_all.sql |
| Incremental schema fixes — re-run after pulling |