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

usfbios

v1.0.2

Published

Official TypeScript SDK for the USF BIOS fine-tuning platform API

Readme

usfbios

Official TypeScript/Node.js SDK for the USF BIOS fine-tuning platform API.

Installation

npm install usfbios

Quick Start

import { USFBios } from 'usfbios';

const client = new USFBios({
  apiKey: 'sk_live_...',
});

// Search for models
const models = await client.models.search({ query: 'llama', type: 'llm' });
console.log(`Found ${models.total} models`);

// Create a training job
const job = await client.training.create({
  model: 'meta-llama/Llama-3.1-8B-Instruct',
  datasetId: 'ds_abc123',
  method: 'sft',
  adapter: 'lora',
  epochs: 3,
  learningRate: 2e-4,
  loraRank: 16,
  gpuType: 'A100_80GB',
});
console.log(`Job ${job.id} created`);

Authentication

API Key (recommended)

const client = new USFBios({
  apiKey: 'sk_live_...',
});

JWT Access Token

const client = new USFBios({
  accessToken: 'eyJhbG...',
  orgId: 'org_abc123',
});

Resources

Models

// Search models
const results = await client.models.search({ query: 'llama', limit: 10 });

// Get model config
const config = await client.models.getConfig('meta-llama/Llama-3.1-8B');

// Check adapter compatibility
const compat = await client.models.getAdapterCompatibility({
  modelType: 'llama',
  trainingMethod: 'sft',
});

Datasets

// List datasets
const datasets = await client.datasets.list();

// Upload a dataset
const uploaded = await client.datasets.upload({
  filePath: './data.jsonl',
  name: 'My Dataset',
});

// Preview rows
const preview = await client.datasets.preview('ds_abc123', { pageSize: 5 });

// Import from HuggingFace
const imported = await client.datasets.importFromHuggingFace({
  repoId: 'databricks/dolly-15k',
  integrationId: 'int_abc123',
  name: 'Dolly 15k',
});

// Validate before upload
const validation = await client.datasets.validate('./data.jsonl');

Training

// Create a job
const job = await client.training.create({
  model: 'meta-llama/Llama-3.1-8B-Instruct',
  datasetId: 'ds_abc123',
  method: 'sft',
  adapter: 'lora',
});

// List jobs
const jobs = await client.training.list({ status: 'running' });

// Get metrics
const metrics = await client.training.getMetrics('job_abc123');

// Get checkpoints
const checkpoints = await client.training.getCheckpoints('job_abc123');

// Stop / Resume
await client.training.stop('job_abc123');
await client.training.resume('job_abc123');

Wallet

// Get balance
const balance = await client.wallet.getBalance();
console.log(`$${(balance.balance_cents / 100).toFixed(2)}`);

// Transaction history
const txns = await client.wallet.getTransactions({ limit: 20 });

GPU

// Get pricing
const pricing = await client.gpu.getPricing();

// Get recommendation for a model
const rec = await client.gpu.getRecommended('meta-llama/Llama-3.1-8B');

Key Introspection

const info = await client.introspect();
console.log(`Org: ${info.org.name}`);
console.log(`Scopes: ${info.scopes.join(', ')}`);

Error Handling

import { USFBios, ApiError } from 'usfbios';

try {
  await client.training.get('bad_id');
} catch (err) {
  if (err instanceof ApiError) {
    console.log(`Status: ${err.status}`);
    console.log(`Message: ${err.message}`);
    console.log(`Code: ${err.code}`);
  }
}

Configuration

| Option | Default | Description | |--------|---------|-------------| | apiKey | — | API key (sk_live_...) | | accessToken | — | JWT access token | | orgId | — | Organization ID (auto-resolved with API keys) | | workspaceId | — | Workspace ID (auto-resolved with API keys) | | baseUrl | https://api-bios.us.inc | API base URL | | timeout | 30000 | Request timeout in ms |

Requirements

  • Node.js >= 18.0.0
  • ESM modules

License

MIT