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 🙏

© 2025 – Pkg Stats / Ryan Hefner

piano-captcha

v1.0.24

Published

[![npm version](https://img.shields.io/npm/v/piano-captcha.svg)](https://www.npmjs.com/package/piano-captcha) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![npm downloads](https://img.shields

Readme

Piano Captcha (음주 코딩 방지 피아노 캡챠)

npm version License: MIT npm downloads

📝 개요

음주 상태에서의 코딩을 방지하기 위한 피아노 캡챠 라이브러리입니다. 화면에 랜덤으로 계이름이 표시되고, 사용자가 피아노 건반을 올바른 순서대로 눌러야 통과할 수 있습니다.

✨ 주요 기능

  • 🎵 피아노를 누르면 개발자의 감미로운 목소리 재생
  • 🎹 플로팅 형태의 피아노 건반 UI
  • 🔄 랜덤한 음계 시퀀스 생성
  • ⚡️ 실시간 입력 검증
  • 🎯 시도 횟수 제한

🛠️ 기술 스택

  • React + TypeScript
  • 순수 CSS
  • Vite

🔗 링크 모음

  • 저장소: https://github.com/bedcoding/piano-captcha
  • 패키지: https://www.npmjs.com/package/piano-captcha
  • 미리보기: https://bedcoding.github.io/piano-captcha
  • 예시코드: https://github.com/bedcoding/piano-captcha-sample.git

📦 설치 방법

npm install piano-captcha
yarn add piano-captcha

🚀 사용 방법

import { PianoCaptcha } from 'piano-captcha';

function App() {
  return (
    <PianoCaptcha
      onSuccess={() => console.log('성공!')}
      onFail={() => console.log('실패!')}
      onClose={() => console.log('닫기!')}
      noteCount={5}        // 표시될 음계 개수
      maxAttempts={3}      // 최대 시도 횟수
    />
  );
}

🎵 음성 파일

피아노 캡차는 다음과 같은 음성 파일을 사용합니다 ^^

| 파일명 | 음계 | |-----------|------| | voice1.mp3 | 도 | | voice2.mp3 | 레 | | voice3.mp3 | 미 | | voice4.mp3 | 파 | | voice5.mp3 | 솔 | | voice6.mp3 | 라 | | voice7.mp3 | 시 | | voice8.mp3 | 도 | | voice9.mp3 | 레 | | voice10.mp3| 미 |

📚 Props

| Prop | Type | Required | Description | |-----------|----------|----------|--------------------------------------| | onSuccess | Function | Yes | 캡차 성공 시 호출될 콜백 함수 | | onFail | Function | Yes | 캡차 실패 시 호출될 콜백 함수 | | onClose | Function | No | 캡차 닫기 시 호출될 콜백 함수 | | maxAttempts| Number | No | 최대 시도 횟수 (기본값: 3) | | noteCount | Number | No | 표시될 음계 개수 (기본값: 3) |

📄 라이센스

MIT License - see LICENSE for details.