
Research
Shai-Hulud Descends to Hades: Miasma Worm Campaign Spreads with New PyPI Wave
Socket found 37 malicious PyPI wheels that abuse Python startup hooks to launch a Bun-powered credential stealer tied to Mini Shai-Hulud/Miasma.
@page-speed/video
Advanced tools
Performance-optimized React Video component with HLS streaming support. Drop-in video implementation of web.dev best practices with zero configuration.
Performance-optimized React Video component with HLS streaming support. Drop-in video implementation of web.dev best practices with zero configuration.
npm install @page-speed/video
# or
pnpm add @page-speed/video
# or
yarn add @page-speed/video
import { Video } from "@page-speed/video";
export default function MyComponent() {
return (
<Video
src="https://example.com/video.mp4"
poster="https://example.com/poster.jpg"
controls
/>
);
}
import { Video } from "@page-speed/video";
export default function MyComponent() {
return (
<Video
masterPlaylistUrl="https://cdn.example.com/video/master.m3u8"
fallbackSrc="https://example.com/video.mp4"
poster="https://example.com/poster.jpg"
controls
/>
);
}
import { Video } from "@page-speed/video";
export default function MyComponent() {
return (
<Video
src="https://example.com/video.mp4"
poster="https://example.com/poster.jpg"
optixFlowApiKey="your-api-key"
controls
/>
);
}
import { VideoDefaults } from "@page-speed/video";
export default function App({ children }) {
return (
<VideoDefaults optixFlowApiKey="your-api-key">
{children}
</VideoDefaults>
);
}
<script crossorigin src="https://unpkg.com/react@18/umd/react.production.min.js"></script>
<script crossorigin src="https://unpkg.com/react-dom@18/umd/react-dom.production.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@page-speed/video/dist/browser/page-speed-video.umd.js"></script>
<script>
const { Video } = PageSpeedVideo;
ReactDOM.render(
React.createElement(Video, {
src: 'https://example.com/video.mp4',
poster: 'https://example.com/poster.jpg',
controls: true
}),
document.getElementById('root')
);
</script>
Extends all native <video> element props, plus:
| Prop | Type | Default | Description |
|---|---|---|---|
src | string | - | Source video URL (progressive MP4 or for transform) |
masterPlaylistUrl | string | - | Direct HLS master playlist URL (skips transform) |
fallbackSrc | string | - | Fallback progressive MP4 URL if HLS fails |
optixFlowApiKey | string | - | OptixFlow API key for poster optimization |
transformBaseUrl | string | https://octane.buzz | Base URL for transform API |
cdnBaseUrl | string | https://octane.cdn.ing | CDN base URL for playlist/segment serving |
preferNativeControls | boolean | true | Use native video controls |
processingStrategy | "optimistic" | "poll" | "optimistic" | Video processing strategy |
onPlaybackStateChange | (state: PlaybackState) => void | - | Callback for playback state changes |
debug | boolean | false | Enable debug logging |
idle: No video loadedloading: Loading video/manifestready: Ready to playerror: Fatal error occurredThe package includes a comprehensive test suite with 129 passing tests covering all functionality.
pnpm test
pnpm test -- --coverage
See TEST_DOCUMENTATION.md for detailed test documentation.
BSD-3-Clause
OpenSite AI (https://opensite.ai)
FAQs
Performance-optimized React Video component with HLS streaming support. Drop-in video implementation of web.dev best practices with zero configuration.
We found that @page-speed/video demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
Socket found 37 malicious PyPI wheels that abuse Python startup hooks to launch a Bun-powered credential stealer tied to Mini Shai-Hulud/Miasma.

Security News
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.

Security News
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.