Sunbeam is a modern web application built with Next.js, designed as a robust, full-featured Inventory Management (library and account management) platform. It leverages the latest Next.js App Router, server components, and integrates with Supabase for authentication and data storage. The project is structured for scalability, maintainability, and developer productivity.
- User Authentication: Secure login, sign-out, and account confirmation flows using Supabase Auth.
- Library Management: Add, edit, and manage books or documents in a user-friendly interface.
- Dashboard: Visualize statistics and manage your library from a central dashboard.
- Responsive UI: Modern, accessible, and responsive design using custom UI components.
- API Routes: RESTful API endpoints for library and account operations.
- Theming: Light/dark mode and theme selection support.
- Prisma ORM: Type-safe database access and migrations (if enabled).
app/— Main Next.js app directory (routing, pages, API endpoints)components/— Reusable UI and layout componentshooks/— Custom React hookslib/— Utility libraries (Prisma, Supabase helpers, etc.)public/— Static assetsutils/— Additional utilities and integrationsprisma/— Prisma schema and migrations
- Next.js (App Router, Server Components)
- Supabase (Auth, Database)
- Prisma ORM (optional, for advanced DB access)
- TypeScript
- ESLint & Prettier (code quality)
- Install dependencies:
npm install # or yarn install - Set up environment variables:
- Copy
.env.exampleto.env.localand fill in your Supabase/Prisma credentials.
- Copy
- Run the development server:
Open http://localhost:3000 to view the app.
npm run dev # or yarn dev
- All exported functions and modules are documented with JSDoc/TSDoc comments for clarity and maintainability.
- See
lib/,utils/, andcomponents/for detailed code documentation.
Deploy easily on Vercel or any platform supporting Next.js. See Next.js deployment docs.
© 2025 Sunbeam Project. Built with Next.js and Supabase.