Architecture of chintan9/plyr-react
chintan9/plyr-react is 37 source files holding 21 symbols across 5 modules, written mainly in JavaScript, TypeScript, Shell. The largest module is example, with 4 files, and 3 files are entry points into the dependency graph.
How plyr-react fits together
plyr-react is a wrapper around the Plyr media player, and Plyr performs the playback. The package entry point is src/index.tsx, and the src module holds two files that make up the library. Developers can use a simple component for quick setup or the usePlyr hook, which gives full control over the player lifecycle and custom wrappers. The package.json file declares react and plyr as peer dependencies, so the host project must install them. The example/plyr-example/src/main.jsx and example/plyr-example/src/App.jsx files form a demo React app that shows the library in use. The tests module holds one test file.
Largest modules
- example: 4 files and 70 lines of code
- .husky: 2 files and 4 lines of code
- root: 2 files and 70 lines of code
- src: 2 files and 88 lines of code
- tests: 1 file and 55 lines of code
Languages
By file count: JavaScript 5 files, TypeScript 4 files, Shell 2 files.
Documentation
Repowise documents plyr-react in 11 pages generated from the source.
More on plyr-react: summary and FAQ, codebase overview, code health.