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

@ogi-sdk/nimbus

v0.1.0

Published

Typed client for the nimbus cloud save server

Readme

@ogi-sdk/nimbus

Typed client for a nimbus cloud save server. Route types are generated from the server's Elysia app, so a protocol change fails to compile here rather than at runtime in an addon.

bun add @ogi-sdk/nimbus effect

Sessions

import { Effect } from 'effect'
import { NimbusClient, SaveCipher } from '@ogi-sdk/nimbus'

const nimbus = new NimbusClient({ baseUrl: 'https://nimbus.example.com' })

// login and signup solve the proof-of-work challenge for you
const session = yield* nimbus.login({ username, password, deviceName: 'Desktop' })
const client = nimbus.withSession(session)
const cipher = new SaveCipher(session.encryptionKey)

Persist deviceToken, deviceId, and encryptionKey. The token is revocable from any device; the key never leaves this one.

Syncing

pushSnapshot encrypts every file, sends the manifest, uploads only the blobs the server lacks, and commits. pullSnapshot does the reverse and verifies every plaintext hash.

import { pullSnapshot, pushSnapshot } from '@ogi-sdk/nimbus'

const key = { storefront: 'steam', appId: '413150' }
const layouts = yield* client.bindings(key, { os: 'windows', env: 'goldberg' })
// resolve each layout's root on this machine, glob its files, then:

const version = yield* pushSnapshot(client, cipher, key, files, { baseVersion: lastSyncedVersion })

const { head, files } = yield* pullSnapshot(client, cipher, key, {
  skip: (file) => localPlaintextHashes.get(file.path) === file.plaintextHash,
})

Paths in files are relative to the layout root and must sit inside one of the app's layouts, or the manifest is rejected.

Errors

Every call fails with a tagged error, so Effect.catchTag works:

| Error | When | | --- | --- | | VersionConflictError | Server head moved past baseVersion. Pull, merge, push again or pass force. | | QuotaExceededError | App or account byte limit hit. Nothing was written. | | NoSaveDataError | saveInfo / pullSnapshot for an app this account never synced. | | UnauthorizedError | Missing or revoked device token. | | IntegrityError | Downloaded bytes did not hash to the manifest. | | CryptoError | Decrypt failed: wrong key or tampered blob. | | NetworkError | fetch itself failed. | | RequestError | Any other non-2xx, with the raw body. |

Lower level

manifest, putBlob, getBlob, commit, saveInfo, listSaves, listDevices, deleteDevice, appDetails, storefronts, and solveChallenge are all exposed on NimbusClient if the snapshot helpers do not fit.