RepoPilot

typicode / json-server

Search typicode/json-server

GitHub

Code

How typicode/json-server is laid out, and where to start for common changes.

There is no import map for this report yet.

Where to start reading

  1. Repository root
  2. Repository root
  3. Likely start-up file
  4. Suggested starting pointAI
  5. Suggested starting pointAI
  6. Suggested starting pointAI
  7. Suggested starting pointAI

Find files for a task

AI

Add a new WHERE query operator

  • Define operator name and comparison function in src/where-operators.ts
  • Update parse-where.ts to recognize the new operator syntax in query strings
  • Add test case in src/matches-where.test.ts to verify filtering works end-to-end

Add a new HTTP method or route handler

  • Implement business logic method in src/service.ts (e.g., create(), update(), delete())
  • Mount route handler in src/app.ts using Express router methods (router.post(), router.patch(), etc.)
  • Add integration test in src/app.test.ts to verify HTTP status codes and response format

Add a new database format support (beyond JSON/JSON5)

  • Create loader function in src/bin.ts to parse and deserialize the new format into a JavaScript object
  • Pass the loaded object to normalized-adapter.ts as before; adapter is format-agnostic

Trace runtime behavior

Add or update tests

Change build or automation

RepoPilot lists up to 500 files, so a file missing here may still exist.

  • Files marked “likely” are guessed from their names.
  • Some entry points named in the manifest are build output or are missing from the file list, so their source is not shown.

Code quality and hotspots

Largest source files

  • Branch points12 per file on average
  • Code issues0 errors, 16 warnings
  • Largest file225 lines
  • Hotspot load0 high-risk files

Static checks on the 15 largest source files.

Tests, CI and tooling

  • CIGitHub Actions2 workflows
  • Tests6 test filesJest/Vitest · 0.60 test files per source file (file count, not coverage)
  • Dependency updatesNo config detected

Test folders: src · src/adapters

Hotspots

Files that change often and branch heavily, highest first. Branch points count if, loop, case, catch, ternary, && and || in the file.