Clerk auth + Paystack billing for African SaaS — the starter kit
# Polaris Cloud
**Decentralized GPU/CPU cloud compute platform for Africa.**
Polaris Cloud is a full-stack Next.js platform that wires Clerk authentication to Paystack payments for decentralized GPU/CPU cloud compute in Africa. Dark mode design with a forest green palette. SQLite for zero-config local development. Deploy to Vercel in minutes.
---
## Features
### Authentication (Clerk)
- Sign-up and sign-in pages with custom dark theme
- Protected routes via middleware (`/dashboard`, `/billing`, `/settings`)
- User profile management (Clerk ` `)
- Webhook-driven user sync (Clerk -> local DB -> Paystack customer)
### Billing (Paystack)
- Subscription plans with checkout flow (Free / Pro / Enterprise)
- One-time payments and recurring subscriptions
- Nigerian Naira (NGN) + other African currencies (GHS, ZAR, KES)
- Typed Paystack API wrapper -- no raw `fetch` calls in your app code
- Webhook-driven subscription lifecycle (charge success, cancellation, payment failure)
### Dashboard
- Sidebar navigation with active-state highlighting
- Overview page with quick-start cards
- Billing management with plan selection and subscription status
- Team management (invite members, assign roles, remove members)
- API keys management (create, copy, revoke, show-once pattern)
- User settings via embedded Clerk ` `
### Landing Page
- Hero section, features grid, pricing cards
- Responsive navigation with signed-in / signed-out states
- Footer with links
### Developer Experience
- TypeScript across the entire stack
- Tailwind CSS v4 with `@theme inline` custom palette
- SQLite + Drizzle ORM (zero-config, no external database needed)
- Lucide icons
- `clsx` + `tailwind-merge` for clean class composition
---
## Tech Stack
| Layer | Technology | Purpose |
|-------|-----------|---------|
| Framework | Next.js 16 (App Router) | Full-stack React framework |
| Language | TypeScript 5 | Type safety |
| Auth | Clerk (`@clerk/nextjs`) | Authentication, user management, prote …