Status: 🏗️ Work in Progress
This is a Turborepo-based monorepo setup for building AI-enhanced mood analysis applications using modern web technologies.
This monorepo contains two Next.js applications — platform
and public
— and shared packages managed with Turborepo. The project integrates tools like OpenAI, Clerk, Prisma, and Contentful to deliver a rich and interactive user experience.
apps/
├── platform/ # Authenticated, AI-enhanced journaling platform
└── public/ # Public-facing PWA with content from Contentful
packages/
├── global-analytics/ # Analytics utilities
├── global-ui/ # Shared UI components
├── global-utils/ # Common utilities
├── eslint-config/ # Shared ESLint configurations
└── typescript-config/ # Shared TypeScript configurations
- AI-powered mood analysis from journal entries
- Detailed mood statistics displayed in charts
- User authentication and management with Clerk
- Integration with Prisma for database management
- Integration with Contentful Headless CMS
- Progressive Web App (PWA) support
- Monorepo structure with shared UI components
- Error tracking and monitoring with Sentry
- Internationalization (i18n) support
- Next.js (App Router, Turbopack)
- Turborepo — high-performance monorepo management
- TypeScript — strict typing
- Tailwind CSS — modern utility-first CSS
- Clerk — user authentication and management
- Prisma — ORM and DB schema
- OpenAI / LangChain — mood analysis via AI
- Contentful — headless CMS
- Next-PWA — for offline-first capabilities
- Vitest & Cypress — unit and E2E testing
- Sentry — error tracking and monitoring
- i18n — internationalization
yarn dev # Run all dev servers
yarn build # Build all apps/packages
yarn lint # Lint all apps/packages
yarn test # Run all tests
Each app has its own set of scripts inside apps/platform
and apps/public
.
git clone https://github.com/yourusername/nextjs-openai-integration-demo.git
cd nextjs-openai-integration-demo
yarn install
yarn dev
Environment variables are managed via .env
files and/or Vercel dashboard.
Refer to turbo.json
for globalEnv
configuration used during builds:
- Contentful CMS configuration
- Clerk authentication
- OpenAI API
- Database connection
- Cron job secrets
Alex Suprun
Email: [email protected]
This project is licensed under the MIT License. See the LICENSE file for details.