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

gitnix

v1.1.1

Published

Use GitHub repos as an encrypted, high-performance database

Downloads

359

Readme

Gitnix

Turn any GitHub repository into a fast, encrypted, zero-knowledge database.

npm License: MIT

Gitnix is a JavaScript/TypeScript SDK that uses GitHub repos as a database backend. All data is end-to-end encrypted client-side — GitHub never sees your plaintext data.

Install

npm install gitnix

Quick Start

import { Gitnix } from 'gitnix';

const db = new Gitnix({
  repo: 'your-username/my-database',
  token: process.env.GITHUB_TOKEN,
  password: 'my-secret-encryption-key',
});

await db.connect();

const users = db.collection('users');

// Insert
await users.insert({ name: 'Alice', age: 30, email: '[email protected]' });

// Query (MongoDB-style)
const adults = await users.find({ age: { $gte: 18 } }, { sort: { age: -1 } });

// Update
await users.update({ name: 'Alice' }, { $set: { age: 31 } });

// Delete
await users.delete({ name: 'Alice' });

// Sync encrypted data to GitHub
await db.sync();

await db.disconnect();

Features

  • Zero-Knowledge Encryption — XSalsa20-Poly1305 + Argon2id key derivation
  • MongoDB-Style Queries$eq, $gt, $in, $or, $regex, $contains, and more
  • Sub-millisecond Operations — Local-first with encrypted disk cache
  • GitHub Sync — On-demand push/pull to GitHub (encrypted blobs only)
  • Binary/Image Storage — Chunked upload/download with MIME detection
  • Transactions — Optimistic locking with conflict detection
  • Schema Validation — Optional type checking and constraints
  • Rate Limit Aware — Built-in rate limiter with queue and backpressure
  • TypeScript First — Full type definitions included

Performance

| Operation | Avg Latency | Throughput | |-----------|-------------|-----------| | Create record | 1.2ms | 813 req/s | | Read single | 0.98ms | 1,021 req/s | | List all (50 docs) | 1.0ms | 995 req/s | | Filtered query | 0.65ms | 1,531 req/s | | Update record | 1.0ms | 1,000 req/s | | Delete (+ cascade) | 0.66ms | 1,526 req/s | | Push to GitHub | ~3.0s | 6 API calls | | Pull from GitHub | ~1.2s | 3 API calls |

Security

| Property | Implementation | |----------|---------------| | Algorithm | XSalsa20-Poly1305 (256-bit key) | | Key derivation | Argon2id (memory-hard, GPU-resistant) | | Per-record nonces | Random 24-byte nonce per encryption | | Filename obfuscation | SHA-256 hashed names | | Zero plaintext | GitHub only receives encrypted blobs |

Security audit: A+ (49/49 tests passed across 11 categories)

Who Should Use This?

✅ Solo developers, side projects, MVPs, hackathons, privacy-focused apps, students, note-taking apps, config management, small teams (< 10), IoT/edge devices.

❌ Not for: high-traffic production (1000+ concurrent users), real-time apps, complex SQL joins, high-frequency writes (100+/sec), or data > 100GB.

GitHub Rate Limits

| Pattern | API Calls/hr | Works? | |---------|-------------|--------| | Sync every 5 min | 72 | ✅ (1.4% of budget) | | Sync every 1 min | 360 | ✅ (7%) | | 100 users (cached reads) | 0 | ✅ | | Real-time sync (every sec) | 21,600 | ❌ |

Recommended: Write locally (sub-ms), sync to GitHub periodically.

Query Operators

// Comparison
{ age: { $gt: 18 } }
{ status: { $in: ['active', 'pending'] } }
{ score: { $gte: 90, $lte: 100 } }

// Logical
{ $or: [{ city: 'NYC' }, { city: 'LA' }] }
{ $and: [{ age: { $gte: 18 } }, { verified: true }] }

// String
{ name: { $contains: 'alice' } }
{ email: { $regex: '^admin@' } }

// Options
await users.find(query, {
  sort: { age: -1 },
  skip: 0,
  limit: 20,
  fields: ['name', 'email'],
});

Also Available

  • Python SDK: pip install gitnixPyPI
  • Full Example App: Event registration platform with admin panel, auth, and 45 E2E tests

Links

License

MIT — Quilonix