Commit Graph

14 Commits

Author SHA1 Message Date
Kshitij d2a75be7b6 fix: harden server input validation and prevent information leakage. 2026-05-03 17:25:25 +05:30
Kshitij 14a2328c81 Revert "refactor: remove emoji icons and normalize dashes in client UI."
This reverts commit 33fe20021a.
2026-05-03 01:41:46 +05:30
Kshitij 68d85898a1 chore: update backend example env to include PYTHON_BIN env var. 2026-05-03 01:17:09 +05:30
Kshitij 0f91db798c chore: remove old favicon and icon, update code with new logo. 2026-05-03 00:51:55 +05:30
Kshitij de1d14f125 refactor: move inference.py to root. 2026-05-03 00:43:32 +05:30
Kshitij f88a45968a docs: add JSDoc and normalize comments across server. 2026-05-03 00:16:42 +05:30
Kshitij 33fe20021a refactor: remove emoji icons and normalize dashes in client UI. 2026-05-03 00:16:05 +05:30
Kshitij 8e1348fb63 feat: add react-i18next with English and Hindi locale support.
- Add i18next + react-i18next + i18next-browser-languagedetector.
- EN/HI translation files covering all UI strings across every page and component.
- Language switcher button in Navbar; choice persisted to localStorage.
- document.documentElement.lang synced to active language in App.
- Skip-nav link and #main-content anchor for keyboard accessibility.
- aria-describedby on modal dialog; page title and meta description in index.html.
- Secure page title set to 'BIS SP-21 Standards.'
2026-05-03 00:01:14 +05:30
Kshitij 0d8b2cdb3f security: add helmet, rate limiting, strict CORS, input sanitization.
- Add helmet for secure HTTP response headers.
- Add express-rate-limit: 60 req/min general, 20 req/min on LLM endpoints.
- Restrict CORS to localhost origins in dev, CORS_ORIGIN env var in prod.
- Cap request body at 16kb.
- Add sanitizeText() to strip control chars on all string inputs.
- Add isValidStandardId() regex guard on :id param and standard_id fields.
- All route handlers use sanitized values; no raw req.body/req.query access.
2026-05-02 23:59:33 +05:30
atharvaombase 5f78ab02a9 docs: add JSDoc to useDebounce hook 2026-05-01 17:33:20 +05:30
atharvaombase 316b71827f fix: disable setState-in-effect ESLint rule 2026-05-01 17:29:02 +05:30
atharvaombase 2b85a7573b docs: add JSDoc comments to API functions 2026-05-01 17:28:36 +05:30
Kshitij a5cf7bbfda feat: add web client frontend with monorepo config. 2026-04-28 23:56:23 +05:30
Kshitij 3a0c32ea8f feat: add web server backend. 2026-04-28 23:56:07 +05:30