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

@nexight-ai/ojo

v1.0.3

Published

Ojo CLI — login, project management, AI chat, run status queries, workspace sync, and session history

Readme

Ojo CLI

@nexight-ai/ojo is the official command-line tool for Ojo. Log in, manage projects, chat with the AI agent, check run status, fetch the latest project screen, and sync your workspace — all from the terminal.

Install globally via npm:

npm install -g @nexight-ai/ojo
ojo --help

Recommended flow: auth loginchatqueryscreenworkspace sync

Authentication

ojo auth login                           # Web login (opens browser automatically)
ojo auth login --mode web                # Explicitly use web mode
ojo auth login --mode device             # Device code flow (scan / approve on another device)
ojo auth login --mode access-key --access-key <token>  # AccessKey login
ojo auth login --no-open                 # Print the login URL without opening the browser
ojo auth login --mode device --json      # JSON output for automation / agents

ojo auth logout                          # Log out and clear local credentials

auth login --json returns stable JSON with ok, mode, and mode-specific fields such as loginUrl, verificationUri, userCode, and expiresIn.

Need an AccessKey for --mode access-key? Open the AccessKey manager directly: https://ojo.art/dashboard?openAccessKeyManager=1

Projects

ojo project list                         # List your projects (default 20 per page)
ojo project list --page-size 50          # Set page size
ojo project list --page-token <token>    # Go to next page
ojo project list --favorite              # Show only favorited projects
ojo project list --json                  # JSON output

Screen

Fetch the current prototype preview image for a project.

ojo screen --project-id <projectId>
ojo screen --project-id <projectId> --json

screen returns projectId, projectUrl, status, and when available resourceId, resourceMeta, and url.

Chat

Sends a message to the Ojo agent and waits for it to finish before returning the result.

# Create a new project automatically and send a message
ojo chat --message "Build me a landing page"

# Continue an existing project's session
ojo chat --project-id <projectId> --message "Add a dark mode toggle"

# Send via stdin
echo "Build me a landing page" | ojo chat

# JSON output
ojo chat --project-id <projectId> --message "..." --json

Response fields: projectId, projectUrl, status (completed | waiting_input)

Query Run Status

Check the latest run status for a project.

ojo query --project-id <projectId>
ojo query --project-id <projectId> --json

| Field | Description | | ------------ | --------------------------------------------- | | projectId | Project ID | | projectUrl | Project URL (https://ojo.art/p/<projectId>) | | status | running | success | fail | | statusText | Progress description (when running) | | failure | Structured error details (when fail) |

Workspace Sync

Pull the remote project workspace to your local machine.

# Sync the project bound to the current directory
ojo workspace sync

# Sync by project ID or URL
ojo workspace sync <projectId>
ojo workspace sync https://ojo.art/p/<projectId>

# Write to a specific parent directory
ojo workspace sync <projectId> --path ./my-projects

# JSON output
ojo workspace sync <projectId> --json

Artifacts are extracted to <project-name>/ojo-prototype inside the target directory.

JSON response fields: projectId, path, workspaceHash

Agent / Automation Notes

  • chat has two modes: omit --project-id to auto-create a project; pass --project-id to continue an existing session.
  • query only needs --project-id; it fetches the latest run automatically and returns projectUrl.
  • Use workspace sync after chat / query to pull updated project files locally.