Skip to content

This browser extension analyzes the current web page displays styling information gathered from the page. This is helpful for examining UI decisions in real time.

Notifications You must be signed in to change notification settings

austinwdigital/site-info-browser-ext

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Site Info Browser Extension

Note: This is very much a work in progress and created just for fun! Feel free to try it out and contribute.

This extension analyzes the current web page and displays:

  • Font families, type scale, font sizes for headings (h1-h6), line heights, and font weights
  • Color palette, with best guesses for background, primary, CTA, etc.
  • Detected tools and technologies (frameworks, libraries, hosting)

Features

  • Works on Chrome and Safari (Manifest V3)
  • Clean, modern popup UI with tabs and color swatches
  • Copy and export functionality
  • Advanced detection of technologies and color roles
  • Robust error handling and fallbacks
  • Font preview with appropriate font weights and sizes
  • Intelligent type scale detection with standard ratio names
  • Enhanced color deduplication

Usage

  1. Install the extension in your browser (see below).
  2. Visit any website and click the extension icon in your browser toolbar.
  3. Explore the site's typography, color scheme, and detected technologies.
  4. Use the copy buttons to copy specific data or export all data as JSON.

Installation

Chrome

  1. Clone this repo
  2. Run npm install and npm run build
  3. Open Chrome and go to chrome://extensions/
  4. Enable "Developer mode" at the top-right corner
  5. Click "Load unpacked" and select the dist/ directory

Safari

  1. Complete the Chrome installation steps above
  2. Install Xcode from the Mac App Store
  3. Open Xcode and create a new project with "Safari Extension App" template
  4. Copy files from the dist/ directory to the appropriate locations in your Xcode project
  5. Configure the Info.plist file with appropriate permissions
  6. Build and run the extension in Safari

Contributing

Contributions are very welcome! This project is great for first-time contributors and those looking to gain experience with browser extensions.

Here are some ways you can contribute:

  • Report bugs or suggest features by opening issues
  • Improve detection for additional technologies and frameworks
  • Enhance the UI/UX of the popup interface
  • Add support for additional browsers
  • Improve color role detection or font classification
  • Fix existing issues in the codebase

To contribute:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Make your changes
  4. Commit your changes (git commit -m 'Add some amazing feature')
  5. Push to the branch (git push origin feature/amazing-feature)
  6. Open a Pull Request

No contribution is too small, and all feedback is appreciated!

Development

# Install dependencies
npm install

# Generate icons (if modifying the icon)
npm run icons

# Start development server with hot reload
npm run dev

# Build for production
npm run build

# Package extension for distribution
npm run package

Folder Structure

  • src/ — Source code (content scripts, popup, utils)
  • public/ — Static assets (icons, manifest)
  • dist/ — Build output (generated)

Recent Changes

  • Improved type scale calculation to show standard ratios (e.g., 1.2 for Minor Third)
  • Added font weight display for headings and body text
  • Enhanced color deduplication with normalized hex values
  • Improved readability of font families with consistent sizing
  • Fixed spacing and margins throughout for a more intentional look
  • Limited heading preview sizes for better UI consistency
  • Improved technology detection for libraries like Three.js, GSAP on production sites
  • Added Vite detection for sites built with this tooling
  • Fixed previous DOMException issues in technology detection
  • Improved spacing between UI elements for better visual rhythm
  • Better handling of different font sizes in headings

License

MIT

About

This browser extension analyzes the current web page displays styling information gathered from the page. This is helpful for examining UI decisions in real time.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published