Skip to content

Add local web UI (salsi serve) - #1

Open
siavashh wants to merge 1 commit into
pooooooriya:mainfrom
siavashh:feature/local-web-ui
Open

Add local web UI (salsi serve)#1
siavashh wants to merge 1 commit into
pooooooriya:mainfrom
siavashh:feature/local-web-ui

Conversation

@siavashh

Copy link
Copy Markdown

Summary

  • Adds a zero-dependency local web UI (python3 -m salsi servehttp://127.0.0.1:8765)
  • RTL editor: paste text, set level/domain/topic, scan, accept/reject each finding, preview, apply
  • Stdlib ThreadingHTTPServer only — no new pip deps; ships salsi/ui/index.html with the package

Test plan

  • python3 -m salsi serve --no-browser starts and / returns the UI
  • POST /api/scan with Persian text + --domain tech returns findings with suggestions
  • Accept curated hits → Apply rewrites the text; code fences / URLs stay untouched
  • python3 -m unittest discover tests still passes
  • python3 -m salsi --help lists serve

Made with Cursor

Gives a RTL paste/scan/accept-reject/apply flow for reviewing loanword
replacements without installing anything beyond Python 3.10+.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant