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

@olares/cli

v1.12.5-cli.8

Published

Olares CLI (olares-cli) Node wrapper. Run via `npx @olares/cli@latest <verb>` or install globally with `npm install -g @olares/cli`.

Readme

@olares/cli

Node wrapper for olares-cli — the official CLI for installing and operating Olares, an AI-native, self-hosted personal cloud.

This package downloads the platform-specific Go binary on postinstall and exposes it as olares-cli on your PATH. The binary itself is a single static Go executable; this Node wrapper just makes it npx-able and npm install -g-able.

Quick start

# First-run wizard (recommended): does `npm install -g @olares/cli` and
# `npx skills add beclab/Olares -y -g` for you, in that order.
npx @olares/cli@latest install

# Or do it yourself, step by step:
npm install -g @olares/cli@latest                # persistent global install
npx skills add beclab/Olares -y -g               # six olares-* agent skills

# One-off — no install:
npx @olares/cli@latest <verb>

After any of those, authenticate (interactive, prompts for password + optional TOTP):

olares-cli profile login --olares-id <your-olares-id>
olares-cli profile current      # verify

This package distributes the olares-cli binary as a client only. The Node wrapper auto-sets OLARES_CLI_REMOTE_ONLY=1, which hides the Go binary's host-side verbs (uninstall, upgrade, node, os, gpu, disk, wizard, user, osinfo, amdgpu); these are reachable only on an Olares host through /usr/local/bin/olares-cli. The install verb is intercepted by the Node shim itself and routed to the first-run wizard (it never reaches the Go binary). Installing Olares OS itself is out of scope for this package — on a Linux host run curl -fsSL https://olares.sh | bash.

Permission errors on Linux (EACCES while npm writes to /usr/lib/node_modules or /usr/local/lib/node_modules): typical for distro-packaged Node (apt install nodejs) where the global prefix is root-owned. The wizard surfaces the offending npm stderr plus a one-time fix that switches npm to a user-owned prefix (npm config set prefix ~/.npm-global + PATH) so global installs no longer need sudo and npx skills add -g writes under your user (not /root).

Where the binary lives

| You ran | Binary ends up at | | --- | --- | | On a Linux Olares host (OS bundle already there) | /usr/local/bin/olares-cli (managed by Olares OS upgrades) | | npm install -g @olares/cli (no existing olares-cli on PATH) | <npm prefix>/bin/olares-cli (symlink managed by npm) | | npm install -g @olares/cli (with existing olares-cli already at the target path) | npm aborts with EEXIST. Your existing binary is never overwritten. Use --prefix (see below) to side-step. | | npx @olares/cli@latest <verb> | ~/.npm/_npx/<hash>/.../vendor/olares-cli (temporary) |

Uninstall

npm uninstall -g @olares/cli

npm cleans the symlink and the package files itself. There is no extra cleanup step.

On a Linux Olares host: install side-by-side with the OS bundle

Linux-only: macOS / Windows / non-Olares Linux never hit this.

The OS-bundled olares-cli is pinned to whatever shipped with your Olares OS release (e.g. 1.12.5). Older bundles don't include the agent / identity verbs (profile, files, market, dashboard, settings, cluster) — those land in newer npm releases first. To get them on the same Linux host as the OS bundle, install the npm copy under a separate prefix, or use npx for one-offs:

# Option 1 — separate prefix (npm aborts with EEXIST otherwise):
npm install -g @olares/cli@latest --prefix ~/.olares-cli-npm
export PATH="$HOME/.olares-cli-npm/bin:$PATH"   # PATH order decides which copy wins

# Option 2 — npx, no install:
npx @olares/cli@latest profile current

Don't use npm install -g --force on an Olares host — it would clobber the OS-managed binary.

What the npx @olares/cli@latest install wizard does on this path

Before running npm install -g, the wizard reads --version on the existing /usr/local/bin/olares-cli (or /usr/bin/olares-cli):

  • Release-grade (stable 1.12.7, or pre-releases -rc1 / -beta.1 / -alpha2) → left alone; if npm config get prefix points at the same bin directory (typical Olares host: /usr/local), the wizard short-circuits the npm install -g attempt (no full install timeout) and exits with a side-by-side install block (npm install -g ... --prefix=$HOME/.olares-cli-npm + PATH export + npx skills add beclab/Olares -y -g) you can copy verbatim.
  • Dev / test / dirty (0.0.0-development placeholder, git describe outputs like 1.12.7-3-gabc1234-dirty, check.yaml's 1.12.7-12345678 PR builds, unparseable output) → removed so the npm copy can install over the same path. If unlink fails for permission reasons, the wizard exits with a one-line hint to re-run with sudo rather than silently failing.

Environment

  • OLARES_CLI_DOWNLOAD_MIRROR — base URL for downloading the prebuilt binary if https://github.com/beclab/Olares/releases/download/... is unreachable (defaults to https://cdn.olares.com).
  • OLARES_CLI_SKIP_DOWNLOAD=1 — install the JS shim only, no binary fetch.

Links

License

AGPL-3.0-or-later. See LICENSE.