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

dark-stars-api-sdk

v1.0.0

Published

SDK leve, rápido e totalmente intuitivo para integração com a Dark Stars API — incluindo downloads, IA, canvas, stickers, música, voz, vídeo e muito mais.

Downloads

119

Readme

🌑 DarkStarsAPI – SDK Oficial para Node.js

Biblioteca leve, rápida e tipada para acessar todas as funcionalidades da Dark Stars API de forma simples e elegante.

npm version License: MIT Node.js >= 18

Funcionalidades principais:

  • 📥 Downloads — YouTube, TikTok, Instagram, etc.
  • 🔍 Buscas — Google, YouTube, Pinterest, Xvideos...
  • 🤖 IA de Texto — ChatGPT, Gemini, DeepSeek, Claude...
  • 🎨 Geração de Imagens — DALL·E, Stable Diffusion, Flux, NSFW...
  • 📸 Stickers & Figurinhas — ATTP, meme, figurinhas animadas...
  • 🖼 Canvas — Bem-vindo, perfil, level card, ship, efeitos...
  • 🔊 Texto para Fala (TTS) — gTTS, Gemini TTS...
  • 🎙 Vozes de IA — Laura, Isabela, Lula, Bolsonaro, entre outras
  • 🎬 Geração de Vídeo — Grok Video, Veo...
  • 🎵 Geração de Música — MusicGen, MusicLab...

📦 Instalação

Via npm (recomendado):

npm install dark-stars-api-sdk

Ou via yarn / pnpm:

yarn add dark-stars-api-sdk
# ou
pnpm add dark-stars-api-sdk

🚀 Importando e iniciando

const DarkApi = require("dark-stars-api-sdk");

const dark = new DarkApi({
  apikey: "SUA_KEY_AQUI"
});

Pegue sua apikey aqui https://darkstarsapi.online


⚡ Uso básico

Todas as chamadas seguem o padrão:

const result = await dark({
  name: "rota.do.recurso",
  input: { /* parâmetros */ }
});

console.log(result);

📚 Exemplos por Categoria

Abaixo um exemplo real de cada categoria existente da API.


🎵 1. DOWNLOADS

const audio = await dark({
  name: "download.youtube.audio",
  input: { url: "https://youtu.be/ehZFyxRbyd0" }
});

console.log("Arquivo salvo em:", audio);

🔍 2. SEARCH

const yt = await dark({
  name: "search.youtube",
  input: { query: "Pedrozz Mods" }
});

console.log(yt);

🤖 3. IA TEXTO

const gpt = await dark({
  name: "ai.gpt",
  input: { texto: "Olá, tudo bem?" }
});

console.log(gpt);

🎨 4. IA IMAGEM

const img = await dark({
  name: "img.generate",
  input: { prompt: "A cute futuristic robot cat" }
});

console.log("Imagem salva em:", img);

📝 5. STICKERS

const stc = await dark({
  name: "sticker.v3.attp7",
  input: { texto: "Dark API" }
});

console.log("Sticker salvo em:", stc);

🖼 6. CANVAS

const card = await dark({
  name: "canvas.welcome",
  input: {
    titulo: "Bem-vindo",
    perfil: "https://files.catbox.moe/9rtdyx.png",
    fundo: "https://telegra.ph/file/394705b02d10509c435cf.jpg",
    desc: "Estamos felizes em te ver aqui!"
  }
});

console.log("Card gerado em:", card);

🔊 7. ÁUDIO (TTS)

const audioTTS = await dark({
  name: "audio.gtts",
  input: { ling: "pt", text: "Dark API é braba!" }
});

console.log("Áudio salvo em:", audioTTS);

🎤 8. VOZ (IA Voice)

const voz = await dark({
  name: "voice.laura",
  input: { prompt: "Seja bem-vindo ao Dark Stars API!" }
});

console.log("Voz gerada em:", voz);

🎬 9. VÍDEO (IA Video)

const video = await dark({
  name: "video.veo",
  input: { prompt: "A cat flying in space" }
});

console.log(video);

🎵 10. MÚSICA (IA Music)

const music = await dark({
  name: "music.musicgen",
  input: { prompt: "trap beat futuristic" }
});

console.log(music);

📑 Estrutura Geral das Rotas

Cada recurso possui um nome seguindo o padrão:

categoria.subcategoria.rota

Exemplo:

| Categoria | Nome | Chamada | |----------|------|---------| | Sticker | v3 attp7 | sticker.v3.attp7 | | Canvas | Welcome v2 | canvas.welcome.v2 | | IA Texto | GPT | ai.gpt | | Image IA | Dalle | img.dalle |


❗ Tratamento de Erros

Caso o usuário informe input errado, todas as rotas retornam:

throw new Error("rota precisa de { parâmetro }.");

Exemplo:

await dark({
  name: "search.youtube",
  input: {}
});
// ❌ search.youtube precisa de { query }.

📄 Lista Completa de Rotas

Consulte a documentação oficial da Dark Stars API para ver todas as rotas disponíveis e parâmetros obrigatórios/opcionais.

Padrão de nomenclatura: categoria.subcategoria.recurso

Exemplos comuns:

  • ai.gpt / ai.gemini / ai.deepseek
  • img.dalle / img.flux / img.stable
  • canvas.level / canvas.ship
  • sticker.v3.attp* / sticker.meme

❤️ Créditos & Suporte

  • APIDark Stars API
  • SDK → Desenvolvido por Pedrozz Mods (@pedrozz_13755)
  • Sugestões, bugs e pull requests são super bem-vindos!