Lexiverse
Lexiverse - AI contextual reading engine for English learners. Your next article is your next review.
翻訳待ち
No updates detected yet. GitHub releases will appear here.
Loading the full README. The saved excerpt is shown below.
A mission-based, self-guided web app for teenagers that supports development of identity, purpose, connection, and meaning.
This repo contains the full MVP foundation:Read the full README ↗A mission-based, self-guided web app for teenagers that supports development of identity, purpose, connection, and meaning.
This repo contains the full MVP foundation:
groundwork), set a database password, choose a regionsupabase/schema.sql from this repoThis creates all tables, sets up Row Level Security, creates the user auto-creation trigger, and seeds the 8 stories.
Verify: After running, go to Table Editor and check that stories has 8 rows.
Already have a database from an earlier version? schema.sql is kept current, but an
existing project also needs the files in supabase/migrations/ run in order (002, 003,
004, 005, 006, …). Each one is idempotent, so running them again is safe. Features whose migration
hasn't been run show a "being switched on shortly" note rather than erroring — so if a
section of the Me page says that, a migration is outstanding.
If you skip this, email/password auth will still work.
In Supabase: Settings → API
Copy:
Project URL → NEXT_PUBLIC_SUPABASE_URLanon public key → NEXT_PUBLIC_SUPABASE_ANON_KEYservice_role key → SUPABASE_SERVICE_ROLE_KEY (keep this secret)In Anthropic Console: API Keys → create a new key → ANTHROPIC_API_KEY
cp .env.local.example .env.local
Fill in your values:
NEXT_PUBLIC_SUPABASE_URL=https://your-project.supabase.co
NEXT_PUBLIC_SUPABASE_ANON_KEY=your-anon-key
SUPABASE_SERVICE_ROLE_KEY=your-service-role-key
ANTHROPIC_API_KEY=sk-ant-...
NEXT_PUBLIC_APP_URL=http://localhost:3000
npm install
npm run dev
Open http://localhost:3000.
In Supabase: Authentication → URL Configuration
Add to Redirect URLs:
http://localhost:3000/auth/callback
For production, also add:
https://your-domain.vercel.app/auth/callback
.env.localNEXT_PUBLIC_APP_URL to your Vercel URLsrc/
├── app/
│ ├── page.tsx # Landing page
│ ├── auth/
│ │ ├── page.tsx # Sign in / sign up
│ │ └── callback/route.ts # OAuth callback handler
│ ├── onboarding/
│ │ └── page.tsx # 3-step onboarding
│ ├── dashboard/
│ │ ├── page.tsx # Server component (data fetching)
│ │ └── DashboardClient.tsx # Client component (UI)
│ ├── missions/[id]/
│ │ ├── page.tsx
│ │ ├── MissionDetailClient.tsx
│ │ └── activities/[activityId]/
│ │ ├── page.tsx
│ │ └── ActivityClient.tsx # Handles all activity types
│ ├── journal/
│ ├── stories/
│ ├── support/
│ ├── settings/
│ └── api/
│ └── reflect/route.ts # AI reflection endpoint
├── components/
│ └── layout/
│ └── AppShell.tsx # Nav + page wrapper
├── lib/
│ ├── supabase.ts # Client + server Supabase instances
│ ├── missions.ts # Mission/activity data (content layer)
│ └── utils.ts # Utility functions
├── types/
│ └── database.ts # Full TypeScript types for Supabase schema
└── middleware.ts # Route protection
Typography
This is the beginning of the README. Read the rest at the original. Read the full README ↗