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

@matheusbbarni/pi-goal-extension

v0.1.4

Published

Interactive Codex /goal sessions for Pi with persistent start/resume/status commands.

Downloads

479

Readme

@matheusbbarni/pi-goal-extension

Interactive, resumable Codex /goal sessions for Pi. The extension calls Codex CLI directly, keeps Codex session metadata for resume, and renders a compact Codex-style live transcript in Pi.

Install / test

From this repo:

pi -e .
# or load the single-file shim
pi -e ./codex-goal.ts

Install from npm:

pi install npm:@matheusbbarni/pi-goal-extension

Or install as a local Pi package:

pi install ./pi-goal-extension

If you still have an older global extension that registers /goal, Pi may suffix one command as /goal:1. Disable or remove the old extension if you want this one to own /goal.

Commands

/goal <text>                         Run one-shot Codex goal
/goal run <text> [options]           Run one-shot Codex goal
/goal start <name|path> [objective]  Create and run a managed goal
/goal resume [name] [prompt]         Resume a managed Codex session
/goal stop                           Abort/pause current goal
/goal status                         Show goals
/goal templates [query]              List reusable goal templates
/goal log [name]                     Show last output/log path
/goal edit [name]                    Edit the task file
/goal cancel <name> [--all]          Delete state
/goal archive <name>                 Archive state/task
/goal clean [--all]                  Remove completed goals
/goal nuke [--yes]                   Delete all .codex-goals data

Managed goals store lightweight state under .codex-goals/ and Codex JSONL transcripts under .codex-goals/logs/. When a manually-run /goal finishes, the extension appends a compact result message to the Pi session so the next Pi turn has the Codex outcome in context.

Reusable templates

Store Markdown or text goal templates under one of these workspace-root directories:

.pi-goals/
.ai/.pi-goals/
.codex-goals/templates/

Templates support simple frontmatter plus {{placeholder}} and {{args}} substitution:

---
description: Fix an issue with verification
aliases: fix, issue
---
Fix {{issue}}.

Extra context: {{args}}

Start a managed Codex goal from a template:

/goal templates
/goal start fix-123 --template fix-issue --issue ISSUE-123 -- update docs too

Agent tools

  • codex_goal_run - one-shot Codex goal.
  • codex_goal_templates - list reusable templates.
  • codex_goal_start - create a managed goal and optionally launch Codex.
  • codex_goal_resume - resume a managed goal by name.

The live widget shows recent Codex agent messages and command activity. Full unabridged JSONL output is kept in the log file shown by /goal log.