slash9494/react-modern-audio-player
์๊ฐ
๐ Simple, accessible and flexible audio player
๋์์ธ ๋ฐ ๋ฏธ๋์ด์ธก์ ๋ ์คํ ์ฆ๊ฐ
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- +1
- in 1 month
- +1
์๋ก ๊ฒน์น๋ ๊ธฐ๊ฐ์ ์์ฆ๊ฐ๋์ด๋ฉฐ ์ผ๋ณ ํฉ๊ณ๊ฐ ์๋๋๋ค. ์ธก์ ๊ฐ์ด ์์ผ๋ฉด ๋น์ ๋ก๋๋ค. ์คํ๋ ๊ด์ฌ๋๋ฅผ ๋ํ๋ด๋ฉฐ ํ์ง์ ๋ณด์ฅํ์ง ์์ต๋๋ค.
README.md
Originalreact-modern-audio-player
Modern, customizable React audio player with waveform visualization, drag-and-drop playlist, WAI-ARIA accessibility, TypeScript-first API, and Next.js App Router (Server Components) support.
Full documentation โ package/README.md
Install
npm install react-modern-audio-player
import AudioPlayer from "react-modern-audio-player";
const playList = [
{ id: 1, src: "audio.mp3", name: "Track 1", writer: "Artist", img: "cover.jpg" },
];
export default function Page() {
return <AudioPlayer playList={playList} />;
}
Requires React 18 or newer.
Repository layout
This is a yarn workspaces monorepo. The published npm package is package/ โ everything else is development tooling.
| Path | Contents |
|---|---|
package/ |
The published library. Source in package/src/, docs in package/README.md |
storybook/ |
Storybook workspace for visual development |
test/e2e/ |
Playwright end-to-end specs |
test/integration/ |
Integration tests |
agents/, conventions/ |
Instructions and naming rules for coding agents โ see AGENTS.md |
Development
Requires Node.js 20+ and yarn 4 (enable with corepack enable).
| Task | Command | Run from |
|---|---|---|
| Install | yarn install |
root |
| Build the library | yarn build |
root |
| Dev server | yarn dev |
package/ |
| Unit tests | yarn test:unit |
package/ |
| Integration tests | yarn test:integration |
package/ |
| All Vitest tests | yarn test |
package/ |
| Coverage | yarn test:coverage |
package/ |
| Type check | yarn typeCheck |
package/ |
| Lint and fix | yarn lint |
root |
| End-to-end tests | yarn test:e2e |
root |
Contributing
Branch from develop, and follow the commit and pull request rules in AGENTS.md.
License
MIT ยฉ MAXX
๊ด๋ จ ํ๋ก์ ํธ ์ดํด๋ณด๊ธฐ
๋ถ๋ฌ์ค๋ ์คโฆ