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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@rendermotion/sdk

v0.1.0-beta.6

Published

Rendermotion official SDK

Downloads

306

Readme

Rendermotion Official SDK

This is the official SDK for Rendermotion, a distributed cloud platform for rendering Remotion videos.

Status: 🚧 Under Construction 🚧

We're hard at work building Rendermotion and this SDK.

[!TIP] Join the waitlist to get early access at rendermotion.io.

About Rendermotion

Rendermotion is a revolutionary platform that allows you to render Remotion videos in the cloud, leveraging the power of distributed computing. This means faster rendering times, increased scalability, and reduced costs for your video production workflows.

Features

  • Easy integration: Seamlessly connect your Remotion projects to Rendermotion.
  • Fast rendering: Distribute rendering across multiple machines for blazing-fast results.
  • Scalable infrastructure: Handle any size project, from small marketing videos to large-scale animation renders.
  • Cost-effective: Pay only for the rendering resources you use. Much cheaper than Remotion Lambda.
  • API access: Control and monitor your renders programmatically.

Stay connected

Requirements

  • Node.js >= 20.0.0 or Bun >= 1.0.0
  • Remotion >= 4.0.200

Installation

# npm
npm install @rendermotion/sdk

# yarn
yarn add @rendermotion/sdk

# pnpm
pnpm add @rendermotion/sdk

# bun
bun add @rendermotion/sdk

Usage

Deploying your Remotion project

It will return a serveUrl that you can use to render your video.

You only need to run this once (initially) and everytime you make changes to your Remotion composition or upgrade your Remotion version.

import { deploySite } from "@rendermotion/sdk/deploy-site";

const { serveUrl } = await client.deploySite({
  entryPoint: "your/remotion/entry/point/index.ts",
  siteName: "YOUR_SITE_NAME",
  apiKey: "YOUR_API_KEY",
});

Triggering a render

For each video you want to render, you simply need to call the renderMedia method from the client. You can use the serveUrl from the deploySite method or your own custom URL.

import { createClient } from "@rendermotion/sdk";

// 1. Create a client with your API key.
const client = createClient("YOUR_API_KEY");

// 2. Render your video.
const { renderJob } = await client.renderMedia({
  // The serve URL to your Remotion project.
  // If you have a deployed site on Lambda or anywhere else, you can use that URL instead.
  serveUrl,

  // The composition ID to render.
  compositionId: "YourCompositionId",

  // Your composition input props.
  inputProps: {},

  // (optional) We'll call this URL when the render is complete if provided.
  webhookUrl: "https://your-webhook-url.com",

  // (optional) Settings for your render.
  settings: {
    codec: "h265",
  }
});

// 3. Get the render job details.
const {
  status, // "pending", "rendering", "completed", "failed"
  progress, // 0-100
  downloadUrl // If status is "completed", this will be the URL to download your video.
} = await client.getRenderJob({ renderJobId: renderJob.id });