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

vidyn

v0.0.5

Published

Video Editing in the browser

Downloads

2

Readme

Generate video in the browser, exportable to MP4

Get started

Installation

NPM package

npm install vidyn

CDN

<script src="https://cdn.jsdelivr.net/npm/vidyn/dist/vidyn.umd.cjs"></script>

Demo

<div id="render"></div>
<script type="module">
    import Vidyn from "vidyn"

    const video = new Vidyn()
    video.setElement(document.querySelector("#render"))
    video.playing = true

    video.set({
        settings: {
            width: 400,
            height: 400,
            color: "#ffffff",
        },
        elements: [
            {
                type: "text",
                start: 0,
                duration: 2000,
                data: {
                    text: "Hello world",
                    x: 200,
                    y: 200,
                    fontSize: 30,
                    fillStyle: "#000000",
                },
                animations: [
                    {
                        attribute: "alpha",
                        from: 0,
                        to: 1,
                        start: 0,
                        duration: 1000,
                    },
                ],
            },
        ],
    })
</script>

Download or Export Video

const video = new Vidyn()

// download MP4
video.exportMP4("video.mp4") /

// or

// export video blob
video.export().then(blob => { ... })

JSON video format

{
    "settings": {
        "width": 400, // px
        "height": 400, // px
        "color": "#ffffff"
    },
    "elements": []
}

Element

{
    "type": "text", // image, video, audio, rectangle, ellipse, group
    "start": 1000, // ms
    "duration": 1000, // ms
    "data": {
        // all attributes are optionnals
        "text": "Hello",
        "font": "FontName or URL",
        "fontSize": 10,
        "src": "URL",
        "volume": 1,
        "trim": 0,
        "loop": false,
        "x": 0,
        "y": 0,
        "width": 0,
        "height": 0,
        "radius": 0,
        "scale": 1,
        "scaleX": 1,
        "scaleY": 1,
        "alpha": 1,
        "angle": 0,
        "fillStyle": "#000000",
        "strokeStyle": "#000000",
        "lineWidth": 1,
        "blur": 1,
        "brightness": 1,
        "contrast": 1,
        "grayscale": 1,
        "hueRotate": 1,
        "saturate": 1,
        "sepia": 1,
        "shadowColor": 1,
        "shadowBlur": 1,
        "shadowOffsetX": 1,
        "shadowOffsetY": 1,
        "anchorX": 0,
        "anchorY": 0,
        "fit": "cover", // stretch, fit
        "elements": [] // Only for group
    },
    "animations": []
}

Animation

{
    "attribute": "alpha",
    "start": 0,
    "duration": 1000,
    "easing": "linear",
    "from": 0,
    "to": 1
}

Contributing

Vidyn is an open-source project and we welcome contributions from the community.

If you'd like to contribute, please fork the repository and make changes as you'd like. Pull requests are warmly welcome.

Licencing

BUY LICENCE : 9.99$/year