sanidhyy/genius-ai
sanidhyy/genius-ai has 85 GitHub stars and 41 forks. GitHot measured 0 stars in 24 hours, 0 in 7 days, and 0 in 15 days. Last checked 2026-11-25 00:03 UTC. Last push 2026-11-19.
Measured star growth
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
About
Genius - A Modern Next.js 16 SaaS AI Platform.
AIREADME.md
OriginalGenius - A Modern Next.js 16 SaaS AI Platform.

:notebook_with_decorative_cover: Table of Contents
:bangbang: Folder Structure
Here is the folder structure of this app.
genius-ai/
|- app/
|-- (auth)/
|-- (dashboard)/
|-- (landing)/
|-- api/
|-- apple-icon.png
|-- favicon.ico
|-- globals.css
|-- icon1.png
|-- icon2.png
|-- layout.tsx
|- components/
|-- ui/
|-- api-keys-form.tsx
|-- bot-avatar.tsx
|-- crisp-chat.tsx
|-- empty.tsx
|-- free-counter.tsx
|-- heading.tsx
|-- icons.tsx
|-- landing-content.tsx
|-- landing-footer.tsx
|-- landing-hero.tsx
|-- landing-navbar.tsx
|-- loader.tsx
|-- mobile-sidebar.tsx
|-- navbar.tsx
|-- pro-modal.tsx
|-- sidebar.tsx
|-- subscription-button.tsx
|-- user-avatar.tsx
|- config/
|-- index.ts
|- constants/
|-- index.ts
|- hooks/
|-- use-api-keys.ts
|-- use-hydrated.ts
|-- use-pro-modal.tsx
|- lib/
|-- ai-errors.ts
|-- api-limit.ts
|-- db.ts
|-- encryption.ts
|-- provider-keys.ts
|-- stripe.ts
|-- subscription.ts
|-- user-api-keys.ts
|-- utils.ts
|- prisma/
|-- schema.prisma
|- providers/
|-- crisp-provider.tsx
|-- modal-provider.tsx
|-- toaster-provider.tsx
|- public/
|- schemas/
|-- index.ts
|- .env.example
|- .env/.env.local
|- .gitignore
|- components.json
|- environment.d.ts
|- eslint.config.mjs
|- netlify.toml
|- next.config.ts
|- package.json
|- pnpm-lock.yaml
|- pnpm-workspace.yaml
|- postcss.config.js
|- prisma.config.ts
|- proxy.ts
|- tsconfig.json
:toolbox: Getting Started
- Make sure Git and NodeJS is installed.
- Clone this repository to your local computer.
- Create
.envfile in root directory. - Contents of
.env:
# .env
# disable next.js telemetry
NEXT_TELEMETRY_DISABLED=1
# clerk auth keys
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=pk_test_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
CLERK_SECRET_KEY=sk_test_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
# clerk redirect uri
NEXT_PUBLIC_CLERK_SIGN_IN_URL=/sign-in
NEXT_PUBLIC_CLERK_SIGN_UP_URL=/sign-up
NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL=/dashboard
NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL=/dashboard
# aiven database url
DATABASE_URL="mysql://<username>:<password>@<host>:<port>/genius-ai?ssl-mode=REQUIRED"
# stripe api/webhook secret key
STRIPE_API_SECRET_KEY=sk_test_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
STRIPE_WEBHOOK_SECRET=whsec_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# app base url
NEXT_PUBLIC_APP_URL=http://localhost:3000
# ai settings cookie name and verification secret (generated by `openssl rand -hex 32`)
AI_SETTINGS_COOKIE_NAME=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
VERIFICATION_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# crisp website id
NEXT_PUBLIC_CRISP_WEBSITE_ID=xxxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx
5. Clerk Authentication Keys
- Visit the Clerk dashboard: https://clerk.dev
- Log in to your Clerk account or sign up if you don't have one.
- Go to the "Projects" section and select your project.
- Navigate to the "API Keys" tab.
- Copy the "Publishable Key" and replace
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEYin the.env.localfile with the copied key. - Copy the "Secret Key" and replace
CLERK_SECRET_KEYin the.env.localfile with the copied key.
6. Aiven Database URL
If you don't have an Aiven account, sign up here. After creating an account, set up a MySQL database. In the Aiven dashboard, find your database connection details and construct the DATABASE_URL in the following format:
DATABASE_URL="mysql://<username>:<password>@<host>:<port>/genius-ai?ssl-mode=REQUIRED"
7. Stripe API and Webhook Keys
For Stripe, sign up or log in to your Stripe Dashboard. Once logged in, go to Developers > API keys to find your API secret key and webhook secret. Set them as STRIPE_API_SECRET_KEY and STRIPE_WEBHOOK_SECRET in your project's environment.
STRIPE_API_SECRET_KEY=sk_test_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
STRIPE_WEBHOOK_SECRET=whsec_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
8. App Base URL
Set the base URL of your application as NEXT_PUBLIC_APP_URL in your project's environment.
NEXT_PUBLIC_APP_URL=http://localhost:3000
9. Crisp Website ID
Sign up on Crisp and create a website. Once created, find your website ID in the Crisp dashboard and set it as NEXT_PUBLIC_CRISP_WEBSITE_ID in your project's environment.
NEXT_PUBLIC_CRISP_WEBSITE_ID=xxxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx
10. AI Settings Cookie Secrets
Generate two separate secrets with openssl rand -hex 32 and set them as AI_SETTINGS_COOKIE_NAME and VERIFICATION_SECRET. These encrypt and name the httpOnly cookie that stores each user's OpenAI and Replicate credentials from Settings.
openssl rand -hex 32
AI_SETTINGS_COOKIE_NAME=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
VERIFICATION_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Open terminal in root directory. Run
npm install --legacy-peer-depsorpnpm install --legacy-peer-deps.Now app is fully configured 👍 and you can start using this app using either one of
npm run devorpnpm dev.
NOTE: Please make sure to keep your API keys and configuration values secure and do not expose them publicly.
:raising_hand: Need Help?
If you run into issues during installation or setup:
- GitHub Discussions — Open a Q&A discussion for setup and troubleshooting help.
- Email — [email protected]
- Discord —
@sanidhyy
:camera: Screenshots:




