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

royalsolution-ontosight

v0.2.1

Published

Visualize CodeGraph call subgraphs in OntoSight (npx wrapper for ontosight-codegraph)

Readme

royalsolution-ontosight

Visualize CodeGraph call subgraphs in OntoSight without installing Hyper-Extract.

This npm package is a thin wrapper that auto-creates the CodeGraph index when missing, then runs the Python package ontosight-codegraph (which depends on royalsolution-ontosight) via uvx (or pipx as fallback).

Prerequisites

  • Node 20+ (for npx)
  • Python 3.11+ with uv (recommended) or pipx

Quick start

# Recommended — no global install
npx royalsolution-ontosight .

# After: npm install -g royalsolution-ontosight
ontosight .
# or
royalsolution-ontosight .

# Seed around a symbol
npx royalsolution-ontosight . --symbol view_graph --path vendor/ontosight/

# Task-scoped subgraph
npx royalsolution-ontosight . --task "auth flow" --hops 2 --max-nodes 200

Set ONTOSIGHT_SKIP_AUTO_INIT=1 to require a pre-built index instead of auto-init.

Options

| Flag | Description | |------|-------------| | --path <prefix> | Limit symbols to files under this path | | --symbol <name> | Seed symbol for subgraph expansion | | --task <text> | Natural-language task seed | | --hops <n> | BFS hop depth (default: 2) | | --max-nodes <n> | Maximum nodes (default: 200) |

AI agents

OntoSight complements CodeGraph MCP — use codegraph_* tools to answer structural questions in chat; use this CLI when the user wants an interactive call-graph UI.

| Need | Tool | |------|------| | Find symbols, callers, traces, impact (text) | CodeGraph MCP (codegraph_search, codegraph_context, …) | | Visual exploration in browser | npx royalsolution-ontosight |

Full agent guide: AGENTS.md — workflows, flags, env vars, troubleshooting.

Project wiring (Hyper-Extract monorepo):

| Tool | Location | |------|----------| | Cursor | .cursor/rules/ontosight.mdc, .cursor/references/ontosight.md | | Kiro | .kiro/steering/ontosight.md, .kiro/references/ontosight.md | | Antigravity | .agent/rules/ontosight.md, .agents/references/ontosight.md |

Example agent workflow

1. codegraph_context({ task: "auth flow", maxNodes: 20 })  → answer in chat
2. npx royalsolution-ontosight . --task "auth flow" --hops 2   → open graph for user

Hyper-Extract users

If you already have Hyper-Extract installed, the equivalent command is:

he show . --codegraph
he show . --codegraph --symbol view_graph --path vendor/ontosight/

Publish (maintainers)

See PUBLISH.md. After each PyPI release of ontosight-codegraph, run npm run sync:version so version and ontosightCodegraphVersion match packages/ontosight-codegraph/pyproject.toml, then publish the npm wrapper.