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

@geenius/adapters

v0.16.0

Published

Adapter contracts, local-first prototype adapters, framework bindings, and Convex schema helpers for the Geenius ecosystem.

Downloads

1,542

Readme

@geenius/adapters

Adapter contracts, local-first prototype adapters, framework bindings, and Convex schema helpers for the Geenius ecosystem.

Install

pnpm add @geenius/adapters

Add the peers you actually use:

  • react and react-dom for @geenius/adapters/react or @geenius/adapters/react-css
  • solid-js for @geenius/adapters/solidjs or @geenius/adapters/solidjs-css
  • convex for @geenius/adapters/convex

Available Exports

import { configureAdapters, createLocalStorageDbAdapter } from '@geenius/adapters'
import { AdapterProvider, useAdapters, useDb } from '@geenius/adapters/react'
import { AdapterProvider as SolidProvider, createAdapters } from '@geenius/adapters/solidjs'
import { AdapterProvider as CssProvider } from '@geenius/adapters/react-css'
import { AdapterProvider as SolidCssProvider } from '@geenius/adapters/solidjs-css'
import { createConvexAdapter, schema } from '@geenius/adapters/convex'

What This Package Owns

@geenius/adapters is the contract layer for six infrastructure domains:

  • db
  • auth
  • payments
  • ai
  • storage
  • admin

It ships:

  • shared TypeScript interfaces and typed error classes
  • a provider registry and tier-gating helpers
  • localStorage-backed prototype adapters for rapid setup
  • React hooks/providers and SolidJS primitives/providers
  • Tailwind and vanilla CSS UI variants
  • Convex schema and mutation/query helpers for adapter registry storage

Production provider implementations live in the domain packages such as @geenius/db, @geenius/auth, @geenius/payments, and @geenius/ai.

Basic Usage

import {
  configureAdapters,
  createLocalStorageAuthAdapter,
  createLocalStorageDbAdapter,
} from '@geenius/adapters'

configureAdapters({
  db: { provider: 'localStorage' },
  auth: { provider: 'localStorage' },
})

export const adapters = {
  db: createLocalStorageDbAdapter(),
  auth: createLocalStorageAuthAdapter(),
}
import { AdapterProvider, useDb } from '@geenius/adapters/react'
import { adapters } from './adapters'

function Dashboard() {
  const db = useDb()

  void db.list('users')

  return null
}

export function App() {
  return (
    <AdapterProvider adapters={adapters} healthCheck>
      <Dashboard />
    </AdapterProvider>
  )
}

Local Prototype Adapters

The shared entrypoint exposes prototype factories for every supported domain:

import {
  createLocalStorageAdminAdapter,
  createLocalStorageAiAdapter,
  createLocalStorageAuthAdapter,
  createLocalStorageDbAdapter,
  createLocalStorageFileAdapter,
  createLocalStoragePaymentsAdapter,
  createNoopPaymentsAdapter,
} from '@geenius/adapters'

These factories are intended for local development, Storybook review, and Pronto-tier bootstrapping. Swapping to a production provider should not change the consuming component API.

Errors

Adapter failures are surfaced as typed error classes:

  • AdapterError
  • DbError
  • AuthError
  • AiError
  • StorageError
  • PaymentsError
  • AdminError
  • AdapterConfigurationError
  • AdapterResolutionError
  • AdapterContextError
  • AdapterInvariantError

Consumers should catch these exported classes instead of vendor-specific exceptions.

Storybook Review Apps

The repository includes React and SolidJS review apps that exercise both the Tailwind and vanilla CSS variants:

pnpm --filter ./apps/storybook-react build
pnpm --filter ./apps/storybook-solidjs build

License

FSL-1.1-Apache-2.0 (free-tier) / Proprietary (commercial)