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 🙏

© 2024 – Pkg Stats / Ryan Hefner

rache.data

v1.0.1

Published

Fast, secure and easy-to-use JSON database for Node.js

Downloads

474

Readme

RacheDB

RacheDB, Node.js için geliştirilmiş hızlı, güvenli ve kullanımı kolay bir JSON tabanlı veritabanıdır.

🚀 Özellikler

  • 📦 JSON tabanlı veri depolama
  • 🔍 Güçlü sorgu sistemi
  • 💾 Otomatik cache yönetimi
  • ⏱️ TTL (Time To Live) desteği
  • 🔒 Veri şifreleme (AES-256-GCM)
  • 📄 Veri sıkıştırma (GZIP)
  • 🚄 Bulk operasyonlar
  • 📊 Detaylı istatistikler
  • 🔄 Event sistemi

📥 Kurulum

npm install rache.data

🎯 Hızlı Başlangıç

const RacheDB = require('rache.data');
// Veritabanı oluşturma
const db = await RacheDB.initialize({
name: 'mydb',
folder: 'data',
cache: true
});
// Veri ekleme
await db.set('users', 'user1', {
name: 'John Doe',
age: 30
});
// Veri okuma
const user = await db.get('users', 'user1');
// Veri silme
await db.delete('users', 'user1');

📚 Detaylı Kullanım

Güvenli Veritabanı Oluşturma

const db = await RacheDB.initialize({
name: 'securedb',
folder: 'data',
compression: true,
encryption: true,
encryptionKey: 'your-32-character-secret-key-here'
});

Sorgu İşlemleri

// Basit sorgu
const youngUsers = await db.find('users', { age: { $lt: 30 } });
// Sıralama ve limit
const topUsers = await db.find('users', {}, {
sort: { score: 'desc' },
limit: 10
});

Bulk İşlemler

// Çoklu veri ekleme
const users = {
'user1': { name: 'John', age: 30 },
'user2': { name: 'Jane', age: 25 }
};
await db.bulkSet('users', users);
// Çoklu veri okuma
const keys = ['user1', 'user2'];
const retrievedUsers = await db.bulkGet('users', keys);

TTL (Otomatik Silme)

// 1 saat sonra silinecek veri
await db.set('sessions', 'token123', {
userId: 'user1'
}, { ttl: 3600 });

📊 İstatistikler

const stats = await db.getStats();
console.log(stats);

🔄 Events

db.on('set', (data) => {
console.log('Veri eklendi:', data);
});
db.on('delete', (data) => {
console.log('Veri silindi:', data);
});

⚙️ Konfigürasyon Seçenekleri

| Seçenek | Tip | Varsayılan | Açıklama | |---------|-----|------------|-----------| | name | string | 'db' | Veritabanı adı | | folder | string | 'data' | Veri klasörü | | cache | boolean | true | Cache aktif/pasif | | compression | boolean | false | Sıkıştırma | | encryption | boolean | false | Şifreleme | | debug | boolean | false | Debug modu | | autoSave | boolean | true | Otomatik kayıt |

🔒 Güvenlik

  • AES-256-GCM şifreleme
  • Güvenli anahtar yönetimi
  • GZIP sıkıştırma
  • Atomic dosya işlemleri

🎯 Performans

  • Hızlı cache sistemi
  • Bulk operasyonlar
  • Optimize edilmiş dosya I/O
  • Bellek yönetimi

📝 Lisans

MIT

🤝 Katkıda Bulunma

  1. Fork edin
  2. Feature branch oluşturun (git checkout -b feature/amazing)
  3. Commit edin (git commit -m 'Add amazing feature')
  4. Push edin (git push origin feature/amazing)
  5. Pull Request açın

📞 İletişim

🙏 Teşekkürler

Bu projeye katkıda bulunan herkese teşekkürler!