Skip to content
subiixuPublic

About

A live anonymous idea jar with Matter.js physics, Supabase Realtime and Next.js

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

The Idea Jar

A live, anonymous participation app built for the Netrax market stall in Sydney. Visitors submit and rate app ideas from their phones while a portrait display fills a custom-rendered glass jar with faceted paper balls. Higher-rated ideas grow, and the current leader becomes the single black ball.

Live app

Features

  • Anonymous submissions with device-local identity
  • Server-side profanity, contact-detail, URL and rate-limit filtering
  • Matter.js physics with a custom Canvas renderer
  • Faceted paper bodies, Bayesian size scoring and a black leader ball
  • Supabase Realtime with polling and reconciliation fallbacks
  • Rating deck with duplicate and self-rating protection
  • Live FLIP-animated leaderboard
  • Key-gated moderation with hide, restore and permanent deletion controls
  • Responsive, outdoor-readable light interface

Stack

  • Next.js 15, React 19 and TypeScript
  • Tailwind CSS v4
  • Matter.js
  • Supabase Postgres and Realtime
  • Vercel

Local setup

Install dependencies:

npm install

Copy .env.example to .env.local and provide:

NEXT_PUBLIC_SUPABASE_URL
NEXT_PUBLIC_SUPABASE_ANON_KEY
SUPABASE_SERVICE_ROLE_KEY
ADMIN_KEY

Initialize or link a Supabase project, then apply the migrations in supabase/migrations:

supabase link --project-ref your-project-ref
supabase db push

Start the app:

npm run dev

Routes

Route Purpose
/ Entry screen and live idea count
/drop Submit an idea
/rate Rate unseen ideas
/leaderboard Live top-ten ranking
/jar Fullscreen physics display
/admin?key=… Moderation controls

Security notes

The Supabase service-role key and admin key are server-only. Public database writes are intentionally routed through validated server handlers so the moderation layer cannot be bypassed with the public anon key.

License

MIT

About

A live anonymous idea jar with Matter.js physics, Supabase Realtime and Next.js

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages