
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
@polotno/video-export
Advanced tools
Convert Polotno store into video files using browser-based video encoding.
npm install @polotno/video-export
import { storeToVideo } from '@polotno/video-export';
import { createStore } from 'polotno/model/store';
const store = createStore({ key: 'YOUR_KEY' });
// Export video
const videoBlob = await storeToVideo({
store,
fps: 30, // Frames per second (default: 30)
pixelRatio: 2, // Pixel ratio for quality (default: 1)
onProgress: (progress, frameTime) => {
console.log(`Progress: ${Math.round(progress * 100)}%`);
console.log(`Frame render time: ${frameTime}ms`);
},
// Optional: cancel the export
// signal: new AbortController().signal,
});
// Download the video
const url = URL.createObjectURL(videoBlob);
const link = document.createElement('a');
link.href = url;
link.download = 'video.mp4';
link.click();
You can cancel an in-progress export with an AbortController:
const controller = new AbortController();
const promise = storeToVideo({
store,
signal: controller.signal,
});
// Later...
controller.abort();
// `storeToVideo` will reject with an AbortError
await promise;
store.toDataURL()The library supports adding audio tracks to your videos. Audio tracks are automatically mixed with proper delays and volumes:
// Add audio to your store
store.addAudio({
src: 'https://example.com/audio.mp3',
delay: 0, // Delay in ms before audio starts
startTime: 0, // Relative start point in the audio (0-1)
endTime: 1, // Relative end point in the audio (0-1)
volume: 1, // Volume level (0-1)
});
// Export with audio (enabled by default)
const videoBlob = await storeToVideo({
store,
includeAudio: true, // default: true
});
// Or disable audio
const videoBlob = await storeToVideo({
store,
includeAudio: false,
});
FAQs
Convert Polotno store into video file
The npm package @polotno/video-export receives a total of 126 weekly downloads. As such, @polotno/video-export popularity was classified as not popular.
We found that @polotno/video-export 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.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.