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

@simo-online/sdk

v3.0.0

Published

Official TypeScript / JavaScript SDK for the SIMOSphere AI API — OpenAI-compatible chat/completions plus tenant admin (keys, usage, credits, files). Sovereign EU-hosted LLMs.

Readme

@simo-online/sdk — SIMOSphere AI TypeScript SDK

Official TypeScript / JavaScript client for the SIMOSphere AI gateway.

  • OpenAI-compatible chat.completions (sync + streaming)
  • Tenant admin: API keys, usage, credits, files
  • Zero runtime dependencies — uses native fetch (Node 18.17+ / modern browsers)
  • Typed end-to-end against the published OpenAPI 3.1 spec

Install

npm install @simo-online/sdk
# or
pnpm add @simo-online/sdk
# or
yarn add @simo-online/sdk

Quickstart

import { SimoClient } from '@simo-online/sdk';

const simo = new SimoClient({ apiKey: process.env.SIMO_API_KEY! });

// 1. Chat completion (OpenAI-compatible)
const chat = await simo.chat.completions.create({
  model: 'apertus-8b-eu',
  messages: [
    { role: 'system', content: 'Du bist ein hilfreicher Assistent.' },
    { role: 'user', content: 'Was ist Datensouveraenitaet?' },
  ],
});
console.log(chat.choices[0].message.content);

// 2. Streaming
for await (const chunk of simo.chat.completions.createStream({
  model: 'apertus-8b-eu',
  messages: [{ role: 'user', content: 'Schreibe ein Haiku ueber Souveraenitaet.' }],
})) {
  process.stdout.write(chunk.choices[0]?.delta?.content ?? '');
}

// 3. List models
const models = await simo.models.list();
console.log(models.data.map((m) => m.id));

// 4. Manage API keys
const key = await simo.keys.create({ name: 'ci-pipeline', scopes: ['chat:write'] });
console.log('New key (shown once):', key.token);

// 5. Check credit balance
const credit = await simo.credits.balance();
console.log(`Balance: ${credit.balance_eur} EUR`);

// 6. Usage summary
const usage = await simo.usage.summary({ from: '2026-05-01', to: '2026-05-31' });
console.log(`${usage.total_requests} requests · ${usage.total_input_tokens + usage.total_output_tokens} tokens`);

Configuration

| Option | Default | Notes | | ---------------- | ------------------------------------ | ---------------------------------------------- | | apiKey | (required) | Issued via dashboard or simo keys create | | baseUrl | https://api.simosphereai.com | Use sandbox.api.simosphereai.com for testing | | timeoutMs | 60000 | Per-request timeout | | fetch | globalThis.fetch | Pass undici or node-fetch if needed | | defaultHeaders | {} | Merged into every request |

Error handling

import { SimoClient, SimoApiError } from '@simo-online/sdk';

try {
  await simo.chat.completions.create({ model: 'x', messages: [] });
} catch (err) {
  if (err instanceof SimoApiError) {
    console.error(err.status, err.body?.error?.type, err.body?.error?.message);
    console.error('Request ID for support:', err.requestId);
  } else {
    throw err;
  }
}

Idempotency

Pass idempotencyKey on any mutating call to dedupe retries server-side:

await simo.keys.create(
  { name: 'webhook-2026-05-25' },
  { idempotencyKey: 'create-webhook-key-once' },
);

Cancellation

const controller = new AbortController();
setTimeout(() => controller.abort(), 5000);

await simo.chat.completions.create(
  { model: 'apertus-8b-eu', messages: [{ role: 'user', content: '...' }] },
  { signal: controller.signal },
);

OpenAI SDK migration

- import OpenAI from 'openai';
- const client = new OpenAI({ apiKey: process.env.OPENAI_API_KEY });
+ import { SimoClient } from '@simo-online/sdk';
+ const client = new SimoClient({ apiKey: process.env.SIMO_API_KEY });

  const chat = await client.chat.completions.create({
-   model: 'gpt-4o-mini',
+   model: 'apertus-8b-eu',
    messages: [{ role: 'user', content: 'Hello' }],
  });

Versioning & stability

  • Follows Semantic Versioning.
  • Tracks the gateway's published 2026-05-18 API contract; method names mirror the OpenAI SDK so familiar code ports cleanly.
  • SIMOSphere (capital) is a back-compat alias for the 0.0.x preview SDK and will be removed in 0.3.0.

Links

License

Business Source License 1.1 — see LICENSE.

Engineered at SIMO GmbH · Aschaffenburg, Germany.