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

jsvelox

v2.2.0

Published

Zero-overhead AI integration library — connect Claude, OpenAI and Gemini, train with your own data, no server required.

Readme

jsvelox

jsvelox 🦓

Codename: Quagga — v2.1.0

npm version npm downloads GitHub License: MIT


Neden jsvelox?

AI agent platformları güçlüdür ama ağırdır. Her kullanılmayan node bile kaynak tüketir.

jsvelox farklı çalışır — sadece kullandığın kadar kaynak harca. Sunucu kurma, karmaşık pipeline'lar oluşturma. Birkaç satır JavaScript ile yapay zekayı projenize entegre edin.

  • ✅ Sunucu gerekmez
  • ✅ Minimum kaynak kullanımı
  • ✅ Claude, OpenAI ve Gemini tek kütüphanede
  • ✅ Yapay zekayı kendi verinizle eğitin
  • ✅ Tek satır UI entegrasyonu (onSend)
  • ✅ TypeScript desteği ve otomatik tamamlama

Kurulum

npm install jsvelox

Zorunlu Kodlar — Her projede bunları yazacaksınız

import VeloxAI from 'jsvelox'

const ai = new VeloxAI({
  provider: 'BURAYA-AI-SAGLAYICI-GELECEK', // 'claude' | 'openai' | 'gemini'
  apiKey: 'BURAYA-API-KEY-GELECEK',        // AI sağlayıcınızdan aldığınız key
  memoryLimit: 10,   // Son kaç mesaj hafızada tutulsun? (opsiyonel)
  timeout: 15000     // Kaç ms içinde cevap gelmezse hata versin? (opsiyonel)
})

// Mesaj gönder, cevap al
const cevap = await ai.send('Merhaba!')
console.log(cevap)

Yapay Zekayı Eğitme — Sitenize özel asistan yapın

Bir e-ticaret sitesi, sağlık mağazası veya herhangi bir işletme için yapay zekayı kendi ürün ve bilgilerinizle eğitebilirsiniz:

import VeloxAI from 'jsvelox'

const ai = new VeloxAI({
  provider: 'gemini',
  apiKey: 'BURAYA-API-KEY-GELECEK',

  // Yapay zekaya karakter ve görev tanımlayın
  systemPrompt: 'Sen VitaShop\'un sağlık asistanısın. Müşterilerin sorularını Türkçe cevapla. Sağlık durumlarına göre uygun ürün öner.',

  // Hangi bilgileri öğreteceğinizi tanımlayın
  contextFields: ['urun', 'kategori', 'fiyat', 'fayda'],

  // Yapay zekanın öğreneceği veriler
  context: [
    { urun: 'Omega-3 Balık Yağı', kategori: 'Kalp Sağlığı', fiyat: '289 TL', fayda: 'Kalp, beyin ve eklem sağlığını destekler' },
    { urun: 'C Vitamini 1000mg', kategori: 'Bağışıklık', fiyat: '159 TL', fayda: 'Antioksidan etki, bağışıklık güçlendirir' },
    { urun: 'Magnezyum Kompleks', kategori: 'Sinir Sistemi', fiyat: '219 TL', fayda: 'Kas krampları ve uyku kalitesi için' }
  ],

  memoryLimit: 10,
  timeout: 15000
})

const cevap = await ai.send('Kalp hastasıyım, bana ne önerirsiniz?')
console.log(cevap)

Tek Satır Entegrasyon — onSend

HTML'inizde buton, input ve cevap alanı varsa tek satırda bağlayabilirsiniz:

<input id="userInput" type="text" placeholder="Mesajınızı yazın...">
<button id="sendBtn">Gönder</button>
<p id="cevap"></p>
ai.onSend('#sendBtn', '#userInput', '#cevap')

Bu tek satır şunları otomatik yapar:

  • Butona tıklanınca mesajı yapay zekaya gönderir
  • Enter tuşu da çalışır
  • Cevap gelene kadar "Yazıyor..." gösterir
  • Cevap gelince #cevap alanına yazar
  • Hata olursa hata mesajını gösterir

Opsiyonel Metodlar

// Konuşma geçmişini görüntüle
console.log(ai.getMemory())

// Konuşma geçmişini temizle — yeni konuşma başlatmak için
ai.clearMemory()

// Hata olursa otomatik tekrar dene (varsayılan 3 kez, 1 saniye arayla)
await ai.sendWithRetry('Merhaba!', 3)

Tüm Ayarlar

| Ayar | Zorunlu | Varsayılan | Açıklama | |------|---------|------------|----------| | provider | ✅ | — | claude / openai / gemini | | apiKey | ✅ | — | AI sağlayıcınızdan alınan key | | model | — | otomatik | Özel model adı | | memoryLimit | — | sınırsız | Kaç mesaj hatırlansın | | timeout | — | 30000ms | Zaman aşımı süresi | | systemPrompt | — | — | Yapay zekaya karakter tanımlama | | contextFields | — | — | Veri alan isimleri | | context | — | — | Yapay zekanın öğreneceği veriler |


Metodlar

| Metod | Açıklama | |-------|----------| | send(message) | Mesaj gönder, cevap al | | sendWithRetry(message, retries) | Hata olursa otomatik tekrar dene | | onSend(btnId, inputId, responseId) | Tek satır UI bağlama | | getMemory() | Konuşma geçmişini görüntüle | | clearMemory() | Konuşma geçmişini temizle |


AI Sağlayıcıları

| Sağlayıcı | Kod | Ücretsiz API | |-----------|-----|--------------| | Anthropic Claude | claude | console.anthropic.com | | OpenAI GPT | openai | platform.openai.com | | Google Gemini | gemini | aistudio.google.com |


Documentation / Dokümantasyon

📘 Complete guides available in 5 languages:

| Language | Download | |----------|----------| | 🇬🇧 English | jsvelox_guide_en.pdf | | 🇹🇷 Türkçe | jsvelox_guide_tr.pdf | | 🇩🇪 Deutsch | jsvelox_guide_de.pdf | | 🇪🇸 Español | jsvelox_guide_es.pdf | | 🇯🇵 日本語 | jsvelox_guide_ja.pdf |

GitHub

📦 github.com/yunus6141/jsvelox


jsvelox — Quagga 🦓 — MIT License — Made with ❤️ by Yunus Emre Sancak