:gear: Tech Stack
:wrench: Stats
:raised_hands: Contribute
You might encounter some bugs while using this app. You are more than welcome to contribute. Just submit changes via pull request and I will review them before merging. Make sure you follow community guidelines.
:gem: Acknowledgements
Useful resources and dependencies that are used in Genius.
- Thanks to CodeWithAntonio: https://codewithantonio.com/
- @clerk/nextjs: ^7.9.11
- @hookform/resolvers: ^6.0.0
- @prisma/adapter-mariadb: ^7.10.0
- @prisma/client: ^7.10.1
- @radix-ui/react-avatar: ^1.3.1
- @radix-ui/react-dialog: ^1.3.1
- @radix-ui/react-label: ^2.1.17
- @radix-ui/react-progress: ^1.1.8
- @radix-ui/react-select: ^2.4.1
- @radix-ui/react-separator: ^1.2.0
- @radix-ui/react-slot: ^1.2.4
- @tailwindcss/postcss: ^4.3.3
- @types/node: ^26.6.5
- @types/react: ^19
- @types/react-dom: ^19
- axios: ^1.13.5
- class-variance-authority: ^0.7.1
- clsx: ^2.1.1
- crisp-sdk-web: ^1.2.1
- dotenv: ^18.0.8
- eslint: 9.39.5
- eslint-config-next: 16.4.2
- lucide-react: ^1.62.0
- next: 16.4.1
- openai: ^7.8.0
- postcss: ^8
- prisma: ^7.10.0
- react: 19.3.1
- react-dom: 19.3.1
- react-hook-form: ^7.91.0
- react-markdown: ^10.1.0
- replicate: ^1.4.0
- sonner: ^2.0.7
- stripe: ^22.6.2
- tailwind-merge: ^3.7.0
- tailwindcss: ^4.3.3
- typescript: ^6.0.3
- typewriter-effect: ^2.22.0
- zod: ^4.6.6
- zustand: ^5.0.11
:coffee: Buy Me a Coffee
:rocket: Follow Me
:books: Learn More
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
:page_with_curl: Deploy on Vercel
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out Next.js deployment documentation for more details.
:star: Give A Star
You can also give this repository a star to show more people and they can use this repository.
:star2: Star History
Explore related projects
Loading…