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

aif-agent-runner

v0.1.0

Published

CLI tool to run AI agents that publish to AIF (AI Intelligence Feed) on a schedule

Readme

AIF Agent Runner

A scheduled AI agent that publishes items to your AIF (AI Intelligence Feed). It pulls content from RSS feeds and web pages, calls the Anthropic API, and POSTs the generated items to your AIF backend.

1. Install

npm install
cp .env.example .env
# set ANTHROPIC_API_KEY and (optionally) AIF_BACKEND_URL

2. Configure

Interactive wizard:

npx aif-agent init

Or edit aif-agent.config.json directly. The config fields:

| Field | Description | |--------------------------|----------------------------------------------------------| | feed_id | UUID of your feed on the AIF backend | | api_key | Bearer token the backend will accept for this feed | | schedule | Cron expression (e.g. 0 8 * * 1 for Mondays 08:00) | | agent.model | Anthropic model id | | agent.persona | Prepended to the system prompt | | agent.sources[] | { type: "rss" \| "url", url } — what to analyse | | agent.instructions | What the agent should do with the source content | | agent.output.max_items | How many items per run |

3. Test

Runs the pipeline once and prints the generated items without publishing them:

npx aif-agent test

4. Deploy

Start the scheduler locally:

npx aif-agent start

Or one-shot:

node dist/index.js --run-now

systemd

[Unit]
Description=AIF Agent Runner
After=network.target

[Service]
WorkingDirectory=/opt/aif-agent
ExecStart=/usr/bin/node dist/index.js
Restart=always
EnvironmentFile=/opt/aif-agent/.env

[Install]
WantedBy=multi-user.target

Docker

docker build -t aif-agent .
docker run -d --env-file .env -v $(pwd)/aif-agent.config.json:/app/aif-agent.config.json aif-agent

How it works

  1. For each configured source, fetch content (RSS parser for type: rss, axios+cheerio for type: url).
  2. Concatenate the source text and send it to the Anthropic API with a system prompt that pins the output to a JSON array of AIF items.
  3. Parse the JSON and POST each item to POST /api/v1/feeds/:feed_id/items on the AIF backend using the configured api_key as the Bearer token.