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

@rivtor/sdk

v1.1.0

Published

The Operating System for SaaS - Unified Rivtor SDK

Readme

@rivtor/sdk

The Operating System for SaaS

The unified Rivtor SDK that consolidates all core modules into a single package for maximum developer productivity.

Installation

npm install @rivtor/sdk

Environment Variables

NEXT_PUBLIC_VOCO_URL=https://your-app.rivtor.com
VOCO_API_KEY=voco_sk_...
NEXT_PUBLIC_SUPABASE_URL=https://xxx.supabase.co
NEXT_PUBLIC_SUPABASE_ANON_KEY=eyJ...
SUPABASE_SERVICE_ROLE_KEY=eyJ...
NEXT_PUBLIC_STRIPE_KEY=pk_live_...

Quick Start

1. Wrap Your App

// app/layout.tsx
import { VocoProvider } from '@rivtor/sdk/react';

export default function RootLayout({ children }) {
  return (
    <html>
      <body>
        <VocoProvider>{children}</VocoProvider>
      </body>
    </html>
  );
}

2. Add Middleware

// middleware.ts
import { vocoMiddleware } from '@rivtor/sdk/middleware';

export default vocoMiddleware;

export const config = {
  matcher: ['/((?!_next/static|_next/image|favicon.ico).*)'],
};

3. Use the SDK

import { useVocoAuth, useVocoTenant, VocoGate } from '@rivtor/sdk/react';
import { voco } from '@rivtor/sdk/server';

// Client-side
function Dashboard() {
  const { user, logout } = useVocoAuth();
  const { currentOrg } = useVocoTenant();

  return (
    <VocoGate feature="analytics">
      <AnalyticsDashboard />
    </VocoGate>
  );
}

// Server-side (with automatic tenant isolation)
async function getData() {
  const data = await voco.db.from('projects').select('*');
  return data; // Automatically filtered by tenant_id
}

Included Modules

Core Modules

| Module | Purpose | |--------|---------| | @rivtor/kernel | Auth, Billing, Legal, Compliance | | @rivtor/tenant | Multi-tenancy & RBAC | | @rivtor/features | Feature gating & Entitlements | | @rivtor/meter | Usage tracking & Limits | | @rivtor/notify | Notifications (email, in-app, push) | | @rivtor/admin | Super admin panel |

Security & Compliance

| Module | Purpose | |--------|---------| | @rivtor/a11y-guard | WCAG 2.1 AA accessibility with ESLint plugin | | @rivtor/erasure | GDPR Right to be Forgotten with retention engine | | @rivtor/portability | GDPR Data Portability with schema discovery | | @rivtor/residency | Schrems II data sovereignty with Cloudflare Workers | | @rivtor/consent | GDPR cookie consent with GeoIP detection | | @rivtor/invoice | EU VAT invoice generator with PDF rendering |

Developer Experience

| Module | Purpose | |--------|---------| | @rivtor/codegen | TypeScript schema generator with watch mode | | @rivtor/local | Offline development with SQLite adapter | | @rivtor/errors | Error dictionary with i18n support |

Growth

| Module | Purpose | |--------|---------| | @rivtor/viral | Referral system with fraud detection |

Components

Identity

  • <VocoSignIn /> - Complete login card
  • <VocoUserButton /> - Avatar dropdown

Tenant

  • <VocoOrgSwitcher /> - Team switcher
  • <VocoInviteForm /> - Member invite form

Billing

  • <VocoPricingTable /> - Stripe pricing columns
  • <VocoBillingPortalButton /> - Stripe portal button

Compliance

  • <VocoFooterLinks /> - Privacy, Terms, DPA links
  • <VocoGate /> - Feature gate wrapper

Hooks

useVocoAuth()    // { user, login, logout, isLoading }
useVocoTenant()  // { currentOrg, switchOrg, members }
useVocoGate(f)   // { isEnabled, upgradeUrl }
useVocoNotify()  // { notifications, markRead }

Server API

import { voco } from '@rivtor/sdk/server';

// Safe database (auto tenant isolation)
await voco.db.from('table').select('*');

// Auth
await voco.auth.requireUser(request);

// Features
await voco.features.requireFeature(userId, 'analytics');

// Meter
await voco.meter.checkLimit(userId, 'api_calls');

License

MIT © Rivtor