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

@gscd-dev/a11y-engine

v1.0.5

Published

A11yMARKET's Accessibility Library

Readme

@gscd-dev/a11y-engine

A11yMARKET's Accessibility Library는 웹 애플리케이션의 접근성 설정을 통합 관리하고 실시간으로 적용하는 강력한 엔진입니다. 이 프로젝트는 a11y-market-web에서 개발된 핵심 로직을 바탕으로 고도화되었습니다.


✨ 주요 기능

  • 통합 접근성 엔진 (A11yEngine): 대비, 글자 크기, 간격, 정렬 등 다양한 설정을 상태 기반으로 관리합니다.
  • 다양한 환경 지원: Vanilla JS/TS는 물론, React와 Vue를 위한 전용 어댑터를 제공합니다.
  • 자체 스크린 리더: Web Speech API를 사용하여 포커스된 요소의 텍스트(aria-label, alt 등)를 읽어줍니다.
  • 시각적 보조: 링크 강조, 커서 하이라이트, 스마트 대비 모드 등 강력한 시각 보조 CSS를 포함합니다.

🚀 설치 및 설정

설치

npm install @gscd-dev/a11y-engine

스타일 포함

라이브러리에서 제공하는 접근성 스타일을 반드시 불러와야 합니다.

// main.ts(js) 또는 index.ts(js) 등 entry 파일에 추가
import "@gscd-dev/a11y-engine/css";

💻 사용 방법

1. Vanilla JavaScript / TypeScript

프레임워크 없이 사용할 경우, a11yEngine 인스턴스를 직접 구독하고 메서드를 호출합니다.

import { a11yEngine } from "@gscd-dev/a11y-engine";

// 상태 변경 구독
a11yEngine.subscribe((state) => {
  console.log("현재 상태:", state);
});

// 설정 변경 액션
const btn = document.getElementById("contrast-btn");
btn.addEventListener("click", () => {
  a11yEngine.cycleContrast(); // 대비 모드 순환
});

2. React

useA11y 훅을 통해 상태와 액션을 쉽게 가져올 수 있습니다.

import { useA11y } from "@gscd-dev/a11y-engine/react";

const A11yControl = () => {
  const { state, actions } = useA11y("ko-KR");

  return (
    <button onClick={() => actions.cycleTextSize()}>
      글자 크기 변경 (현재: {state.textSizeLevel})
    </button>
  );
};

3. Vue

Vue 전용 컴포저블을 지원하며, 반응형 상태를 반환합니다.

<script setup>
import { useA11y } from "@gscd-dev/a11y-engine/vue";

const { state, actions } = useA11y("ko-KR");
</script>

<template>
  <button @click="actions.toggleScreenReader">
    스크린 리더: {{ state.screenReader ? "ON" : "OFF" }}
  </button>
</template>

🛠 주요 API 및 설정 (A11yState)

| 메서드 | 설명 | 관련 상태 값 | | ----------------------- | ---------------------------- | ------------------------- | | cycleContrast() | 고대비/저대비/반전 모드 순환 | contrastLevel (0~3) | | cycleTextSize() | 글자 크기 확대 단계 순환 | textSizeLevel (0~2) | | toggleScreenReader() | 내장 스크린 리더 활성화 토글 | screenReader (boolean) | | toggleSmartContrast() | 지능형 색상 대비 반전 적용 | smartContrast (boolean) | | resetAll() | 모든 설정을 초기 상태로 리셋 | - |


🤝 Acknowledgments

이 프로젝트는 다음 개발자들의 협업과 초기 프로젝트를 바탕으로 탄생했습니다.


📄 라이선스

MIT License

See LICENSE for more information.