JSPM

snowcell

1.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 9
  • Score
    100M100P100Q55700F
  • License MIT

Official Snowcell Node.js/TypeScript SDK

Package Exports

  • snowcell

Readme

Snowcell Node.js / TypeScript SDK

npm version Node

Official Node/TS client for Snowcell’s API. The official Node SDK for Snowcell Cloud.

Snowcell Node.js / TypeScript SDK

Installation

npm i snowcell

Quickstart

import { Snowcell } from "snowcell";

const client = new Snowcell({
  apiToken: process.env.SNOWCELL_API_TOKEN ?? "",
  timeoutMs: 300_000, // 5 minutes
});

const res = await client.chat.create({
  model: "qwen2.5:0.5b-instruct",
  messages: [{ role: "user", content: "Give me a one-sentence bedtime story about a cat." }],
  max_tokens: 50,
});

console.log(res.choices[0].message.content);