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
- Repository root
- Repository root
- Likely start-up file
- Suggested starting pointAI
- Suggested starting pointAI
- Suggested starting pointAI
- Suggested starting pointAI
Find files for a task
AIAdd 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.