Fitent is a fitness and nutrition planner for calories, macros, hydration, and personal goals.
It can run locally with browser storage. It can also connect to Memact after user consent, so the app can reuse approved fitness memory instead of asking every setup question again.
Fitent needs details like fitness goal, activity level, dietary preference, allergies, hydration target, and macro preference.
Without Memact, the user fills those fields manually.
With Memact, Fitent can ask for approved fitness memory. If Memact already has enough, Fitent fills known fields. If something is missing, Fitent asks only for the missing details. When the user saves new fitness details, Fitent proposes them back to Memact for the user to review, edit, or reject.
Memact is optional. Fitent still works if the user denies consent.
npm install
npm run devOpen the Vite URL shown in the terminal.
npm run check
npm run buildFitent is configured for Vercel with vercel.json.
Use these project settings:
- Framework preset:
Vite - Build command:
npm run build - Output directory:
dist - Node version:
24.x
Environment variables:
MEMACT_BASE_URL=https://api.memact.com
MEMACT_API_KEY=mka_your_server_side_key
MEMACT_APP_ID=fitent
MEMACT_SESSION_SECRET=replace_with_a_long_random_secret
MEMACT_TIMEOUT_MS=8000Keep MEMACT_API_KEY private. Do not expose it in browser code.
- User opens Fitent onboarding.
- User can choose
Connect Memactor continue manually. - Fitent sends the user to Memact consent with fitness categories.
- Memact returns a
connection_idafter approval. - Fitent asks its own serverless API for approved fitness memory.
- Fitent fills known setup fields.
- Fitent asks only for missing fields.
- Fitent proposes newly saved fitness context back to Memact.
scripts/memact.jsstarts consent, reads approved fitness memory, fills known setup fields, and proposes saved fitness context back to Memact.api/memact/session.jscreates a signed connect state.api/memact/fitness-context.jsreads approved fitness memory through the server.api/memact/propose-context.jsproposes saved fitness details back to Memact.api/memact/_auth.jsverifies signed state and applies outbound Memact API timeouts.
Apache-2.0.