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

@reibul/reistore-sdk

v1.0.1

Published

Official Reibul Reistore SDK — Build, publish, and manage plugins for the Reibul marketplace

Readme

@reibul/reistore-sdk

Reibul Reistore için resmi SDK — Reibul marketplace'inde plugin oluşturun, yayınlayın ve yönetin.

Kurulum

npm install @reibul/reistore-sdk

Hızlı Başlangıç

1. API Key Alın

Dashboard'a gidin → AyarlarAPI AnahtarlarıYeni Anahtar Oluştur

2. CLI ile Giriş Yapın

npx reistore login rbst_your_api_key_here

3. Plugin Projesi Oluşturun

npx reistore init --name "My Plugin" --slug "my-plugin"

Bu komut reistore.config.json dosyası oluşturur:

{
  "name": "My Plugin",
  "slug": "my-plugin",
  "tagline": "Kısa açıklama",
  "description": "Detaylı açıklama",
  "category": "OTHER",
  "tags": ["ecommerce", "automation"],
  "version": "1.0.0",
  "isFree": true,
  "developer": {
    "name": "Developer Adı",
    "url": "https://example.com",
    "email": "[email protected]"
  },
  "assets": {
    "icon": "./assets/icon.png",
    "banner": "./assets/banner.png",
    "screenshots": ["./assets/screenshot-1.png"]
  },
  "links": {
    "demo": "https://demo.example.com",
    "docs": "https://docs.example.com",
    "repo": "https://github.com/user/plugin"
  }
}

4. Yayınlayın

npx reistore publish

SDK Kullanımı (Programatik)

import { ReistoreClient } from "@reibul/reistore-sdk";

const client = new ReistoreClient({
  apiKey: "rbst_...",
  // baseUrl: "https://reibul.com/api/reistore"  (varsayılan)
});

Plugin İşlemleri

// Pluginleri listele
const { data: plugins } = await client.plugins.list({
  status: "PUBLISHED",
  category: "MARKETING",
  sort: "popular",
});

// Plugin detayı
const plugin = await client.plugins.get("my-plugin");

// Yeni plugin oluştur
const newPlugin = await client.plugins.create({
  name: "Analytics Pro",
  slug: "analytics-pro",
  tagline: "Gelişmiş e-ticaret analitiği",
  description: "Mağazanız için kapsamlı analitik araçları...",
  category: "ANALYTICS",
  tags: ["analytics", "reporting", "dashboard"],
  isFree: false,
  price: 9.99,
});

// Plugin güncelle
await client.plugins.update("analytics-pro", {
  tagline: "Yeni geliştirilmiş analitik araçları",
  price: 14.99,
});

// Yayınla
await client.plugins.publish("analytics-pro");

// Arşivle
await client.plugins.archive("analytics-pro");

// Arşivden çıkar
await client.plugins.unarchive("analytics-pro");

// Taslak plugini sil
await client.plugins.delete("draft-plugin");

Asset Yükleme

// İkon yükle
await client.assets.uploadIcon("my-plugin", "./assets/icon.png");

// Banner yükle
await client.assets.uploadBanner("my-plugin", "./assets/banner.png");

// Ekran görüntüsü yükle
await client.assets.uploadScreenshot("my-plugin", "./assets/ss-1.png");

// Birden fazla ekran görüntüsü
await client.assets.uploadScreenshots("my-plugin", [
  "./assets/ss-1.png",
  "./assets/ss-2.png",
  "./assets/ss-3.png",
]);

// Ekran görüntüsü sil
await client.assets.removeScreenshot("my-plugin", "https://...");

Versiyon Yönetimi

// Versiyonları listele
const { data: versions } = await client.versions.list("my-plugin");

// Yeni versiyon oluştur
const version = await client.versions.create("my-plugin", {
  version: "2.0.0",
  changelog: "- Yeni dashboard\n- Performans iyileştirmeleri\n- Bug düzeltmeleri",
  minPlatform: "3.0.0",
});

// Versiyonu yayınla
await client.versions.publish("my-plugin", "2.0.0");

Değerlendirmeler

// Değerlendirmeleri oku
const { data: reviews } = await client.reviews.list("my-plugin", {
  sort: "newest",
  pageSize: 10,
});

// Değerlendirme yap
await client.reviews.create("some-plugin", {
  rating: 5,
  title: "Harika plugin!",
  comment: "Kurulumu çok kolay ve performansı mükemmel.",
});

