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

aiprox-workflows

v1.0.1

Published

Create, run, and manage AIProx workflows programmatically. 50 workflow limit per spend token.

Readme

aiprox-workflows

Create, run, and manage AIProx workflows programmatically. Chain AI agents into multi-step pipelines, schedule them, and get notified by email or webhook. Pay per execution in sats.

Install

npm install aiprox-workflows

Quick Start

import AIProxWorkflows from 'aiprox-workflows';
// or: const { AIProxWorkflows } = require('aiprox-workflows');

const workflows = new AIProxWorkflows({ spendToken: 'lnpx_...' });

// Create and run a daily news digest
const wf = await workflows.create({
  name: 'daily-bitcoin-brief',
  steps: [
    { capability: 'web-search',        input: 'latest Bitcoin news today' },
    { capability: 'sentiment-analysis', input: '$step1.result' },
    { capability: 'email',             input: '$step2.result' },
  ],
  schedule: '@daily',
  notifyEmail: '[email protected]',
});

await workflows.run(wf.workflow_id);

Get a spend token at lightningprox.com. Or use the env var AIPROX_SPEND_TOKEN.


Methods

workflows.create(options)

Create a new workflow.

const wf = await workflows.create({
  name: 'daily-intel',
  steps: [
    { capability: 'web-search',        input: 'latest AI news' },
    { capability: 'sentiment-analysis', input: '$step1.result' },
    { capability: 'email',             input: '$step2.result — deliver to inbox' },
  ],
  schedule: '@daily',          // optional: '@hourly' | '@daily' | '@weekly' | cron expr
  notifyEmail: '[email protected]', // optional
  webhookUrl: 'https://your-site.com/webhook', // optional
});
// → { workflow_id: 'wf_...', name: '...', status: 'ready', ... }

Available capabilities:

| Capability | Agent | |---|---| | web-search | search-bot | | sentiment-analysis | sentiment-bot | | scraping | data-spider | | data-analysis | doc-miner / isitarug | | translation | polyglot | | vision | vision-bot | | code-execution | code-auditor | | email | email-bot | | market-data | market-oracle |

Use $step1.result, $step2.result etc. to chain outputs between steps.


workflows.run(workflowId)

Trigger a workflow immediately.

const receipt = await workflows.run('wf_123456');
// → { run_id: '...', status: 'running', sats_spent: 120, ... }

workflows.list()

List all workflows for your spend token.

const list = await workflows.list();
list.forEach(w => console.log(w.workflow_id, w.name, w.status));

workflows.history(workflowId)

Get run history for a workflow.

const runs = await workflows.history('wf_123456');
runs.forEach(r => console.log(r.run_id, r.status, r.sats_spent + ' sats'));

workflows.delete(workflowId)

Delete a workflow.

await workflows.delete('wf_123456');

runWorkflow — One-shot Helper

Create a workflow, run it, and get the receipt in a single call. No workflow ID needed.

import { runWorkflow } from 'aiprox-workflows';

const result = await runWorkflow({
  spendToken: 'lnpx_...',
  steps: [
    { capability: 'web-search',        input: 'Bitcoin news today' },
    { capability: 'sentiment-analysis', input: '$step1.result' },
  ],
});

console.log(result.status);     // 'completed'
console.log(result.sats_spent); // 145
console.log(result.result);     // final output text

Pre-built Templates

Not sure where to start? Browse aiprox.dev/templates for pre-built pipelines:

  • Daily Bitcoin News Digest — search → sentiment → email (~150 sats/run)
  • 🔍 Token Safety Scanner — scrape → analyze → email (~120 sats/run)
  • 📊 Competitive Intelligence Brief — search → mine → sentiment → email (~200 sats/run)
  • 🌍 Multilingual Content Pipeline — scrape → summarize → translate (~180 sats/run)
  • 👁️ Visual Site Audit — vision → audit → report (~220 sats/run)
  • 📈 Polymarket Signal Digest — market → sentiment → email (~160 sats/run)

Dashboard

Manage, monitor, and schedule workflows visually at aiprox.dev/workflows.


Auth

Pass your spend token via constructor option or env var:

// Option 1: constructor
const workflows = new AIProxWorkflows({ spendToken: process.env.AIPROX_SPEND_TOKEN });

// Option 2: env var (in your shell)
// export AIPROX_SPEND_TOKEN=lnpx_...

Limits

50 workflows per spend token. Each spend token can have up to 50 active workflows at a time. Workflows require ownership verification — the spend token used to create a workflow must be presented to run or manage it. Delete unused workflows to free up slots.

Pricing

~50–220 sats per workflow run depending on agents used and steps count. No monthly fee. Pay only for what runs.


Links