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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@oagi/oagi

v0.1.4

Published

Official API of OpenAGI Foundation

Readme

OAGI TypeScript SDK

TypeScript SDK for the OAGI API - vision-based task automation.

What is OAGI?

OAGI is the TypeScript SDK for Lux, the world's most advanced computer-use model from the OpenAGI Foundation.

Computer Use is AI's ability to operate human-facing software — not just through APIs, but by operating computers natively, just as human users do. It's a paradigm shift in what AI can do: not just generating, reasoning, or researching, but actually operating on your computer.

Lux comes in three modes, giving you control over depth, speed, and style of execution:

  • Tasker — Strictly follows step-by-step instructions with ultra-stable, controllable execution
  • Actor — Ideal for immediate tasks, completing actions at near-instant speed
  • Thinker — Understands vague, complex goals, performing hour-long executions

Use Cases

With Lux, possibilities are endless. Here are a few examples:

  • Web Scraping & Data Crawl — Navigate websites, sort results, and collect product information autonomously
  • Software QA — Automate repetitive testing tasks, navigate applications, perform test actions, and validate expected behaviors
  • Financial Data Extraction — Navigate to sites like NASDAQ and extract insider activity data
  • Data Entry — Enter accurate data across dashboards and forms
  • Workflow Automation — Chain together multi-step tasks across different applications

Table of Contents

Installation

# If you are using Node.js
npm install @oagi/oagi
yarn add @oagi/oagi
pnpm add @oagi/oagi

# If you are using Deno
deno add npm:@oagi/oagi

# If you are using Bun
bun install @oagi/oagi

Quick Start

Set your API credentials:

export OAGI_API_KEY="your-api-key" # get your API key from https://developer.agiopen.org/
# export OAGI_BASE_URL="https://api.agiopen.org/", # optional, defaults to production endpoint

Automated Task Execution

Run tasks automatically with screenshot capture and action execution:

import { DefaultActionHandler, DefaultAgent, ScreenshotMaker } from '@oagi/oagi';

const agent = new DefaultAgent();
await agent.execute(
  'Search weather on Google',
  new DefaultActionHandler(),
  new ScreenshotMaker(),
);

Command Line Interface

Run agents directly from the terminal:

# Run with actor model
oagi agent run "Go to nasdaq.com, search for AAPL. Under More, go to Insider Activity" --model lux-actor-1

# Run with thinker mode (uses lux-thinker-1 model with more steps)
oagi agent run "Look up the store hours for the nearest Apple Store to zip code 23456 using the Apple Store Locator" --model lux-thinker-1

# Run pre-configured tasker workflows (no instruction needed)
oagi agent run --mode tasker:software_qa

# List all available modes
oagi agent modes

# Check macOS permissions (screen recording & accessibility)
oagi agent permission

# Export execution history
oagi agent run "Complete the form" --export html --export-file report.html

CLI options:

  • --mode: Agent mode (default: actor). Use oagi agent modes to list available modes
  • --model: Override the model (default: determined by mode)
  • --max-steps: Maximum steps (default: determined by mode)
  • --temperature: Sampling temperature (default: determined by mode)
  • --step-delay: Delay after each action before next screenshot (default: 0.3s)
  • --export: Export format (markdown, html, json)
  • --export-file: Output file path for export

Image Processing

Process and optimize images before sending to API:

import sharp from 'sharp';

const compressed = await sharp('large_screenshot.png')
  .resize(1260, 700, { fit: 'fill' })
  .jpeg({ quality: 85 })
  .toBuffer();

Manual Control with Actor

For step-by-step control over task execution:

import { Actor, DefaultActionHandler, ScreenshotMaker } from '@oagi/oagi';

const actor = new Actor();
actor.initTask('Complete the form');
const image_provider = new ScreenshotMaker();
const action_handler = new DefaultActionHandler();

for (let i = 0; i < 10; ++i) {
  const image = await image_provider.provide();
  const step = await actor.step(image);

  if (step.stop) break;

  await action_handler.handle(step.actions);
}

Documentation

For full Lux documentation and guides, visit the OAGI Developer Documentation.

License

MIT