Show & Tell: Cognitive Distortion Detector — watch it dissect an anxious thought in real time #25
alexcoledev
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
What this tool does
cognitive_distortion_detector.jstakes a free-text anxious thought and identifies which of 10 Beck cognitive distortions are present — with the exact trigger words, a plain-language explanation, and a CBT reframe.No API key. No backend. No dependencies. Runs 100% in the browser.
Live demo — real input → real output
Input (a thought I actually had last week):
Output (3 distortions detected):
CBT reframe offered:
Why I built this
Therapy is $150-300/session and 6-week waitlisted in most cities. A distortion detector that runs offline, free, in 2 seconds, doesn't replace therapy — but it gives people a tool between sessions, and gives people who can't afford therapy something.
Try it yourself
Or just open the file directly in a browser — no server needed.
Paste your own thought and see what comes back. What does it detect for you? Reply with your input + the distortions it found — I'm genuinely curious what patterns show up across different people's thoughts.
The other 9 detectors
This is 1 of 10 standalone detectors in the toolkit:
All vanilla JS, all offline, all free. ⭐ if any of them are useful.
All reactions