Baseline Recon

🌟 Inspiration

Modern web development moves fast, but figuring out which features are interoperable across browsers still slows teams down. Baseline data has the answers—but it often lives outside the developer’s flow.

We asked a simple question:

What if Baseline insights could guide developers directly inside their editor, browser, and CI pipeline?

Baseline Recon makes web modernization measurable, educational, and automatic.


🧠 What It Does

Baseline Recon is an intelligent toolchain that analyzes, scores, and modernizes projects using Baseline data. It works across three environments:

  1. VS Code Extension Scans code in real time, flags legacy patterns, suggests Baseline-compliant alternatives, and offers one-click fixes.

  2. Browser Extension Audits any live website and computes a weighted Baseline Recon Score, visualizing how modern and compliant it is.

  3. CI/CD Integration Enforces quality automatically by failing PRs that regress modernization, and posts Baseline reports directly in GitHub.

Together, these put Baseline where it matters most: in the developer’s daily workflow.


🏗️ How We Built It

  • Baseline Data: Pulled directly from the web-features npm package.
  • Scanner Engine: JavaScript worker that recursively analyzes HTML, CSS, and JS (including Shadow DOM + cross-origin stylesheet heuristics).
  • Chrome Extension: Manifest V3 with efficient message passing between popup, background, and content scripts.
  • VS Code Extension: Uses VS Code APIs for diagnostics, hovers, code actions, and Quick Fixes.
  • CI/CD Automation: Node.js + GitHub Actions to gate PRs on Baseline health.
  • Visualization Layer: Progressive scoring with color-coded insights and feature-level transparency.

🧩 Challenges We Ran Into

  • Performance: Large DOMs initially caused timeouts—fixed with async throttling and staged parallel fetches.
  • Score Accuracy: Early versions over-penalized modern sites; weighted scoring and capping solved this.
  • Cross-Origin Constraints: Some resources were inaccessible; we built intelligent fallbacks and detection heuristics.
  • Feature Mapping: Normalizing Baseline IDs to human-readable names required careful data shaping.

🏆 Accomplishments We’re Proud Of

  • First dual-scoring model (Legacy & Usage) for modern web health.
  • Tri-surface integration: Editor, Browser, CI/CD.
  • Contextual education: MDN-linked explanations and auto-fixes next to the code.
  • Turned static compatibility data into real-time, actionable guidance.

📚 What We Learned

  • Baseline data becomes far more valuable with visualization and context.
  • Developers prefer progressive, weighted insights over binary pass/fail gates.
  • Cross-surface tooling demands modular architecture and tight state discipline.
  • Small UX refinements—color scales, tooltips, progress bars—significantly improve engagement.

🚀 What’s Next

  • AI-Powered Modernization Assistant: Auto-refactors deprecated patterns with explanations.
  • Unified Web Dashboard: Compare project trends and visualize org-wide progress.
  • Team Leaderboards: Gamify modernization and celebrate wins.
  • Expanded Coverage: Track new Baseline releases and experimental APIs.
  • Open API: Let third-party tools consume Baseline Recon analytics.

✅ Summary

Baseline Recon turns Baseline data into a developer companion—part linter, part educator, part quality gate. It doesn’t just say what’s wrong; it shows why and helps you fix it. With intelligent scanning, weighted scoring, and real-time guidance, it closes the gap between compatibility awareness and modernization action.

Built With

  • api
  • chromeextension(manifestv3)
  • css
  • fetchapi+webworkers
  • githubactions
  • html
  • javascript(es6+)
  • jsonstorage/indexeddb
  • mdncompatibilitydataapi
  • node.js
  • react
  • shadowdomtraversalengine
  • vscodeextension
Share this project:

Updates