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

@gtcx/accessibility

v0.1.0

Published

Inclusive design — tech literacy adaptation, WCAG contrast, a11y React hooks

Readme

@gtcx/accessibility

Inclusive design system for GTCX Protocol — tech literacy adaptation, WCAG compliance, and universal access.

Features

  • Tech Literacy Levels — Beginner, intermediate, advanced UX adaptation
  • WCAG 2.1 AA Compliance — Full accessibility standards
  • Offline Accessibility — Screen readers, voice control without connectivity
  • Multi-Modal Input — Voice, touch, gesture, keyboard
  • Cognitive Accessibility — Clear language, consistent design, error prevention

Installation

pnpm add @gtcx/accessibility

Usage

import { AccessibilityService, TechLiteracyLevel, detectTechLiteracy } from '@gtcx/accessibility';

// Initialize accessibility service
const a11y = new AccessibilityService({
  wcagLevel: 'AA',
  techLiteracy: 'beginner',
  offlineEnabled: true,
});

// Detect user's tech literacy from interaction patterns
const literacy = await detectTechLiteracy(userInteractions);
// Returns: 'beginner' | 'intermediate' | 'advanced'

// Adapt UI complexity based on literacy level
const uiConfig = a11y.getUIConfig(literacy);
/*
  beginner: Large buttons, simple nav, audio guidance, step-by-step
  intermediate: Standard UI, contextual help, keyboard shortcuts
  advanced: Power user features, API access, customization
*/

// Voice guidance for low-literacy users
await a11y.speak('Please tap the green button to continue', {
  language: 'sw', // Swahili
  speed: 'slow',
});

Tech Literacy Adaptation

The system adapts based on user capability:

Beginner Level

  • Visual: Large buttons (min 48px), clear icons, simple navigation
  • Guidance: Step-by-step wizards, progress indicators, audio instructions
  • Input: Touch-friendly, voice input, minimal typing
  • Feedback: Immediate visual + audio confirmation

Intermediate Level

  • Visual: Standard controls, contextual help tooltips
  • Guidance: Guided setup with skip options
  • Input: Keyboard shortcuts available, form auto-complete
  • Feedback: Visual confirmation, optional audio

Advanced Level

  • Visual: Compact UI, power-user features visible
  • Guidance: Help available on demand
  • Input: Full keyboard control, CLI available, API access
  • Feedback: Minimal, non-intrusive

WCAG Compliance

// Check element accessibility
const issues = a11y.audit(element);
/*
  [
    { rule: 'color-contrast', severity: 'error', element: '#btn1' },
    { rule: 'alt-text', severity: 'warning', element: 'img.logo' }
  ]
*/

// Get compliant color palette
const colors = a11y.getAccessibleColors({
  primary: '#1a5f2a',
  background: '#ffffff',
  minContrast: 4.5, // WCAG AA
});

// Generate accessible form
const form = a11y.createAccessibleForm({
  fields: ['name', 'email', 'phone'],
  labelPosition: 'above', // Better for screen readers
  errorAnnouncement: 'polite',
});

Offline Capabilities

All accessibility features work offline:

  • Screen Reader Support — Pre-cached ARIA labels
  • Voice Guidance — Offline TTS with local voices
  • Keyboard Navigation — No network required
  • High Contrast — Local CSS, no CDN

Multi-Modal Input

// Enable voice control
a11y.enableVoiceControl({
  language: 'en-GH', // Ghanaian English
  commands: {
    next: () => nextStep(),
    back: () => prevStep(),
    help: () => showHelp(),
    submit: () => submitForm(),
  },
});

// Enable gesture control
a11y.enableGestures({
  swipeLeft: () => prevStep(),
  swipeRight: () => nextStep(),
  doubleTap: () => select(),
  longPress: () => showOptions(),
});

Architecture

packages/accessibility/
├── src/
│   ├── index.ts              # Main exports
│   ├── service.ts            # AccessibilityService
│   ├── tech-literacy.ts      # Literacy detection & adaptation
│   ├── wcag/                 # WCAG compliance utilities
│   │   ├── audit.ts
│   │   ├── colors.ts
│   │   └── forms.ts
│   ├── input/                # Multi-modal input
│   │   ├── voice.ts
│   │   ├── gesture.ts
│   │   └── keyboard.ts
│   ├── output/               # Accessible output
│   │   ├── screen-reader.ts
│   │   ├── tts.ts
│   │   └── haptic.ts
│   └── types.ts
└── configs/
    └── literacy-levels.yaml  # UI configs per level

Related Packages

  • @gtcx/i18n — Multi-language support with cultural adaptation
  • @gtcx/offline-sync — Offline-first data synchronization
  • @gtcx/ui — Base component library