Skip to content

Repository files navigation

CBT Toolkit 鈥?23 Free Interactive Mental Health Tools

Social proof: Cloned by 135 developers across 373 clones (GitHub Traffic API, 14-day window). Real engagement — people are using these tools.

⭐ If this helped you, please star the repo — it helps others find it. ⭐


Stars Forks

Built with vanilla JavaScript. No framework. No backend. No signup. No dependencies. Just open and use.

Found this helpful? Please give it a star! It helps others discover these free mental health tools.

A collection of 23 free interactive CBT (Cognitive Behavioral Therapy) tools and guides. Each tool runs entirely in the browser 鈥?your data stays in localStorage, never leaves your device, and works offline.

Live demo: https://473185670.github.io/cbt-toolkit/

Cognitive Distortion Checker in action

Toolkit hub: https://473185670.github.io/cbt-toolkit/seo/cbt-toolkit-hub.html

🎯 When to Use This Toolkit

Real developer moments where CBT tools help:

Situation Tool What It Does
Before a stressful deploy Thought Record Catch "this will break production" catastrophizing → reframe with evidence
After a critical bug report Distortion Detector Identify "I'm a fraud" as labeling → reframe as "I made one mistake"
During on-call at 3 AM Catastrophe Reframer "The server is down → we're losing customers → I'll be fired" → balanced thought
Before a performance review Core Belief Detector Drill down "I'm not good enough" → surface belief → challenge it
Dreading a standup Safety Behavior Detector Identify avoidance/overprepare behaviors → response prevention plan
Catastrophizing about a deadline Prediction Calibration Track how often predicted disasters actually happen → build trust in outcomes
Anxiety spiking during code review Thought Record → Mood Tracker Record thought → track mood trend over days → see pattern

These are the same cognitive patterns that kill developer productivity. CBT gives you a structured, evidence-based way to work through them in 5 minutes — no therapy appointment needed.

💬 Telegram Bot — Interactive CBT Thought Records

@trevor_pl_bot on Telegram walks you through a 7-step CBT thought record in chat — no app, no signup, no data stored on any server.

Just message the bot /record and it guides you through:

  1. Situation — what happened?
  2. Automatic thought — what went through your mind?
  3. Emotion + intensity — what did you feel, how strong (0-100)?
  4. Evidence for — what supports the thought?
  5. Evidence against — what contradicts it?
  6. Balanced thought — a fairer alternative
  7. Re-rate emotion — how do you feel now?

The bot detects cognitive distortions (mind-reading, catastrophizing, all-or-nothing, etc.) in real time and suggests reframes. It's free. Try it: @trevor_pl_bot


Why CBT?

Cognitive Behavioral Therapy is the most evidence-based form of psychotherapy, with decades of research supporting its effectiveness for anxiety, depression, OCD, panic attacks, PTSD, and more. These tools bring CBT's core techniques 鈥?thought records, cognitive restructuring, behavioral experiments, exposure hierarchies 鈥?into interactive, self-guided formats you can use anytime.

What's Included

Interactive Tools

Tool What It Does Link
Thought Record 7-step CBT thought record with distortion checker Open
Cognitive Distortion Checker Paste a thought 鈫?see which of 11 thinking traps apply Open
Mood Tracker Log daily mood, view trends, behavioral activation tips Open
Thought Record Template Classic 7-column worksheet, print-optimized Open
Negative Thought Reframer Enter a thought 鈫?get a balanced CBT reframe Open
Context-Dependent Belief Detector Same thought 鈫?different core beliefs by life domain Open

Condition-Specific Guides + Interactive Tools

