Skip to content

SOM.js is a lightweight JavaScript library that detects and analyzes interactive elements on web pages. Ideal for accessibility audits, automated testing, and user interaction tracking. Open-source and easy to use!

Notifications You must be signed in to change notification settings

Smartesting/som

Repository files navigation

SOM.js – A Lightweight Library for Detecting Interactive Elements on Web Pages

Description

SOM.js (Set of Mark) is an open-source JavaScript library designed to identify and analyze interactive elements on a web page. It provides developers with an easy-to-use API to detect buttons, links, input fields, and other actionable elements, making it ideal for accessibility audits, automated testing, and user interaction tracking.

Features

✅ Detects interactive elements such as buttons, links, inputs, and more

✅ Provides structured data on detected elements

✅ Lightweight and fast, with no external dependencies

✅ Compatible with modern browsers and frameworks

Installation

npm install @smartesting/som

Usage

import '@smartesting/som'

const marks = window.markPage(false)
console.log(marks)

Contribute

Contributions are welcome! Feel free to open issues, suggest features, or submit pull requests.

📌 GitHub Repo: github.com/Smartesting/som 📜 Licensed under MIT

About

SOM.js is a lightweight JavaScript library that detects and analyzes interactive elements on web pages. Ideal for accessibility audits, automated testing, and user interaction tracking. Open-source and easy to use!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •