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

@skeynetwork/accessibility-widget

v0.0.22

Published

Accessibility widet for react apps. See props section for widget configuration. Install with:

Readme

Getting started with react app

Accessibility widet for react apps. See props section for widget configuration. Install with:

npm install --save @skeynetwork/accessibility-widget

Example usage:

import "@skeynetwork/accessibility-widget/css";
import { Widget } from "@skeynetwork/accessibility-widget";

const App = () => {
  return (
    <div className="app">
      <Widget />
    </div>
  );
};

Getting started with pure html/css

Download newest release files from https://github.com/skey-network/accessibility-widget/releases

Copy .js and .css files to site public directory.

<head>
  <!-- ... Head content -->

  <link rel="stylesheet" href="accessibility-widget.css" />
</head>
<body>
  <!-- ... Body content -->

  <div class="accessibility"></div>

  <script src="accessibility-embed.js"></script>
  <script>
    window.addEventListener("DOMContentLoaded", () => {
      window.AccessibilityButton.mount(document.querySelector(".accessibility"), {});
    });
  </script>
</body>

Development

Available scripts

  • dev - Start vite development environment
  • build:lib - Build widget ready for react sites
  • build:embed - Build widget ready for static sites
  • prepare - Run husky command
  • publish:github - Create github release

How to run widget in dev mode

  1. Set correct node version
nvm i
  1. Install dependencies
yarn
  1. Run dev build
yarn run dev

Building for react pages

  1. Set react and react-dom versions to match your project's versions

  2. Run build command

yarn run build:lib

You should see this in dist/lib/

./dist/lib/
├── accessibility.cjs.js
├── accessibility.es.d.ts
├── accessibility.es.js
└── accessibility-widget.css
  1. Copy dist/lib/ directory into your project's src/ and rename it to your liking

  2. Import Widget and use it!

import "src/accessibility/accessibility.css";
import { Widget } from "src/accessibility/accessibility.es";

const App = () => {
  return (
    <div className="app">
      <Widget />
    </div>
  );
};

Building for static pages

  1. Run build command
yarn run build:embed

You should see this in dist/embed/

./dist/embed/
├── accessibility-embed.js
└── accessibility-widget.css
  1. Copy content of dist/embed/ into your page location
  2. Initalize component
<link rel="stylesheet" href="accessibility-widget.css" />

<div class="accessibility"></div>

<script src="accessibility-embed.js"></script>
<script>
  window.addEventListener("DOMContentLoaded", () => {
    window.AccessibilityButton.mount(document.querySelector(".accessibility"), {});
  });
</script>

Props

  1. Button props are following this scheme
{
  colors?: {
    bg?: string;
    fg?: string;
    theme?: string;
    font?: string;
  };
  brand?: "CARUMA" | "GO2NFT" | "SKEY";
  paths?: string[];
  customPosition?: {
    horizontalPos: "left" | "right";
    verticalPos: "top" | "bottom";
    horizontal: string;
    vertical: string;
    horizontalFlip?: "auto" | boolean;
    verticalFlip?: "auto" | boolean;
  }
}

Default params:

{
  colors: {
    // Default colors are based on brand
    bg: "#F1EFED";
    fg: "#F5F5F5";
    theme: "#0033FF";
    font: "#282C3E";
  }
  brand: "CARUMA";
  paths: ["*"];
  customPosition: {
    horizontalPos: "left";
    verticalPos: "bottom";
    horizontal: "1em";
    vertical: "2em";
    horizontalFlip: "auto";
    verticalFlip: "auto";
  }
}

Paths param accept any of theese formats:

/path/
/path
path/
path

They will all work for pages like:

http://example.com/path
http://example.com/foo/path

If you only want this to work for pages like in example 1:

:/path/
:/path