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

@scalix-world/sdk

v1.1.0

Published

Scalix SDK — unified client for the Scalix AI platform. Chat completions, research, RAG, document generation, text intelligence, audio TTS, image generation, and more.

Readme

Scalix SDK — TypeScript

One SDK, one API key. scalix.completions gives you full OpenAI-compatible chat (tools, vision, streaming). The rest of the SDK gives you Research, RAG, DocGen, Audio, Images, Text — services that only Scalix has.

Installation

npm install @scalix-world/sdk openai

Quick Start

import { Scalix } from '@scalix-world/sdk';

const scalix = new Scalix('sk_scalix_...');

// Chat completions — full OpenAI-compatible (tools, vision, streaming)
const response = await scalix.completions.create({
  model: 'scalix-world-ai',
  messages: [{ role: 'user', content: 'Hello!' }],
});

// Streaming
const stream = await scalix.completions.create({
  model: 'scalix-world-ai',
  messages: [{ role: 'user', content: 'Tell me a story' }],
  stream: true,
});
for await (const chunk of stream) {
  process.stdout.write(chunk.choices[0]?.delta?.content ?? '');
}

Platform Services

These are Scalix-only services — no other SDK can reach them.

Research — web search and deep research

const results = await scalix.research.search('quantum computing');
const report = await scalix.research.deep('AI trends 2026');
const answer = await scalix.research.research('What is GraphQL?');

Text — sentiment, summarization, translation, grammar, autocomplete

const sentiment = await scalix.text.sentiment('I love this product!');
const summary = await scalix.text.summarize(longArticle);
const translated = await scalix.text.translate('Hello', 'es');
const grammar = await scalix.text.grammar('Me and him goes to store');
const completion = await scalix.text.autocomplete('The quick brown');

Audio — transcription and text-to-speech

const transcript = await scalix.audio.transcribe(audioBlob);
const audio = await scalix.audio.speak('Hello world', { voice: 'af_heart' });
const voices = await scalix.audio.voices();
const languages = await scalix.audio.languages();

Images — generation with sync and async modes

const image = await scalix.images.generate('A sunset over mountains');
const job = await scalix.images.generateAsync('A detailed cityscape');
const status = await scalix.images.getJob(job.job_id);
const models = await scalix.images.models();

Document Generation — PDF, DOCX, CSV, XLSX

const doc = await scalix.docgen.create({ prompt: 'Q1 report', format: 'pdf' });
const history = await scalix.docgen.history();
const formats = await scalix.docgen.formats();
const templates = await scalix.docgen.templates();
await scalix.docgen.share(doc.doc_id, '[email protected]');

RAG — upload and query documents

const doc = await scalix.rag.upload(pdfBlob, { filename: 'report.pdf' });
const answer = await scalix.rag.query('revenue growth');
const docs = await scalix.rag.documents();
await scalix.rag.deleteDocument(docId);

Storage — presigned upload URLs

const { uploadUrl } = await scalix.storage.getUploadUrl('application/pdf');

Account — health, info, budget, usage

const health = await scalix.account.health();
const info = await scalix.account.info();     // email, plan
const budget = await scalix.account.budget(); // credits remaining
const usage = await scalix.account.usage();   // usage stats

Models — list available models

const models = await scalix.models.list();
// Each model includes: id, context_window, max_output_tokens, plan_required

Configuration

const scalix = new Scalix('sk_scalix_...', {
  baseURL: 'https://api.scalix.world', // default
  maxRetries: 2,                        // auto-retry with exponential backoff
  timeout: 60000,                       // request timeout in ms
});

Available Models

| Model | Description | Best For | |-------|-------------|----------| | scalix-world-ai | Default model — fast, balanced | General use, chat, quick tasks | | scalix-world-advanced | Most capable — deep reasoning | Complex analysis, coding, agents |

Plus 12 more models — run scalix.models.list() to see all available for your plan.

Error Handling

import { Scalix, ScalixError, AuthenticationError, RateLimitError } from '@scalix-world/sdk';

try {
  await scalix.research.search('...');
} catch (error) {
  if (error instanceof AuthenticationError) {
    console.error('Invalid API key');
  } else if (error instanceof RateLimitError) {
    console.error('Rate limited — SDK retries automatically');
  } else if (error instanceof ScalixError) {
    console.error('API error:', error.message);
  }
}

License

MIT — see LICENSE for details.