# OpenSpec Change: form-detection - **Change ID**: form-detection - **Package**: `@suaveplan/form-detection` - **Status**: PROPOSED - **Date**: 2026-04-29 ## Summary Create `@suaveplan/form-detection`, a tree-shakeable DOM heuristics engine that detects login, registration, and password-change forms in web pages with confidence scoring. The package targets browser extension content scripts and is designed to run at ~10KB bundled with zero external dependencies. ## Why Password-manager browser extensions require reliable autofill injection, but no good standalone open-source library exists for form detection. Competitors (1Password, Bitwarden) keep this logic proprietary. Building a first-party heuristic engine lets Vaulted tune scoring for its own field types and avoids shipping a heavy external dependency inside content scripts. ## What changes - ADDED: `detectForms(document)` — returns an array of `FormCandidate` objects with `type`, `confidence`, and `fields` properties. - ADDED: `classifyField(element)` — classifies a single `` or `