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

@boruto_vk7/stickengine

v0.0.6

Published

StickEngine module for creating WhatsApp stickers

Readme

🚀 StickEngine

O StickEngine é um motor de alta performance para criação de figurinhas do WhatsApp, projetado para ser simples para iniciantes e extremamente poderoso para desenvolvedores avançados.


📦 1. Começando (Básico)

Instalação

npm install @boruto_vk7/stickengine

Requisito: Tenha o ffmpeg instalado no seu sistema.

Suporte Híbrido

O módulo funciona tanto com ESM quanto CommonJS:

  • ESM: import StickEngine from '@boruto_vk7/stickengine';
  • CJS: const StickEngine = require('@boruto_vk7/stickengine').default;

Sua Primeira Figurinha

Gere uma figurinha com apenas 3 linhas de código:

const engine = new StickEngine();
engine.addFile('./foto.jpg'); // Adiciona a imagem
const results = await engine.start(); // Inicia o processamento
console.log('Sticker salvo em:', results[0].value);

🛠️ 2. Personalizando (Intermediário)

Adicionando Nome e Autor (Metadados)

Personalize as informações que aparecem quando alguém clica na figurinha no WhatsApp.

const engine = new StickEngine({
  metadata: {
    pack: 'Meu Pack Incrível',
    author: 'Borutovk7'
  }
});

Figurinhas Animadas (GIF e Vídeo)

O motor detecta automaticamente se o arquivo é animado. Ele corta para 6 segundos e garante que o arquivo tenha menos de 1MB.

engine.addFile('./video_engracado.mp4');
engine.addFile('./dancinha.gif');
await engine.start();

🎨 3. Efeitos Especiais (Avançado)

Recorte Circular e Filtros

Transforme imagens quadradas em círculos e aplique filtros profissionais.

const engine = new StickEngine({
  edit: {
    circle: true,     // Recorte circular
    sepia: true,      // Filtro antigo
    brightness: 0.2   // Aumenta o brilho
  }
});

Legendas com Borda (Meme Style)

Adicione texto que pode ser lido em qualquer fundo graças ao contorno (stroke).

const engine = new StickEngine({
  edit: {
    text: {
      content: 'QUEBRADO!',
      color: 'WHITE',
      stroke: true // Adiciona borda preta ao texto branco
    }
  }
});

💎 4. Funções Profissionais (Expert)

Texto para Figurinha (TP)

Gere figurinhas de frases do zero, sem precisar de uma imagem de base.

const path = await engine.createTextSticker("ESSA É TOP!", { 
  color: 'WHITE',
  background: 0x00000000 // Transparente
});

Criando Ícone do Pacote (Tray Icon)

Gere o ícone de bandeja (96x96) necessário para pacotes oficiais.

const trayPath = await engine.createTrayIcon('./logo.png');

Auto-Dimensionamento Inteligente

O motor reduz automaticamente a qualidade e o FPS se a figurinha animada passar de 1MB, garantindo que ela sempre seja enviada com sucesso.


📑 5. Referência Técnica Completa

Opções do Construtor (StickEngineOptions)

| Propriedade | Tipo | Padrão | Descrição | | :--- | :--- | :--- | :--- | | quality | Number | 80 | Qualidade do WebP (1-100). | | fps | Number | 15 | Frames por segundo para animados. | | autoClean | Boolean | true | Apaga temporários automaticamente. |

Opções de Edição (JimpOptions)

| Opção | Descrição | | :--- | :--- | | circle | Ativa o recorte circular. | | brightness | Ajusta o brilho (-1 a 1). | | contrast | Ajusta o contraste (-1 a 1). | | blur | Aplica desfoque. | | text.stroke | Adiciona contorno ao texto. |


🤝 Créditos

Desenvolvido por Borutovk7.

📄 Licença

ISC