Skip to content
/ altext Public

Altext is a chrome extension that parses a webpage's html to add alt attribute to images that don't have it by default using BLIP by Salesforce

Notifications You must be signed in to change notification settings

ota0912/altext

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Alt Text Generator

Altext is a Chrome extension designed to improve web accessibility by automatically adding alt attributes to images that lack them. It utilizes BLIP, a service provided by Salesforce, to generate relevant alt text for images on webpages.

Installation

  • Clone the repository:
    git clone --recursive https://github.com/ota0912/altext.git
    
  • Install Node Modules:
    cd Backend && npm install
    
  • Setting up environment variables:
    • Create a .env file referring to .env.example.
    • Add your Replicate API token.
  • Replace the backend URL in content.js.
  • Load unpacked extension in the browser.

Backend

The backend of Altext is built on Express.js and interacts with the Replicate API for BLIP to generate alt text for images.

Routes

  • /healthcheck (GET)
  • /generateAlt (POST)
    • Request body: {"image":"<image URL>"}

Chrome Extension

The Chrome extension component of Altext is developed using manifest v3. It analyzes the HTML of webpages to identify images without alt attributes and dynamically adds them based on the generated alt text.

About

Altext is a chrome extension that parses a webpage's html to add alt attribute to images that don't have it by default using BLIP by Salesforce

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published