// Değerlendirmeni güncelle
await client.reviews.update("some-plugin", { rating: 4 });

// Değerlendirmeni sil
await client.reviews.delete("some-plugin");

Analitik

// Plugin istatistikleri
const stats = await client.analytics.getStats("my-plugin", 30);
console.log(`Toplam kurulum: ${stats.installCount}`);
console.log(`Aktif kurulum: ${stats.activeInstalls}`);
console.log(`Puan: ${stats.rating} (${stats.ratingCount} değerlendirme)`);

// Genel dashboard
const dashboard = await client.analytics.getDashboard();
console.log(`Toplam plugin: ${dashboard.totalPlugins}`);
console.log(`Toplam kurulum: ${dashboard.totalInstalls}`);

CLI Komutları

| Komut | Açıklama | |---|---| | reistore login <api-key> | API key ile giriş yap | | reistore whoami | Giriş yapan kullanıcıyı göster | | reistore init | Yeni plugin projesi başlat | | reistore list | Pluginlerini listele | | reistore info <slug> | Plugin detaylarını göster | | reistore publish | Config'den plugin yayınla | | reistore publish --draft | Taslak olarak kaydet | | reistore upload <slug> icon ./icon.png | Asset yükle | | reistore stats <slug> | Analitik göster | | reistore version list <slug> | Versiyonları listele | | reistore version create <slug> 2.0.0 | Yeni versiyon oluştur | | reistore version publish <slug> 2.0.0 | Versiyon yayınla |

CLI Seçenekleri

# JSON çıktısı
reistore list --json
reistore info my-plugin --json
reistore stats my-plugin --json

# Filtreleme
reistore list --status PUBLISHED
reistore list --category MARKETING

# İstatistik periyodu
reistore stats my-plugin --days 90

# Versiyon changelog
reistore version create my-plugin 2.0.0 -m "Yeni özellikler eklendi"

Yapılandırma

API key aşağıdaki öncelik sırasına göre çözümlenir:

  1. Parametre olarak verilen apiKey
  2. REISTORE_API_KEY ortam değişkeni
  3. Proje dizinindeki reistore.config.jsonapiKey
  4. ~/.reistore/config.jsonapiKey (login komutuyla kaydedilir)

ReistoreConfig

interface ReistoreConfig {
  apiKey: string;         // API anahtarı (zorunlu)
  baseUrl?: string;       // API base URL (varsayılan: https://reibul.com/api/reistore)
  timeout?: number;       // İstek zaman aşımı ms (varsayılan: 30000)
  retries?: number;       // Tekrar deneme sayısı (varsayılan: 2)
  debug?: boolean;        // Debug logları (varsayılan: false)
}

Hata Yönetimi

import {
  ReistoreError,
  AuthenticationError,
  AuthorizationError,
  NotFoundError,
  ValidationError,
  RateLimitError,
  NetworkError,
} from "@reibul/reistore-sdk";

try {
  await client.plugins.create({ ... });
} catch (err) {
  if (err instanceof ValidationError) {
    console.error("Doğrulama hatası:", err.message);
  } else if (err instanceof AuthenticationError) {
    console.error("API key geçersiz");
  } else if (err instanceof RateLimitError) {
    console.error(`Rate limit, ${err.retryAfter}s sonra tekrar deneyin`);
  } else if (err instanceof NotFoundError) {
    console.error("Plugin bulunamadı");
  }
}

Plugin Kategorileri

| Kategori | Açıklama | |---|---| | ANALYTICS | Analitik ve raporlama araçları | | MARKETING | Pazarlama ve kampanya yönetimi | | SHIPPING | Kargo ve lojistik entegrasyonları | | PAYMENTS | Ödeme ve finans araçları | | AUTOMATION | İş süreçleri otomasyonu | | DESIGN | Tasarım ve tema araçları | | SEO | SEO optimizasyon araçları | | INTEGRATIONS | Üçüncü parti entegrasyonlar | | OTHER | Diğer |


API Scopes

| Scope | Açıklama | |---|---| | plugins:read | Plugin bilgilerini okuma | | plugins:write | Plugin oluşturma ve güncelleme | | versions:write | Versiyon oluşturma ve yayınlama | | assets:write | Asset yükleme ve silme | | * | Tüm yetkiler |


Lisans

MIT — Reibul © 2024-2026