Socket
Socket
Sign inDemoInstall

@editframe/editframe-js

Package Overview
Dependencies
154
Maintainers
2
Versions
68
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @editframe/editframe-js

Node library for interacting with the Editframe API.


Version published
Weekly downloads
68
increased by353.33%
Maintainers
2
Created
Weekly downloads
 

Readme

Source

Editframe JS SDK

The Editframe JS SDK is a Node.js library that allows developers to easily integrate Editframe into their web applications. Our goal is to make it extremely easy for software developers to incorporate video composition and editing experiences into their applications.

npm version

Note: This library currently only works in Node environments and does not work in a browser. Additionally, this should only be used in server environments to protect your API key.

Installation

You can install the Editframe JS SDK using npm or yarn:

Npm

npm install @editframe/editframe-js

Yarn

yarn add @editframe/editframe-js

Getting Started

To get started with the Editframe JS SDK, you will need to obtain an API key from the Editframe dashboard.

Once you have your API key, you can create an instance of the Editframe class:

import { Editframe } from "@editframe/editframe-js"

const editframe = new Editframe({ token: "API_TOKEN" })

const composition = await editframe.videos.new(
  {
    backgroundColor: "#c400ac",
    dimensions: {
      height: 1080,
      width: 1920,
    },
    duration: 10,
    metadata: {
      user_id: 1
    },
  },
  "https://editframe.com/docs/composition/create-composition/puppy-beach.mp4"
);

await composition.encode();

API Reference

For a complete reference of the Editframe JS SDK API, please see the API documentation.

FAQs

Last updated on 15 Jan 2024

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc