This documentation is written and maintained by Promptless, with edits and refinements by the Promptless team. Check out the commit history to see Promptless drafting, updating, and refining documentation automatically based on product changes.
Want Promptless to keep your docs up-to-date? Sign up at promptless.ai to get started.
- Node.js 20 or higher
- npm 10 or higher
From the repository root, run:
npm install
npm run migrate
npm run devThis starts Astro/Starlight at http://localhost:4321 with hot-reloading.
npm run migrate:dry # route/content migration dry run
npm run migrate # regenerate manifests, redirects, and content
npm run validate:links # internal link validation against route + redirect manifests
npm run check:route-parity
npm run check # typecheck + build + link validation + parity checkThe Broken Link Report form reads these optional public env vars at build/dev time:
PUBLIC_FREE_TOOLS_API_BASE_URL=http://127.0.0.1:5000
PUBLIC_TURNSTILE_SITE_KEY=your_turnstile_site_keyIf PUBLIC_FREE_TOOLS_API_BASE_URL is unset, local dev defaults to http://127.0.0.1:5000 and production defaults to https://api.gopromptless.ai.
Agent Score (/agent-score, /agent-score/<host>[/<path>]) calls the same API base. The score pages render on demand, so they need data from an API even in dev. Without the real backend, run the bundled mock in a second terminal:
npm run dev:agent-score-mock # mock API on http://127.0.0.1:5000 (fixtures in src/lib/agent-score/fixtures/)
npm run dev # then open http://localhost:4321/agent-score/docs.promptless.aiThe mock serves docs.promptless.ai (3 scans with changes) and docs.acme-api.dev (one low-scoring scan), simulates a scan of any other URL over about 10 seconds, and keeps new results in memory until it restarts. Scan a hostname containing unreachable, ratelimit, or private to see the error states, set AGENT_SCORE_MOCK_EMPTY_LEADERBOARD=1 for the empty leaderboard, and AGENT_SCORE_MOCK_SCAN_SECONDS to change the scan length. The contract types live in src/lib/agent-score/types.ts.
- Production and preview deployments are handled by Vercel Git integration.
- Redirects are generated into
vercel.jsonby the migration script.