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

ultralightpro-sdk

v0.2.1

Published

TypeScript SDK for Ultralight - Serverless app platform with AI integration

Readme

ultralightpro-sdk

TypeScript SDK for the Ultralight platform.

Installation

npm install ultralightpro-sdk

Or with Deno:

import { Ultralight } from 'https://ultralight.dev/sdk/mod.ts';

Quick Start

import { Ultralight } from 'ultralightpro-sdk';

const ul = new Ultralight({
  token: process.env.ULTRALIGHT_TOKEN
});

// List your apps
const { apps } = await ul.apps.list();
console.log(apps);

// Create an app
const app = await ul.apps.create({
  name: 'My Weather App',
  files: [{
    path: 'index.ts',
    content: `
      export function getWeather(city: string) {
        return { city, temp: 72, conditions: "Sunny" };
      }
    `
  }]
});

// Run a function
const result = await ul.run(app.app_id, 'getWeather', { city: 'NYC' });
console.log(result); // { city: 'NYC', temp: 72, conditions: 'Sunny' }

API Reference

Ultralight

Main client class.

const ul = new Ultralight({
  token: 'your-token',      // Required: JWT or API key
  apiUrl: 'https://...',    // Optional: Custom API URL
});

Apps

// List apps
const { apps, total } = await ul.apps.list({
  visibility: 'all',        // 'all' | 'public' | 'private' | 'unlisted'
  limit: 50,
  offset: 0,
  includeDrafts: true
});

// Get app details
const app = await ul.apps.get('app-id', {
  includeCode: true,
  includeSkills: true
});

// Create app
const newApp = await ul.apps.create({
  name: 'My App',
  slug: 'my-app',
  description: 'Does cool stuff',
  visibility: 'private',
  files: [
    { path: 'index.ts', content: '...' }
  ],
  autoGenerateDocs: true
});

// Update app
await ul.apps.update('app-id', {
  name: 'New Name',
  description: 'New description',
  visibility: 'public',
  tags: ['utility', 'api']
});

// Delete app
await ul.apps.delete('app-id');

// Search apps
const { results } = await ul.apps.search('weather api');

Drafts

// Upload a draft
await ul.drafts.upload('app-id', {
  files: [{ path: 'index.ts', content: '...' }]
});

// Get draft status
const draft = await ul.drafts.get('app-id', { includeDiff: true });

// Publish draft
await ul.drafts.publish('app-id', {
  regenerateDocs: true,
  versionBump: 'minor'  // 'patch' | 'minor' | 'major'
});

// Discard draft
await ul.drafts.discard('app-id');

Documentation

// Generate docs from code
await ul.docs.generate('app-id', { aiEnhance: false });

// Get docs
const docs = await ul.docs.get('app-id', 'markdown'); // 'markdown' | 'json' | 'mcp'

// Update docs
await ul.docs.update('app-id', '# Skills.md content...');

Execution

// Run a function
const result = await ul.run('app-id', 'functionName', { arg: 'value' }, {
  useDraft: false
});

Discovery

// Semantic search for apps
const results = await ul.discover('send emails', {
  limit: 10,
  includePrivate: true,
  minSimilarity: 0.5
});

MCP Client

// Create MCP client for an app
const mcp = ul.mcp('app-id');

// List available tools
const tools = await mcp.listTools();

// Call a tool
const output = await mcp.callTool('functionName', { arg: 'value' });

Error Handling

import { Ultralight, UltralightError } from 'ultralightpro-sdk';

try {
  await ul.run('app-id', 'someFunction');
} catch (err) {
  if (err instanceof UltralightError) {
    console.error(`Error ${err.code}: ${err.message}`);
  }
}

License

MIT