DualMind is built by a small team: Harsh J. Bhanushali and Rishi A. Bangoriya, with the code at github.com/dualmindlabs. These are the conventions we review against.
Code
API (C#)
Arena (JS)
Admin panel (React)
Docs (MDX)
- Work in
src/. Ignore Backup/.
- Controllers stay thin: validate, read the user from
sub, call a service, map errors to the documented error shapes.
- Use typed route constraints (
{id:guid}) and escape user input in PostgREST filters with Uri.EscapeDataString.
- New services go behind an interface and are registered in
Program.cs with the right lifetime.
- Add or update xUnit tests in
tests/DualMind.API.Tests for every behaviour change.
- No framework and no bundler: ES modules loaded by
index.html.
- All API calls go through
js/api services; don’t call fetch from components.
- Render user and model text safely: Markdown through
marked plus DOMPurify, never raw innerHTML.
- Use the tokens in
css/tokens.css; don’t hard-code colours.
- Every screen maps to a real admin route. If the API can’t do it, show “not available yet”.
- All requests go through the single API client;
PUT sends the full record.
- Keep pages accessible (axe clean) and usable at 390 px.
- Sentence-case headings, second person, short sentences.
- Prefer Mintlify components (Steps, Tabs, CodeGroup, Accordion) over raw HTML.
- Never paste secrets, project URLs or account IDs; use variable names.
- Run
npx mint@4.2.989 validate and npx mint@4.2.989 broken-links before you push.
Review checklist
Getting help
Email support@dualmindlab.tech or open an issue in the repository you’re working in. Last modified on October 18, 2026