AI
Media logov1.0.0

LLMs.txt Documentation

How to get tools like Cursor, Windsurf, GitHub Copilot, ChatGPT, and Claude to understand @nofinite/media.

Tip

Looking for unified ecosystem presets or multi-package rules? Visit our central AI Agents Hub.

We support LLMs.txt files for making @nofinite/media video and audio player primitives directly available to large language models.


Directory Overview

The following machine-readable context files are available:


Usage with Cursor & Windsurf

markdown
# Media Rules for AI Assistants
1. Framework-Agnostic Core First: Use `createMediaPlayer` from `@nofinite/media` for universal DOM mounting and zero-framework apps. For React, use `VideoPlayer` and `AudioPlayer` from `@nofinite/media/react`.
2. Custom Skins: Media controls strictly inherit `@nofinite/nuicss` tokens (`bg-surface`, `backdrop-blur-md`). Never create separate downstream CSS.
3. Streaming: Supports HLS (`.m3u8`), DASH (`.mpd`), and standard MP4/WebM/MP3 sources with automatic manifest detection.