Dopamine Lock Web
Full-stack discipline platform
Full-stack behavioral system with React/Vite frontend, Express APIs, Prisma domain models, PostgreSQL persistence, authentication, analytics, and extension-facing endpoints.
- Status
- Active / in progress
- Year
- 2026
- Role / Context
- Individual full-stack project

Overview
Dopamine Lock Web is an independent full-stack discipline platform: a React/Vite client backed by a Node.js/Express API, Prisma, PostgreSQL, JWT authentication, bcrypt password hashing, password recovery, modular service/routes, tests, and product systems for missions, blocking, analytics, reviews, goals, achievements, streaks, identity, consumption control, and browser-extension integration.
Problem
Sustained focus requires more than a timer: the system must model missions, sessions, consumption limits, user identity, historical progress, and integrations as durable backend state.
Solution
Model the domain in PostgreSQL/Prisma, expose REST modules through Express routes and services, secure access with JWT/bcrypt, and integrate a React dashboard that aggregates behavioral state across missions, blocks, goals, streaks, analytics, and reviews.
Engineering Highlights
- Prisma schema models missions, sessions, block rules, goals, streaks, achievements, reviews, consumption logs, discipline score events, and extension sync state.
- Backend routes and services are separated by domain modules rather than placed in one controller file.
- JWT authentication, bcrypt, rate limiting, password recovery, and test coverage are present in the backend repository.
- Frontend service/hook organization mirrors backend capabilities for dashboard aggregation and stateful workflows.
Architecture
- 01React/Vite client
- 02REST API
- 03Express routes/controllers
- 04Domain services
- 05Prisma ORM
- 06PostgreSQL
- 07Extension-facing APIs
Technology
Frontend
Backend
Data
Testing
Ownership / Context
Dopamine Lock Web is presented as a individual project, with claims limited to repository-verified implementation details.
Screenshots / Assets


