Skip to content

Technology Stack

Section titled “Stack choices optimize legal data integrity first”

The selected stack emphasizes reliable schema evolution, explicit typing, and compatibility with both human-facing and AI-agent-facing layers.

Core runtime components:

  • Node.js >=20.0.0
  • npm >=10.0.0
  • TypeScript (strict mode)
  • Next.js 16 + React 19
DependencyRole in project
nextWeb runtime and routing shell
react, react-domUI rendering
drizzle-ormType-safe schema modeling
pgPostgreSQL client for scripts/runtime integration
drizzle-kitSchema/migration tooling support
tsxTypeScript script execution (migrations and tooling)
eslint, eslint-config-nextLinting baseline
tailwindcss, @tailwindcss/postcssStyling pipeline

Database layer uses PostgreSQL with pgvector enabled. Search and retrieval foundations include:

  • generated tsvector index for Portuguese full-text search;
  • IVFFlat vector index for embedding similarity workflows.

Key commands from package.json:

  • npm run dev
  • npm run build
  • npm run start
  • npm run lint
  • npm test
  • Railway PostgreSQL (connection through DATABASE_URL)
  • GitHub Actions workflow using DISCORD_PR_REVIEW_WEBHOOK

Dependency updates should be staged by risk:

  1. patch upgrades for low-risk runtime/tooling;
  2. minor upgrades after lint/build/test validation;
  3. major upgrades only with explicit compatibility testing.