Skip to content
GuillaumeBAUD-coderPublic

About

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Divoly

The public memory layer for AI answers. Divoly turns useful AI replies into searchable, ranked, reusable pages — so people stop re-asking the same questions in blank chat boxes.

🌐 Live: www.divoly.com

What it does

  • Search real AI answers (GPT, Claude, Gemini, DeepSeek, Qwen…) instead of re-prompting
  • Compare how different models answer the same question
  • Browse the full library by category or model
  • Save answers to private collections
  • Request answers that don't exist yet — the community fills the gaps

Tech stack

  • Next.js 16 (App Router, Server Components) + TypeScript
  • PostgreSQL via Prisma (Neon)
  • NextAuth (Google OAuth + credentials)
  • PostHog analytics · MailerLite newsletter
  • Deployed on Vercel

Local development

npm install
cp .env.example .env        # then fill in the values
npm run db:migrate          # apply Prisma migrations
npm run db:seed             # optional: seed sample answers
npm run dev                 # http://localhost:3000

Useful scripts

Script Purpose
npm run dev Start the dev server
npm run build Production build
npm run lint ESLint
npm test Unit tests (search ranking, query normalization)
npm run db:migrate Prisma migrate (dev)
npm run db:seed Seed the database

Required environment variables

DATABASE_URL=             # Postgres connection string
NEXTAUTH_SECRET=          # openssl rand -base64 32
NEXTAUTH_URL=             # http://localhost:3000 in dev
GOOGLE_CLIENT_ID=         # optional, for Google sign-in
GOOGLE_CLIENT_SECRET=
NEXT_PUBLIC_POSTHOG_KEY=  # optional analytics
NEXT_PUBLIC_POSTHOG_HOST=
MAILERLITE_API_KEY=       # optional newsletter
MAILERLITE_GROUP_ID=

Project layout

src/
  app/            App Router pages (answers, categories, models, library, trending, api/…)
  components/     Reusable UI (search, cards, breadcrumbs, newsletter…)
  lib/            Data access, search ranking, slugs, SEO routes, OG images
prisma/           Schema, migrations, seed
public/           Static assets (icons, llms.txt, IndexNow key)

SEO & discovery

Dynamic OG images (/api/og), RSS (/feed.xml), sitemap.xml, robots.txt, JSON-LD structured data, a server-rendered internal-link hub (/library), and IndexNow notifications on new content.

About

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages