Behavio turns a short quiz about your goals and habits into a structured daily action plan, then keeps you on it with daily tasks, streaks and an AI mentor.
The landing page asks "Why you keep failing" and offers a two-minute self-diagnosis. The quiz collects your goal area, specific goals, current state, bad habits, past attempts, available time per day and a free-text goal narrative, reveals an archetype, and captures an email. Claude then builds a plan from that profile. From there the app is a daily loop: a morning check-in, generated tasks for the day, an evening wrap-up, a streak, and a mentor message. Pro access is sold on a trial-first paywall through Stripe.
[screenshot placeholder] Three captures at 390×844 (phone) and one at 1440×900: the quiz's archetype reveal, the paywall plan picker, the home screen with the Future Score ring and streak, and the daily tasks view with a morning check-in. Use a demo profile, no real email.
- Quiz funnel with twenty screens, progress bar, insight cards, archetype scoring and a resume banner for people who come back later.
- AI plan generation from the quiz profile, with a validator that rejects malformed plans and a weekly refresh.
- Daily tasks: generate, complete, swap a task you cannot do today, and add recurring tasks.
- Mentor: a daily message and a check-in dialogue, both Claude-written from your recent activity.
- Journal with brain dumps that get analysed into actions.
- Explore: events matched to your goal, fetched through Firecrawl or SerpAPI when keys are set.
- Home: Future Score ring, gap chart, journey path, milestones, missions, streak chain and weekly momentum.
- Plan export to PDF.
- Google Calendar sync of your plan.
- Trial-first paywall: anonymous Supabase session on load, so Stripe Checkout works before anyone types an email. Annual and optional monthly plans, trial length configurable, Customer Portal for changes.
- Growth plumbing: Meta, TikTok and GA pixels, server-side Meta Conversions API events from the Stripe webhook, UTM and click-id capture forwarded into checkout metadata.
- Local-only mode: without Supabase keys the app runs on localStorage with no login.
- PWA install banner and web push keys.
| Layer | Choice |
|---|---|
| Framework | Next.js 16 App Router, React 19, TypeScript |
| UI | Tailwind CSS 4, shadcn with Base UI, Framer Motion, Lucide and Heroicons, @react-pdf/renderer |
| State | Zustand stores for the quiz, the plan and funnel resume |
| AI | Claude via @anthropic-ai/sdk in the intake, plan, daily-task, coach, mentor, rewrite and journal routes |
| Data and auth | Supabase (anonymous and email auth, Postgres tables in supabase/schema.sql) |
| Billing | Stripe Checkout with trial, webhooks, Customer Portal |
| Integrations | Google Calendar (googleapis), Firecrawl, SerpAPI, Meta CAPI |
| Ops | pm2 ecosystem.config.js for a VPS, cron routes for daily mentor, trial reminder and weekly plan refresh |
Requirements: Node 20 or newer and an Anthropic API key. Supabase and Stripe are optional for local development.
git clone https://github.com/Hade6556/future-you.git
cd future-you
npm install
cp .env.local.example .env.local # fill in ANTHROPIC_API_KEY at minimum
npm run dev # http://localhost:3000With only the Anthropic key set, the app runs in local-only mode. To enable accounts and payments:
- Supabase: create a project, run
supabase/schema.sqlandsupabase/migrations/003_handle_new_user_anonymous_email.sqlin the SQL editor, enable Anonymous and Email providers, and set the URL, publishable key and service role key in.env.local. - Stripe: create the annual (and optionally monthly) recurring prices, set
STRIPE_PRICE_PRO_ANNUAL,STRIPE_PRICE_PRO_MONTHLY, the secret key and the webhook secret. Forward webhooks locally withstripe listen --forward-to localhost:3000/api/webhooks/stripe. - Optional: Google Calendar OAuth credentials, Firecrawl or SerpAPI keys, pixel ids, VAPID keys. Every optional key is skipped silently when empty.
The full variable list with comments is in .env.local.example.
npm run dev # Next.js dev server
npm run build && npm run start
npm run lint
npm run event-search # scripts/event-search.mjs, tries the event sources from the command line
npm run start:all # pm2: production server plus the companion pipeline service, see ecosystem.config.jsCron routes under src/app/api/cron/ expect Authorization: Bearer $CRON_SECRET and need an external scheduler. [placeholder: document which scheduler calls them in production]
- Open
/and start the quiz, or jump to/quiz. - After the reveal and email capture the app generates a plan on
/generatingand shows/paywall. /onboardingsets the first week;/becomes the home dashboard once a plan exists.- Daily:
/tasksfor the check-in, tasks and wrap-up;/journalfor brain dumps;/planfor the full plan and PDF export;/explorefor events. /accountmanages the subscription through the Stripe Customer Portal.
Design and strategy notes live in docs/: experience foundation, palette, typography, paywall strategy, SEO and the distribution playbook.
- Run
npm run lintandnpm run buildbefore a pull request. The Vercel build is strict about TypeScript. - Prompts for plans, tasks and the mentor live in the matching
src/app/api/*route. Keep the JSON shapes in sync withsrc/lib/pipeline/planValidator.ts. - Quiz changes go in
src/app/quiz/screensand the store; keeparchetypeScoring.tsdeterministic so the reveal is reproducible. - Anything that touches billing must keep the webhook idempotent and use the Supabase service role only on the server.
- Do not commit
.env.local. The example file is the contract.
No license file is in the repository yet, so the default "all rights reserved" applies. [placeholder: add a LICENSE file; the badge above updates by itself]