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

@itsliaaa/starseal

v0.5.1

Published

A lightweight WhatsApp sticker toolkit with a fluent API.

Readme

🎨 @itsliaaa/starseal

Logo

☕ For donation: Saweria

📋 Table of Contents

📥 Installations

📄 Via package.json

# NPM
"dependencies": {
   "@itsliaaa/starseal": "latest"
}

# GitHub
"dependencies": {
   "@itsliaaa/starseal": "github:itsliaaa/starseal"
}

⌨️ Via terminal

# NPM
npm i @itsliaaa/starseal@latest

# GitHub
npm i @itsliaaa/starseal@github:itsliaaa/starseal

🧩 Import (ESM & CJS)

// --- ESM
import { create } from '@itsliaaa/starseal'

// --- CJS (tested and working on Node.js 24 ✅)
const { create } = require('@itsliaaa/starseal')

📄 Quick Start

import { create } from '@itsliaaa/starseal'

// Accepts a Buffer, URL, or file path.
const stickerBuffer = await create(bufferOrUrl)
   .packName('My Sticker Pack 🎨')
   .publisherName('Lia Wynn ✨')
   .toBuffer()

// Send using Baileys
// await sock.sendMessage(jid, {
//    sticker: stickerBuffer
// })

⚙️ Options

Starseal supports two configuration styles:

  • Fluent API: chain methods for better readability.
  • Object API: pass all options in a single configuration object.

📎 Fluent API

import { create } from '@itsliaaa/starcore'

const stickerBuffer = await create(bufferOrUrl)
   .shape(
      'round',
      1.0 // Scale, but its optional
   )
   .id('ABCDEFG') // ID sticker but its optional
   .packName('My Sticker Pack 🎨')
   .publisherName('Lia Wynn ✨')
   .emojis('🎨, ✨, ❤️') // String or array is supported.
   .accessibilityText('This sticker was made using Starseal!')
   .flags({
      ai: true,
      lock: false,
      premium: true
   })
   .options({
      width: 512, height: 512,
      flags: 'bilinear',
      format: 'yuva420p',
      brightness: 0.1,
      contrast: 0.05,
      saturation: 0.2,
      gamma: 0.03,
      blur: { sigma: 5, steps: 1 }, // Add gaussian blur
      // Animated WebP options
      fps: 24, // Maximum frame rate
      trimStart: '00:00:00', // Start timestamp
      trimEnd: '00:00:05' // End timestamp
   })
   .toBuffer() // Or: ".toFile('./my-sticker.webp')", ".toBase64()", ".toStream()", ".toDataURL()"
  • ⬜ Available Shapes:
type ShapeType =
  | 'cross'
  | 'diamond'
  | 'heart'
  | 'hexagon'
  | 'octagon'
  | 'pentagon'
  | 'round'
  | 'star'
  | 'triangle';

📋 Object API

import { create } from '@itsliaaa/starcore'

const myOptions = {
   shape: 'heart', // Or "{ type: 'heart', scale: 2.2 }"
   id: 'ABCDEFG',
   packName: 'My Sticker Pack 🎨',
   publisherName: 'Lia Wynn ✨',
   emojis: ['🎨', '✨', '❤️'],
   accessibilityText: 'This sticker was made using Starseal!',
   ai: false,
   lock: true,
   premium: false,
   width: 512,
   height: 512,
   flags: 'bilinear',
   format: 'yuva420p',
   brightness: 0.1,
   contrast: 0.05,
   saturation: 0.2,
   gamma: 0.03,
   blur: 2, // Number of blur steps, or "{ sigma, steps }"
   fps: 24,
   trimStart: '00:00:00',
   trimEnd: '00:00:05'
}

const stickerBuffer = await create(bufferOrUrl, myOptions)
   .toBuffer()

💡 Notes

  • emojis accepts either:

    • A comma-separated string ('🎨, ✨, ❤️').
    • And, array (['🎨', '✨', '❤️']).
  • .toBuffer() returns a Buffer.

  • .toFile(path) writes the sticker to disk and returns the output path.

  • .toBase64() returns a base64 string.

  • .toDataURL() returns a data: URL string (data:image/webp;base64,...).

  • .toStream() returns a Readable stream.

  • ai: true: Marks the sticker as AI-generated, displaying an AI logo and a "Create AI Sticker" button.

  • lock: true: Prevents other users from saving the sticker.

  • premium: true: Marks the sticker as premium, sending it as a premium sticker and displaying a diamond logo.

🖼️ Read WebP

Reads a WebP image from a Buffer or a URL and provides access to its metadata, EXIF, and animation frames.

import { readWebP } from '@itsliaaa/starseal'

const webp = await readWebP(bufferOrUrl)

const metadata = webp.getData()

const exif = webp.getExif(false) // Parsed EXIF ("true" for RAW)

const frame_0 = webp.getFrame(0) // Parsed frame (0-based index)
const rawFrame = webp.getFrame(0, true) // RAW frame

const allFrames = webp.getAllFrames(false) // Or "true" for RAW frames

⚙️ Configuration

Starseal can be configured globally before creating stickers.

import { configure } from '@itsliaaa/starseal'
import { tmpdir } from 'node:os'

configure({
   ffmpegPath: 'ffmpeg',
   tempPath: tmpdir(),
   timeout: 30_000
})

| Option | Type | Default | Description | |--------|------|---------|-------------| | ffmpegPath | string | 'ffmpeg' | Path to the FFmpeg executable. | | tempPath | string | os.tmpdir() | Directory used for temporary files. | | timeout | number | 30000 | Maximum FFmpeg execution time in milliseconds. |

📋 Requirements

To process stickers, FFmpeg must be installed and accessible from your system's PATH.

Verify your installation:

ffmpeg -version

If FFmpeg is installed in a custom location, specify it using configure():

configure({
  ffmpegPath: '/path/to/ffmpeg'
})

🚀 Try the Bot

A fast, lightweight, and modular WhatsApp bot built with @itsliaaa/baileys. Perfect for managing groups, moderating chats, and adding fun with quiz games and handy tools.

👉🏻 @itsliaaa/starseed

A lightweight framework built on top of Baileys for WhatsApp bot development.

👉🏻 @itsliaaa/starcore

📣 Credits

This project is created and maintained by Lia Wynn

Please do not remove or alter the original credits, copyright notices, or attributions.