npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@rendervid/editor

v0.1.0

Published

Visual editor component for Rendervid templates

Readme

@rendervid/editor

Visual editor component for Rendervid templates.

Installation

npm install @rendervid/editor @rendervid/core @rendervid/renderer-browser

Usage

import { VideoEditor } from '@rendervid/editor';
import '@rendervid/editor/styles.css';

function MyApp() {
  const template = {
    name: 'My Video',
    output: {
      type: 'video',
      width: 1920,
      height: 1080,
      fps: 30,
    },
    inputs: [],
    composition: {
      scenes: [
        {
          id: 'scene-1',
          startFrame: 0,
          endFrame: 150,
          backgroundColor: '#000000',
          layers: [],
        },
      ],
    },
  };

  return (
    <VideoEditor
      template={template}
      callbacks={{
        onSave: async (template) => {
          console.log('Saving template:', template);
          // Save to backend
        },
        onExport: async (template) => {
          console.log('Exporting video:', template);
          // Trigger video export
        },
        onChange: (template) => {
          console.log('Template changed:', template);
        },
      }}
    />
  );
}

Features

  • Timeline Editor: Visual timeline with playback controls
  • Layer Management: Add, remove, reorder, and duplicate layers
  • Property Panel: Edit layer properties (position, size, text, colors, etc.)
  • Preview: Real-time browser preview using @rendervid/renderer-browser
  • Undo/Redo: Built-in history management
  • Keyboard Shortcuts:
    • Space: Play/Pause
    • Cmd/Ctrl+Z: Undo
    • Cmd/Ctrl+Shift+Z or Cmd/Ctrl+Y: Redo
    • Delete/Backspace: Delete selected layer

API

VideoEditor Props

interface VideoEditorProps {
  /** Initial template */
  template: Template;

  /** Editor configuration */
  config?: {
    enableHistory?: boolean;
    maxHistorySize?: number;
    autoSaveInterval?: number;
    theme?: 'light' | 'dark';
  };

  /** Callbacks */
  callbacks?: {
    onSave?: (template: Template) => void | Promise<void>;
    onExport?: (template: Template) => void | Promise<void>;
    onChange?: (template: Template) => void;
    onError?: (error: Error) => void;
  };

  /** Editor dimensions */
  width?: number | string;
  height?: number | string;

  /** Additional CSS class */
  className?: string;
}

Individual Components

You can also use individual components separately:

import {
  Preview,
  Timeline,
  LayerPanel,
  PropertyPanel,
  useEditorStore,
} from '@rendervid/editor';

State Management

The editor uses Zustand for state management. You can access the editor store directly:

import { useEditorStore } from '@rendervid/editor';

function MyComponent() {
  const {
    template,
    selectedLayerId,
    currentFrame,
    isPlaying,
    setCurrentFrame,
    togglePlay,
    addLayer,
    updateLayer,
    // ... more actions
  } = useEditorStore();

  // Use the store
}

Examples

Custom Export Handler

<VideoEditor
  template={template}
  callbacks={{
    onExport: async (template) => {
      // Call backend API to render video
      const response = await fetch('/api/render', {
        method: 'POST',
        headers: { 'Content-Type': 'application/json' },
        body: JSON.stringify({ template }),
      });

      const { jobId } = await response.json();

      // Poll for completion
      const video = await pollForVideo(jobId);

      // Download video
      window.location.href = video.url;
    },
  }}
/>

Auto-save

<VideoEditor
  template={template}
  config={{
    autoSaveInterval: 5000, // Auto-save every 5 seconds
  }}
  callbacks={{
    onChange: (template) => {
      // Debounce and save
      debouncedSave(template);
    },
  }}
/>

Custom Theme

<VideoEditor
  template={template}
  config={{
    theme: 'dark',
  }}
  className="my-custom-editor"
/>

Browser Compatibility

  • Chrome/Edge: Latest 2 versions
  • Firefox: Latest 2 versions
  • Safari: Latest 2 versions

Requires ES2020 support and Canvas API.

License

MIT