A monorepo for MediaFox, a framework-agnostic, TypeScript-first Media Player library powered by Mediabunny.
bun add @mediafox/core mediabunny- @mediafox/core - Core Media Player library
- @mediafox/react - React hooks for MediaFox
This is a Bun workspace monorepo. To get started:
# Install dependencies
bun install
# Build all packages
bun run build
# Run development
bun run dev
# Run type checking
bun run typecheck
# Build documentation
bun run docs:buildmediafox/
├── packages/
│ ├── mediafox/ # Core player library (@mediafox/core)
│ └── react/ # React hooks (@mediafox/react)
├── docs/ # Documentation site
├── scripts/ # Build and utility scripts
└── package.json # Workspace configuration
- Create a new directory under
packages/ - Add a
package.jsonwith the package configuration - Run
bun installfrom the root to link the package
You can run commands for specific packages using filters:
# Run build for @mediafox/core package only
bun run --filter @mediafox/core build
# Run tests for all packages
bun run testVisit the documentation site for detailed guides and API references.
To run the documentation locally:
bun run docs:devMIT
Powered by Mediabunny - the powerful media processing library for the web.