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

@idosgames/core

v0.8.0

Published

Engine-agnostic core of the IDosGames SDK (transport, auth, cache, services, events).

Readme

@idosgames/core

Engine-agnostic core of the IDosGames SDK — HTTP transport, authentication, local cache, 24 feature services, and a typed event bus. It knows nothing about any rendering engine (Three.js, Phaser, React…), so it works in any browser or JS runtime.

  • Typed end to end. Every backend response is validated at runtime with zod before it reaches your code; the published type declarations are flat and lightweight.
  • No exceptions on expected failures. Service calls return a discriminated OperationResult<T> ({ ok: true, data } or { ok: false, reason, error }).
  • One client owns the whole graph. Create it once; reach every service and the local cache from it.

Install

npm install @idosgames/core

Peer runtime deps (zod, decimal.js) are installed automatically.

Quick start

import { createIDosGamesClient, isOk } from "@idosgames/core";
import { BrowserPlatformAdapter } from "@idosgames/core/platform";

const client = createIDosGamesClient({
  titleID: "YOUR_TITLE_ID",
  platform: new BrowserPlatformAdapter(), // storage + platform integration
});

// Authenticate (device id, Telegram, email, Google, or a platform token).
const login = await client.auth.loginWithDeviceID();
if (!isOk(login)) {
  console.error("login failed:", login.reason, login.error);
}

// Call any service — results are discriminated, never thrown.
const res = await client.currency.convert(
  "Virtual",
  "GOLD",
  "Virtual",
  "GEM",
  100,
);
if (isOk(res)) {
  console.log("credited:", res.data.TargetCredited);
}

// Read the local cache and react to changes via the typed event bus.
const off = client.on("currency:converted", (payload) => {
  console.log("balances updated", payload);
});
// later: off();

What's on the client

client.auth, user, currency, item, store, lootbox, reward, quest, timedEvent, leaderboard, season, premium, character, match, craft, collection, coopEvent, dealOffer, referral, social, timedBoost, userCustomData, title, gameLoop — plus client.data (local cache) and client.on/once/off (events).

Entry points

| Import | What | | -------------------------- | ---------------------------------------------------------------------------------------------------------------- | | @idosgames/core | client, services, models, result & event types | | @idosgames/core/platform | platform adapters & storage (BrowserPlatformAdapter, NoopPlatformAdapter, BrowserStorage, MemoryStorage) |

Versioning

Semantic versioning. While on 0.x the public API is still stabilizing, so breaking changes may land in a minor bump — see CHANGELOG.md. The backend HTTP API version (/api/v2/…) is independent of this package's version.

License

MIT © iDos Games