Inspiration
I created Before Sending after realizing how easy it is to accidentally share confidential data—such as full names, national identifiers, medical references, bank details, and home addresses—when writing prompts for AI tools or posting online. Manual proofreading is slow and easy to miss things. I wanted to build a quick, reliable privacy check that runs completely inside the browser so users can scrub sensitive text before sharing it.
What it does
Before Sending analyzes text locally to identify potentially sensitive values across multiple categories (names, emails, phone numbers, national IDs, bank accounts, payment cards, medical references, IP addresses, and postal addresses). It groups matches, lets users swap sensitive data with custom or default placeholders (e.g., [ID_1]), provides manual highlight selection for unlisted items, and outputs protected text ready for copying. It can also be installed as a Progressive Web App (PWA) that works offline.
How I built it
I built the application using core web standards: HTML, CSS, and vanilla JavaScript—without relying on external frontend frameworks or heavy build tools. As I am currently learning HTML, CSS, and JavaScript, I used an AI tool as a learning mentor to guide me on best practices, clean project architecture, code organization, and understanding how web technologies function under the hood. The detection engine relies on local contextual patterns and JavaScript regular expressions to evaluate text entirely in memory.
Challenges I ran into
One of the main challenges was crafting effective heuristic rules that detect sensitive data accurately without overwhelming the user with false positives. Identifying context-dependent data like names, street addresses, and regional ID formats is difficult because conventions vary widely. Additionally, managing application state, active tab selections, independent scrolling panels, and range replacements in vanilla JavaScript without a framework required careful planning.
Accomplishments that I'm proud of
Delivering a fully functional, offline-capable PWA using zero external libraries or build dependencies. Achieving complete data privacy: zero server requests, zero external APIs, and zero text logging. User content never leaves the local browser session. Writing clean, structured, modular vanilla JavaScript while rapidly advancing my web development skills. What I learned Through this project, I gained practical experience in modular JavaScript structure, DOM manipulation, regular expressions, heuristic pattern matching, PWA service workers, and handling multi-language support (English and Spanish). I also learned how to use AI tools effectively to accelerate learning, understand modern web standards, and write maintainable code.
What's next for Before Sending
Adding regional profiles for country-specific national ID formats and phone number standards. Expanding local detection rules to flag API keys, secrets, and authorization tokens. Supporting direct local file uploads (such as .txt, .pdf, or .docx) for offline privacy scanning. Adding session history controls, including full undo/redo support for replacements.
Built With
- css3
- html5
- javascript
- pwa
- service-worker-api
- web-api
- web-app-manifest