Condition Techniques + Interactive Tool Link
Anxiety 6 techniques + 5-4-3-2-1 grounding widget Open
Depression 6 techniques + activity scheduler widget Open
OCD 6 techniques + ERP tracker widget Open
Panic Attacks 6 techniques + panic diary widget Open
Social Anxiety 6 techniques + exposure hierarchy builder Open
Health Anxiety 6 techniques + symptom diary widget Open
PTSD & Trauma 6 techniques + stuck point log widget Open
Intrusive Thoughts 7 techniques + intrusive thought tracker Open
Perfectionism 6 techniques + perfectionism tracker Open
Low Self-Esteem 6 techniques + core belief tracker + positive data log Open
Imposter Syndrome 6 techniques + impostor thought record + evidence log Open
Burnout 6 techniques + burnout diary widget Open
Body Image 6 techniques + body image thought record Open
Anger 6 techniques + anger diary widget Open
Sleep / Insomnia 5 CBT-I techniques + sleep diary widget Open
Shame 6 techniques + shame log widget Open
Grief & Loss 6 techniques + grief log widget Open
ADHD / RSD Techniques + ADHD thought detector Open
Relationship Anxiety 5 distortions + relationship thought record Open
Procrastination Techniques + procrastination tracker Open

Guides

Guide Link
How to Do a CBT Thought Record (worked example) Open
CBT Exercises & Worksheets Hub (10 techniques) Open

Features

  • Zero dependencies 鈥?no npm, no CDN, no framework. Pure HTML/CSS/JS.
  • Privacy-first 鈥?all data stored in localStorage. Nothing is sent to any server.
  • Offline-capable 鈥?works without internet after first load.
  • Export your data 鈥?JSON export from every tool.
  • Print-optimized 鈥?worksheets print cleanly on A4/Letter.
  • SEO-optimized 鈥?each page has structured data (FAQPage, Article, BreadcrumbList schema).
  • Responsive 鈥?works on phone, tablet, and desktop.

How to Use

Option 1: Use the live site (easiest)

Visit the toolkit hub and pick a tool.

Option 2: Run locally

git clone https://github.com/473185670/cbt-toolkit.git
cd cbt-toolkit
# Open any HTML file in seo/ directory in your browser
# Or serve locally:
python -m http.server 8000
# Then visit http://localhost:8000/seo/cbt-toolkit-hub.html

Option 3: Deploy your own

All files are static HTML. Drop them on any host 鈥?GitHub Pages, Netlify, Vercel, Cloudflare Pages, or even a USB drive.


Architecture

Each tool is a single self-contained HTML file with inline CSS and JavaScript. The core pattern:

User input 鈫?keyword-pattern matching 鈫?CBT technique 鈫?reframe/guidance 鈫?localStorage save

Why keyword-pattern matching instead of ML/NLP?

  • Precision: deterministic, same input 鈫?same output every time
  • Zero latency: no API call, no model load
  • Zero cost: no API bills
  • Zero privacy risk: thoughts never leave the browser
  • Explainability: the full matched chain IS the intervention
  • Small known output space: CBT has ~11 distortions, ~13 core beliefs 鈥?no need for a language model

📝 Articles

I write about CBT techniques for developer-specific pain points on Dev.to:

CBT × Developer Productivity series:

Hub article:


💬 Discussions

Have a question about using these tools? Want to share what worked for you? Start or join a discussion — no GitHub account friction, just ask.

Active conversations:


Upsell: CBT Thought Record Notion Template

For a structured, always-accessible thought record, check out the CBT Thought Record Notion Template ($1 on Gumroad). It includes:

  • Pre-built 7-column thought record database
  • Cognitive distortions reference table
  • Mood tracker integration
  • Weekly review template

Contributing

This is a personal project but suggestions are welcome. If you find a bug or have a feature request, please open an issue.

License

Free for personal use. If you find these tools helpful, consider starring the repo 猸?or sharing with someone who might benefit.


Disclaimer: These tools are for self-help and education. They are not a substitute for professional mental health care. If you're in crisis, please contact a mental health professional or emergency services.

About

Free interactive CBT & mental health tools — vanilla JS, no signup, no backend. Thought records, distortion detector, mood tracker, panic diary.

Topics

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages