Hive Platform is an AI-first PM toolkit that hardens your codebase and lifts test coverage with async "janitor" workflows—delivering actionable recommendations to improve testing, maintainability, performance, and security.
- Frontend: Next.js 15 with App Router, React 19, TypeScript
- Styling: Tailwind CSS, shadcn/ui components with Radix UI
- Backend: Next.js API routes, Prisma ORM, PostgreSQL
- Authentication: NextAuth.js with GitHub OAuth
- State Management: Zustand for client state, TanStack React Query for server state
- Testing: Vitest with Testing Library, Playwright for E2E
- Forms: React Hook Form + Zod validation
- Node.js 18+
- PostgreSQL database
- GitHub OAuth application (Setup Guide)
- Clone and install
git clone <your-repo-url>
cd hive
npm install
- Environment setup
cp env.example .env.local
# Edit .env.local with your GitHub OAuth credentials and database URL
npm run setup # Generate JWT secret
- Database setup
# Start PostgreSQL (or use Docker)
docker-compose up -d postgres
# Run migrations
npx prisma generate
npx prisma migrate dev
- Start development
npm run dev
# Open http://localhost:3000
npm run dev
- Start development server with Turbopacknpm run build
- Build for productionnpm run start
- Start production servernpm run lint
- Run ESLintnpm run setup
- Generate JWT secretnpm run format
- Format code with Prettier
npm run test
- Run all tests with Vitestnpm run test:watch
- Run tests in watch modenpm run test:coverage
- Run tests with coveragenpm run test:unit
- Run unit tests onlynpm run test:integration
- Run integration testsnpm run test:integration:full
- Full integration test cycle with database
npx prisma studio
- Open Prisma Studio (database GUI)npx prisma migrate dev
- Create and apply migrationsnpx prisma generate
- Generate Prisma clientnpx prisma db push
- Push schema changes to database
npm run test:db:start
- Start test databasenpm run test:db:stop
- Stop test databasenpm run test:db:setup
- Setup test databasenpm run test:db:reset
- Reset test database
npm run seed:auto-seed
- Seed workspace with GitHub-linked usernpm run test:decrypt
- View critical database fieldsnpm run mock-server
- Start mock server for testingnpx shadcn@latest add [component]
- Add shadcn/ui components
Required for development:
DATABASE_URL="postgresql://hive_user:hive_password@localhost:5432/hive_db"
NEXTAUTH_URL="http://localhost:3000"
NEXTAUTH_SECRET="your-jwt-secret"
GITHUB_CLIENT_ID="your-github-client-id"
GITHUB_CLIENT_SECRET="your-github-client-secret"