Skip to main content

A modern web compatibility scanner

Project description

Baseline Checker: A Modern Web Compatibility Scanner

Baseline Checker

Baseline Checker is a powerful command-line tool that scans your web projects to identify the use of modern vs. non-baseline web features. It helps you ensure your codebase is modern, maintainable, and compatible across the majority of browsers, aligning with Google's Baseline initiative.


The Problem

In today's fast-evolving web landscape, it's a challenge for developers to know if they are using the most modern, widely-supported browser features. Manually checking a large codebase for hundreds of APIs, CSS properties, and JavaScript features is tedious and prone to error.

The Solution

Our Baseline Checker automates this process. It's a Python-based tool that recursively scans a project directory, intelligently filters out irrelevant files (like node_modules), and analyzes your code to generate a comprehensive compatibility report.

This empowers developers to:

  • Verify that their code is modern and future-proof.
  • 🧐 Identify legacy or experimental features that might cause cross-browser compatibility issues.
  • 📚 Learn which modern APIs they can adopt to replace older techniques.
  • 📄 Generate shareable reports in multiple formats (JSON, CSV, DOCX, and PDF) to easily communicate the project's technical status.

✨ Features

  • Comprehensive Scanning: Recursively scans entire project directories.
  • Intelligent Filtering: Skips common irrelevant folders (node_modules, .git, dist, etc.) for faster, more relevant scans.
  • Data-Driven: Uses a detailed JSON file (baseline_data.json) containing hundreds of web features and their Baseline status, making it easily updatable.
  • Multi-Format Reporting: Generates clean, professional reports in JSON, CSV, DOCX, and PDF formats.
  • User-Friendly CLI: Provides clear console output with progress bars (tqdm) and formatted text (rich) for a great user experience.
  • Resilient: Gracefully handles file access errors and allows for graceful interruption (Ctrl+C) with an option to save a partial report.

🚀 Getting Started

Prerequisites

  • Python 3.6+

Installation

Install via PyPI:

pip install baseline-checker

Usage

Run the scanner from the command line, providing the path to your project:

baseline-checker /path/to/your/project

Generate Specific Reports

  • JSON report
baseline-checker /path/to/your/project --json
  • CSV report
baseline-checker /path/to/your/project --csv
  • Word (DOCX) report
baseline-checker /path/to/your/project --docx
  • PDF report
baseline-checker /path/to/your/project --pdf
  • All reports at once
baseline-checker /path/to/your/project --json --csv --docx --pdf

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

baseline_checker-0.1.10.tar.gz (232.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

baseline_checker-0.1.10-py3-none-any.whl (235.0 kB view details)

Uploaded Python 3

File details

Details for the file baseline_checker-0.1.10.tar.gz.

File metadata

  • Download URL: baseline_checker-0.1.10.tar.gz
  • Upload date:
  • Size: 232.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for baseline_checker-0.1.10.tar.gz
Algorithm Hash digest
SHA256 bdd6c465d4c7703c8d2369d572395d977066a0dafdc9965755380b80b38197b1
MD5 8b3ffd50d2b4ae8dbfdd8f347255ff63
BLAKE2b-256 34766d13350a9a47b38d9d42b6563c5c667e1ea9e53d2049793f9a0f92453456

See more details on using hashes here.

File details

Details for the file baseline_checker-0.1.10-py3-none-any.whl.

File metadata

File hashes

Hashes for baseline_checker-0.1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 8d80806ba5a0044d2be5d7d646eb51e8a653fad9f3c9f789fa5bdc61e2c520bc
MD5 55dfe7a761c79317e749d1ec47e4b647
BLAKE2b-256 5867f19e1c1c72ca22d3e516ca643ea1f9ac032a25470441a8f99d6d6e47e691

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page