← Back to Projects

HUMANITY BADGE

Chrome extension that verifies authentic human typing through keystroke recording with anti-paste protection

October 25, 2025
Chrome ExtensionJavaScriptAuthenticationSecurity

Humanity Badge

A Chrome browser extension that verifies authentic human typing through keystroke recording with comprehensive anti-paste protection. Humanity Badge enables users to prove they typed content themselves rather than pasted it, addressing the growing challenge of distinguishing human-written versus AI-generated content online.

Key Features

Keystroke Verification

  • Real-Time Recording: Captures typing activity with precise timestamps
  • WPM Calculation: Validates typing speed between 10-200 words per minute
  • Duration Tracking: Ensures minimum 5 seconds of genuine typing
  • Universal Input Detection: Works with textarea, contenteditable, rich text editors, and text inputs
  • Character Count: Tracks total characters typed for verification

Anti-Paste Protection

Blocks all five major paste vectors:

  • Keyboard shortcuts (Ctrl+V, Cmd+V)
  • Right-click context menu paste
  • Drag-and-drop text insertion
  • Browser menu paste commands
  • Edit menu paste operations

Cryptographic Proofs

  • Signed Verification: Generates cryptographically-signed proofs of typing authenticity
  • Hash-Based Encoding: Secure data encoding for tamper-proof verification
  • Shareable Replay Links: Creates verifiable links that can be shared with others
  • Timestamp Validation: Ensures temporal consistency in typing patterns
  • Stack Trace Capture: Records source context for verification

GitHub Integration

  • OAuth Device Flow: Seamless authentication without complex redirects
  • Gist Hosting: Professional URL hosting for verification proofs
  • Smart Onboarding: Guides users through first-time setup
  • Token Management: Secure credential storage using Chrome Storage API

Platform-Specific Sharing

  • Reddit Integration: Markdown-formatted proofs for Reddit posts
  • LinkedIn Support: Professional formatting for LinkedIn content
  • Standalone HTML: Exportable HTML files for universal sharing
  • URL Shortening: Integration with is.gd for compact links

Technical Architecture

Extension Framework

Built with Chrome Extension Manifest V3 for modern security and performance standards. Uses vanilla JavaScript (ES6+) for lightweight, dependency-free operation.

Universal Compatibility

Single fixed-button strategy ensures the extension works across all websites without site-specific modifications. Sophisticated message passing between content scripts and service workers enables seamless communication.

Smart Encoding

Size-based strategy automatically chooses between:

  • Short content: URL-encoded links with Base64 data
  • Long content: Full HTML export files for download

Storage Management

  • Chrome Storage Sync: Cross-device synchronization of settings
  • Local Storage: Recording cache and temporary data
  • Smart Cleanup: Automatic memory management
  • Recording History: View, copy, and delete past recordings

Use Cases

  • Proving human authorship for academic writing
  • Verifying authentic contributions in online discussions
  • Professional credentialing for content creators
  • Anti-AI content verification for competitions
  • Academic integrity validation
  • Journalist source verification
  • Legal document authenticity

Verification Metrics

Each proof includes comprehensive metadata:

  • Total typing duration
  • Words per minute (WPM)
  • Character count
  • Timestamp ranges
  • Source URL
  • Paste attempt count (always 0 for valid proofs)

Project Status

Ready for Chrome Web Store deployment with comprehensive publication documentation including privacy policy, user guides, and Chrome Store listing assets. Includes graceful error handling for extension context invalidation and edge cases.

Privacy & Security

All keystroke data is processed locally within the browser. No typing content is ever transmitted to external servers. Only verification metadata is encoded in shareable proofs. Users maintain complete control over what recordings are created and shared.

Legal & Support

Explore More

View All Projects →