Repository navigation
Releases
Releases · Alithiel31/ParseAndCutV2
v1.2.0
Added
- French/English UI language support: a
langfield (fr/en, defaultfr) on/processand
/api/transcribedrives the LLM structuring prompt's output language and the localized HTTP
error messages (app/i18n.py); Whisper transcription now always auto-detects the spoken
language (language=None), decoupled from the requested output language. The frontend gets a
language switcher (header, persisted inlocalStorage, defaults to the browser's language on
first visit) translating the whole UI, including the CGU/privacy policy/legal notice pages - Local notifications: an opt-in "notify me when done" checkbox on the home page triggers a
device notification viaServiceWorkerRegistration.showNotification()once a transcription
finishes — useful if the tab is backgrounded or the screen is locked while waiting. No server
push/VAPID/subscription storage involved, purely client-side - Rate limiting on
/processand/api/transcribe(slowapi, default5/minuteper IP,
configurable viaRATE_LIMIT_PROCESS) to protect Groq API credits and the Raspberry Pi from
anonymous abuse - Explicit server-side upload size limit (
MAX_UPLOAD_SIZE_MB, default 100), enforced by
streaming the upload to disk in chunks and aborting past the limit — previously only nginx's
client_max_body_size(500 MB) bounded upload size. The 100 MB default matches Cloudflare's own
request size ceiling on Free/Pro plans for traffic proxied through it (Tunnel included): a
larger file is silently dropped by Cloudflare before ever reaching the Pi, so a more permissive
backend/nginx limit only delays the failure instead of preventing it — see
docs/Troubleshooting.md .github/dependabot.yml: weekly dependency update PRs for pip, npm (root andfrontend/)
and GitHub Actionsdocs/SECURITY.md/docs/SECURITY.fr.md: vulnerability disclosure policy- Docker image now runs as a non-root
appuserinstead of root
Changed
CORS_ORIGINSnow defaults tohttps://parseandcut.alithiel31.devinstead of*— the
wildcard let any third-party site's JavaScript call the public API directly through visitors'
browsers; local dev still overrides it to the Vite originLANGUAGEenv var now means the default output language used when a request omitslang
(e.g. an old cached PWA client), not the language forced onto Whisper's transcription/health'slanguagefield renamed todefault_languageto matchLANGUAGE's new meaning
v1.1.0
Added
- A
modeoption (summaryortranscript) on/processand/api/transcribe, exposed in the UI as a choice between the AI-structured study sheet (unchanged default) and the raw Whisper transcript. Selectingtranscriptskips the LLM structuring call entirely - Per-segment timestamps (
[mm:ss], or[h:mm:ss]past one hour) on the raw transcript (mode=transcript), using Groq Whisper'sverbose_jsonresponse format - Legal pages served by the PWA at
/cgu,/politique-de-confidentialiteand/mentions-legales, plus a footer linking to them. The privacy policy documents the only third party the audio reaches (Groq, in the United States), the fact that uploads are deleted at the end of each request, and the absence of accounts, cookies and analytics — it also provides the public URL the Play Store listing requires react-router-domand apages/directory:App.tsxbecomes the shared layout (header, footer, service-worker update banner, scroll reset) and the transcription view moves topages/Home.tsxLICENSEfile (MIT, already declared inpackage.jsonbut not versioned until now)
Fixed
- Long URLs no longer widen the page on narrow screens (
overflow-wrapon links and inline code inside.markdown-body) /processand/api/transcribereturning 500 on any platform without a/tmpdirectory (Windows) — temp file paths were hardcoded instead of usingtempfile.gettempdir()- The AI structuring call (
mode=summary) failing with a 502 since Groq deprecatedllama-3.3-70b-versatile— replaced byopenai/gpt-oss-120b mode=transcriptreturning 500 on real (non-mocked) transcriptions — the Groq SDK returns Whisper'sverbose_jsonsegments as raw dicts, not attribute-accessible objects- Uploads over 1 MB rejected with a 413, and long transcriptions with a 504, due to Nginx's default
client_max_body_sizeandproxy_read_timeout— both raised innginx.conf - Nginx's
proxy_read_timeout/proxy_send_timeoutraised from 300s to 600s: the Groq client timeout (240s per call) combined withtranscrire_chunk's up-to-2 retries on timeout could reach ~480s for a single chunk, leaving too little headroom under the previous 300s budget
Security
- The generated notes are now sanitized with DOMPurify before being injected into the page.
markeddropped itssanitizeoption in v5, so raw HTML in the Markdown reached the DOM untouched — and that Markdown comes from the LLM, hence indirectly from the uploaded audio. A payload such as<img src=x onerror=…>executed in the page; it no longer does, and the legitimate Markdown rendering is unchanged
v0.5.0
Documentation release: no change to the application itself.
Added
- Bilingual README.md (EN) / README.fr.md (FR)
- CONTRIBUTING.md / CONTRIBUTING.fr.md
- CHANGELOG.md
- Troubleshooting.md / Troubleshooting.en.md
- GitHub issue templates (.github/ISSUE_TEMPLATE/)