npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

boafo-accessibility-widget

v1.1.6

Published

Boafo accessibility widget for embedding via <script> or npm install

Readme

Boafo Accessibility Widget

Boafo Accessibility Widget is a lightweight embeddable tool that adds accessibility features to any website. This package provides a simple loader script that injects a floating accessibility button and a full-page widget into your site.

An easy-to-install accessibility widget to enhance your website's user experience for everyone. The Boafo widget provides a suite of tools that empower users to customize their browsing experience.

Features

Easy Integration: Add it to any website with a single script tag or via npm.

Interface Controls: Allow users to adjust zoom levels and font sizes for better readability.

Text-to-Speech (TTS): Reads page content aloud for users with visual impairments or those who prefer auditory learning.

Content Summarizer: Provides a quick summary of the page content.

Modern UI: A clean, non-intrusive interface that integrates smoothly into your site's design.

🚀 Installation & Usage

You can add the Boafo widget to your site in two ways:

Method 1: Simple Script Tag (Recommended for static sites)

This is the fastest way to get started. Perfect for static HTML sites, WordPress, Webflow, Shopify, or any platform where you can add custom HTML.

Copy the following code snippet:

Paste it just before the closing tag of your website's HTML.

Replace YOUR_API_KEY with your actual Boafo API key.

Method 2: Using npm (Recommended for JS frameworks like React, Next.js, Vue, Svelte)

  1. Install the package npm install boafo-accessibility-widget

or

pnpm add boafo-accessibility-widget

  1. Import and initialize the widget

In your main application component (e.g., App.js in React or layout.tsx in Next.js), import the initializeBoafoWidget function and call it within a useEffect hook.

Example: React App (App.js) import React, { useEffect } from "react"; import { initializeBoafoWidget } from "boafo-accessibility-widget";

function App() { useEffect(() => { const BOAFO_API_KEY = "YOUR_API_KEY"; initializeBoafoWidget(BOAFO_API_KEY); }, []);

return (

export default App;

Example: Next.js (App Router — app/layout.tsx)

Since layout.tsx is a Server Component, you need a Client Component for the widget initialization:

app/components/BoafoWidgetInitializer.tsx

"use client";

import { useEffect } from "react"; import { initializeBoafoWidget } from "boafo-accessibility-widget";

export default function BoafoWidgetInitializer() { useEffect(() => { const BOAFO_API_KEY = "YOUR_API_KEY"; initializeBoafoWidget(BOAFO_API_KEY); }, []);

return null; // nothing to render }

app/layout.tsx

import type { Metadata } from "next"; import "./globals.css"; import Navbar from "./components/features/navbar"; import Footer from "./components/features/footer"; import BoafoWidgetInitializer from "./components/BoafoWidgetInitializer";

export const metadata: Metadata = { title: "My Website", description: "Accessibility powered by Boafo", };

export default function RootLayout({ children, }: { children: React.ReactNode; }) { return (

TypeScript Note

If you’re using TypeScript, you may see an error like:

Could not find a declaration file for module 'boafo-accessibility-widget'

Fix it by creating a src/types/global.d.ts file:

declare module "boafo-accessibility-widget" { export function initializeBoafoWidget(apiKey: string): void; }

Then add src/types to your tsconfig.json "include" array.

🔑 API Key

The Boafo Accessibility Widget requires an API key to function. This key authenticates your requests and connects the widget to your account.

You can obtain your API key from your Boafo dashboard. 👉 [Insert link to dashboard or sign-up page here]

📜 License

This project is licensed under the MIT License. See the LICENSE file for details.

Developed by Digital Drivers Technologies from Kumasi, Ghana 🇬🇭.