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

chromacore

v1.0.0

Published

Modern ve dinamik Discord görsel oluşturma motoru

Readme

🎨 ChromaCore

Discord botlarınız için yeni nesil, modern ve tamamen özelleştirilebilir görsel oluşturma motoru.

ChromaCore, sıkıcı ve klasik Canvas tabanlı kartlardan sıkılan geliştiriciler için tasarlandı. Arka planda Puppeteer ve EJS gücünü kullanarak kusursuz Glassmorphism (Cam efekti) tasarımlarına sahip hoş geldin ve seviye (rank) kartları üretir.

ChromaCore Preview

✨ Özellikler

  • 🚀 HTML/CSS Tabanlı: Sınırları ortadan kaldırır. Piksellerle boğuşmak yerine web teknolojileriyle derlenir.
  • 🪟 Kusursuz Glassmorphism: Karanlık (Dark) ve Aydınlık (Light) tema destekli yarı saydam cam efektleri.
  • 🎨 Tamamen Özelleştirilebilir: Kendi arka planınızı, vurgu renginizi (accent color), özel fontlarınızı ve hatta kendi CSS kodlarınızı enjekte edebilirsiniz.
  • ⚡ Yüksek Performans: Özel Chromium Singleton mimarisi sayesinde saniyeler içinde görsel üretir, RAM'i yormaz.

📦 Kurulum

Projenize dahil etmek için terminalde şu komutu çalıştırın:


npm install chromacore

🚀 Hızlı Başlangıç

1. Hoş Geldin (Welcome) Kartı Oluşturma

Sunucunuza yeni katılan üyeler için estetik bir karşılama görseli oluşturun.


import { generateWelcomeCard, closeEngine } from 'chromacore';
import fs from 'fs';

async function createWelcome() {
    try {
        const buffer = await generateWelcomeCard({
            username: "Furkan",
            avatar: "https://i.imgur.com/V4RclNb.png", // Kullanıcının profil fotoğrafı URL'si
            title: "YENİ ÜYE",
            message: "Sunucumuza hoş geldin, umarız iyi vakit geçirirsin!",
            memberCount: 1542,
            theme: "dark", 
            backgroundImage: "https://images.unsplash.com/photo-1578632767115-351597cf2477?q=80&w=800&auto=format&fit=crop"
        });

        fs.writeFileSync('welcome.png', buffer);
        console.log("Hoş geldin kartı başarıyla oluşturuldu!");
    } finally {
        // İşlem bitince motoru kapatmayı unutmayın!
        await closeEngine();
    }
}

createWelcome();

2. Seviye / Rank Kartı Oluşturma

Kullanıcıların sunucudaki ilerlemelerini (XP/Level) neon detaylı bir çubukla gösterin.


import { generateRankCard, closeEngine } from 'chromacore';
import fs from 'fs';

async function createRank() {
    try {
        const buffer = await generateRankCard({
            username: "Geliştirici",
            avatar: "https://i.imgur.com/V4RclNb.png",
            currentXp: 850,
            requiredXp: 1000,
            level: 15,
            rank: 3,
            status: "online", // 'online', 'idle', 'dnd', 'offline'
            accentColor: "#6366f1", // XP barı ve Rank metni rengi (Örn: İndigo)
        });

        fs.writeFileSync('rank.png', buffer);
    } finally {
        await closeEngine();
    }
}

createRank();

🛠️ İleri Düzey Özelleştirme (Custom CSS)

ChromaCore'un sunduğu tasarımı kendi botunuzun ruhuna uydurmak çok kolaydır. `customCSS` parametresi ile sınırları aşabilirsiniz:


const buffer = await generateWelcomeCard({
    username: "Anime Sever",
    avatar: "https://...png",
    // Özel font yükleme
    customFontUrl: "https://fonts.googleapis.com/css2?family=Oswald:wght@700&display=swap",
    fontFamily: "'Oswald', sans-serif",
    // HTML üzerindeki elementlere doğrudan CSS müdahalesi
    customCSS: \`
        .avatar { 
            border: 5px solid #ff0055 !important; 
            box-shadow: 0 0 30px #ff0055 !important; 
        }
        .username { color: #ff0055 !important; }
    \`
});

⚙️ API Referansı

`WelcomeCardOptions`

| Parametre | Tip | Zorunlu mu? | Açıklama | | :--- | :--- | :---: | :--- | | `username` | string | Evet | Kullanıcının adı | | `avatar` | string | Evet | Avatar resmi URL'si | | `title` | string | Hayır | Üst başlık (Varsayılan: "HOŞ GELDİN") | | `message` | string | Hayır | Alt mesaj metni | | `memberCount` | number | Hayır | Sunucudaki toplam üye sayısı | | `theme` | 'dark' \| 'light' | Hayır | Kart teması (Varsayılan: 'dark') | | `backgroundImage`| string | Hayır | Arka plan resmi URL'si | | `customCSS` | string | Hayır | Özel CSS kodlarınız | | `customFontUrl` | string | Hayır | Google Fonts vb. dış bağlantı | | `fontFamily` | string | Hayır | Font ailesi ismi |

`RankCardOptions`

(Welcome opsiyonlarına ek olarak)

| Parametre | Tip | Zorunlu mu? | Açıklama | | :--- | :--- | :---: | :--- | | `currentXp` | number | Evet | Mevcut XP | | `requiredXp` | number | Evet | Sonraki seviye için gereken XP | | `level` | number | Evet | Kullanıcının seviyesi | | `rank` | number | Hayır | Sunucudaki sıralaması | | `status` | string | Hayır | Durum ikonu ('online', 'idle', vb.) | | `accentColor` | string | Hayır | Vurgu rengi HEX/RGB (Varsayılan: '#6366f1') |


🛑 Önemli Not (Motoru Kapatmak)

ChromaCore, maksimum performans için arka planda bir Chromium tarayıcısı barındırır (Singleton mimarisi). Botunuz komutları işledikçe aynı tarayıcı sekme açıp kapatarak çalışır. Botunuzu tamamen kapatırken veya işlem döngülerinizin sonunda `await closeEngine();` fonksiyonunu çağırmayı unutmayın, aksi takdirde arka planda açık bir süreç (process) kalabilir.

📜 Lisans

Bu proje MIT Lisansı ile lisanslanmıştır.


Crafted with 💖 by Furkan (Aiko Development)