Contributing
Help improve the tool catalog, shared interface, documentation, and implementation quality.
Quick start
- 1. Fork the repository on GitHub, then clone your fork:
git clone https://github.com/<your-user>/devtools-hub.git cd devtools-hub npm ci
Start the app locally, then run the project checks before opening a pull request:
npm run dev npm run check
One folder per tool
Every tool uses the same structure under app/tools/<slug>: definition.ts for metadata and defaults, logic.ts for processing, Tool.tsx for the UI entry, and README.md for usage and limitations. Tool-private helpers live under that folder's lib/; its focused test is tests/tools/<slug>.test.cjs.
The metadata registry is app/tools/registry.ts; app/tools/componentRegistry.ts connects every UI entry. All tools use app/(tools)/[slug]/page.tsx; do not create a page route per tool. Generic interfaces compose UniversalTool, which dispatches to the tool's logic.ts; richer controls stay in the same tool's Tool.tsx.
Privacy and safety
- Process user input locally by default. If a feature needs a network lookup, disclose it in the UI and document what is sent and to whom.
- Never execute pasted code, use
eval, or deserialize untrusted objects. - Render user-controlled content as text; validate file sizes, parser depth, and expensive inputs.
- Mark a catalog entry implemented only after its logic, UI, and meaningful tests are connected.
Pull request checklist
- □ Definition slug, folder name, category, and route agree.
- □ The page uses the shared header, panels, responsive layout, and light/dark theme tokens.
- □ Success, invalid input, boundary cases, and privacy/network behavior are covered.
- □ Lint, typecheck, tests, and production build pass.
- □ The per-tool README and coverage status are accurate.
The tool catalog includes planned entries too; consult the coverage guide before choosing work.