Skip to content

Rocky-pup/spotify-card-updated-skia

 
 

Repository files navigation

To use (package.json):

{
  "dependencies": {
    "spotify-card": "github:Rocky-pup/spotify-card-updated-skia"
  }
}

Generate song embeds easily !

Preview

spotify-card

Table of Contents

About

This is a nodejs utility to generate song embeds using skia-canvas.

The package is named spotify-card because I wanted to only add spotify support at the beginning but I ended up adding support for other platforms.

Currently supported plaforms: Spotify, Soundcloud, Youtube and Deezer

Prerequisites

Installing

You can install this package from the npm registry

yarn add spotify-card

or with the npm cli:

npm install spotify-card

Usage

Example (typescript)

import { generate } from "spotify-card";
import path from "path";
import fs from "fs";

(async () => {
    const image = await generate({
        url: "spotify:track:33yAEqzKXexYM3WlOYtTfQ",
    });
    fs.writeFileSync(path.join(__dirname, "test_image.png"), image);
})();

About

Generate spotify embeds using canvas

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 99.7%
  • JavaScript 0.3%