Skip to content
This repository was archived by the owner on Jun 19, 2026. It is now read-only.

Latest commit

Β 

History

History
66 lines (55 loc) Β· 2.99 KB

File metadata and controls

66 lines (55 loc) Β· 2.99 KB

Future AI β€” Codebase overview (Codex)

High-level map of the repo for AI and human readers.

Repo layout

future-ai-app/
β”œβ”€β”€ app/                    # Next.js App Router
β”‚   β”œβ”€β”€ page.tsx            # Home
β”‚   β”œβ”€β”€ chart/              # Chart generation page
β”‚   β”œβ”€β”€ news/               # News (markdown-driven)
β”‚   β”œβ”€β”€ predict/            # Predictions
β”‚   └── ...                 # Auth, API routes, etc.
β”œβ”€β”€ components/
β”‚   β”œβ”€β”€ home/               # HeroSection, etc.
β”‚   β”œβ”€β”€ chart/              # BirthDataForm, ChartWheel, PlanetTable, CitySearch, etc.
β”‚   └── ui/                 # Card, Button, shared UI
β”œβ”€β”€ hooks/                  # useChartCalculation, useGeocoding
β”œβ”€β”€ lib/
β”‚   β”œβ”€β”€ astro/              # Core astrology logic (pure, typed)
β”‚   β”‚   β”œβ”€β”€ calculate.ts    # Chart calculation entry
β”‚   β”‚   β”œβ”€β”€ houses.ts       # Whole sign houses
β”‚   β”‚   β”œβ”€β”€ planets.ts      # Planetary positions
β”‚   β”‚   β”œβ”€β”€ points.ts       # Ascendant, MC, etc.
β”‚   β”‚   β”œβ”€β”€ draw.ts         # Chart wheel drawing
β”‚   β”‚   β”œβ”€β”€ format.ts       # Display formatting
β”‚   β”‚   β”œβ”€β”€ validate.ts     # Date/year validation
β”‚   β”‚   β”œβ”€β”€ types.ts        # Shared types
β”‚   β”‚   └── ...
β”‚   β”œβ”€β”€ geocoding.ts        # Place β†’ lat/lon
β”‚   β”œβ”€β”€ copy.ts             # Copy / content
β”‚   └── utils.ts            # cn(), etc.
β”œβ”€β”€ prisma/                 # Schema, migrations
β”œβ”€β”€ .github/workflows/      # CI (lint, typecheck, test, build)
β”œβ”€β”€ vitest.config.ts        # Vitest
β”œβ”€β”€ eslint.config.mjs      # ESLint (Next.js)
β”œβ”€β”€ CLAUDE.md               # Cursor project rules
β”œβ”€β”€ claude.md               # Project context for Claude
└── codex.md                # This file

Key entry points

  • Chart flow: app/chart/page.tsx β†’ BirthDataForm + useChartCalculation β†’ lib/astro/calculate.ts β†’ ChartWheel / PlanetTable.
  • Geocoding: CitySearch uses useGeocoding β†’ lib/geocoding.ts.
  • Auth: NextAuth in app/ (e.g. API routes, session).

Testing

  • Runner: Vitest (vitest.config.ts); path alias @/ via vite-tsconfig-paths.
  • Where: **/*.{test,spec}.{ts,tsx} (e.g. lib/astro/validate.test.ts).
  • CI: .github/workflows/ci.yml runs lint, typecheck, vitest run, and build.

Quality and automation

  • Lint: ESLint (Next.js config); npm run lint / npm run lint:fix.
  • Typecheck: npm run typecheck (tsc --noEmit).
  • Database: make migrate (prisma migrate deploy), make migrate-dev, make generate; see docs/SETUP.md / docs/DEPLOYMENT.md. Astro coins + Stripe: docs/STRIPE.md.
  • Pre-commit: Husky + lint-staged; ESLint --fix on staged TS/JS files.

Docs

  • CLAUDE.md β€” Cursor/conventions and commands.
  • claude.md β€” Project context for Claude (overview, stack, commands).
  • codex.md β€” This codebase map.