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

@omega-edit/ai

v2.0.0

Published

AI-facing CLI and MCP tooling for OmegaEdit

Downloads

24

Readme

AI-facing tooling for Ωedit™: a scriptable oe CLI plus a stdio MCP server for bounded reads, reversible edits, and large-file-safe binary workflows.

Install

npm install @omega-edit/ai
# or
yarn add @omega-edit/ai

CLI Quick Start

# Create a session against a file
oe create-session --file ./sample.bin

# Inspect a bounded range
oe view --session <session-id> --offset 0 --length 64

# Search text or bytes
oe search --session <session-id> --text PNG --limit 10
oe search --session <session-id> --hex 89504E47 --limit 10

# Preview and apply a reversible patch
oe patch --session <session-id> --offset 8 --hex 0000000d --dry-run
oe patch --session <session-id> --offset 8 --hex 0000000d

# Save or export a slice
oe save-session --session <session-id> --output ./patched.bin --overwrite
oe export-range --session <session-id> --offset 0 --length 128 --output ./header.bin --overwrite

# Undo if needed
oe undo --session <session-id>

All CLI commands emit JSON to stdout and return non-zero exit codes on failure.

MCP Quick Start

omega-edit-mcp

Codex Quick Start

If you are working from this repository, Codex can use the checked-out MCP server with the project-scoped config in .codex/config.toml:

[mcp_servers.omega-edit]
command = "node"
args = ["./packages/ai/dist/cjs/mcp.js"]

If you want a machine-wide Codex config instead, use:

[mcp_servers.omega-edit]
command = "npx"
args = ["-y", "-p", "@omega-edit/ai", "omega-edit-mcp"]

The server speaks newline-delimited JSON-RPC over stdio, following the MCP lifecycle documented by the Model Context Protocol:

  • initialize
  • notifications/initialized
  • tools/list
  • tools/call
  • ping

Available tools:

  • omega_edit_create_session
  • omega_edit_destroy_session
  • omega_edit_session_status
  • omega_edit_read_range
  • omega_edit_search
  • omega_edit_preview_patch
  • omega_edit_apply_patch
  • omega_edit_undo
  • omega_edit_redo
  • omega_edit_save_session
  • omega_edit_export_range
  • omega_edit_server_info

Safety Defaults

The AI surface is intentionally bounded:

  • reads are capped by OMEGA_EDIT_AI_MAX_READ_BYTES (default 262144)
  • patch payloads are capped by OMEGA_EDIT_AI_MAX_EDIT_BYTES (default 262144)
  • search result counts are capped by OMEGA_EDIT_AI_MAX_SEARCH_RESULTS (default 1000)
  • preview context is capped by OMEGA_EDIT_AI_PREVIEW_CONTEXT_BYTES (default 64)
  • auto-start refuses to launch Ωedit™ if the target port is already occupied by a non-Ωedit™ service

Notes

  • The CLI and MCP server are both thin adapters over @omega-edit/client.
  • diff-session currently reports session counters plus last-change metadata rather than a full multi-change diff stream.
  • Codex MCP configuration follows the current OpenAI Codex MCP docs: https://developers.openai.com/codex/mcp.
  • The protobuf performance audit mentioned in issue #1332 should still be completed before wider rollout.