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

@hallaxius/cli

v1.0.0

Published

Hallaxius CLI - File upload utility

Downloads

77

Readme

@hallaxius/cli

CLI tool for file uploads and shortlink creation via Hallaxius.

Installation

Bun (recommended)

bun install -g @hallaxius/cli

npm

npm install -g @hallaxius/cli

From source

git clone https://github.com/seshstranger/hallaxius-cli
cd hallaxius-cli
bun install
bun run src/index.ts

Setup

Before using, configure your API key:

hallaxius configure <your-api-key>

Or in interactive mode:

hallaxius> configure <your-api-key>

The API key is stored encrypted in %APPDATA%\HallaxiusCli\hallaxius.config.json.

Usage

The CLI works in two modes: interactive and command-line.

Interactive mode

Run without arguments to enter the REPL:

hallaxius
 hallaxius v1.0.1

 Welcome! Type help to see available commands.

ZyRox@DESKTOP >

Command-line mode

Pass the command and arguments directly:

hallaxius upload image.png
hallaxius upload https://example.com/image.jpg
hallaxius shortlink https://mysite.com/page

Commands

| Command | Shortcut | Description | |---|---|---| | configure <api-key> | cfg | Set your API key | | upload <file\|url> | up | Upload a file or URL | | pending | pend | List pending uploads | | resume <id> | res | Resume a pending upload | | verify | v | Validate API key | | reset | rm | Clear stored configuration | | shortlink <url> | sl | Create a shortlink | | plan | acc | Show plan and features | | profile | prof | Show full profile info | | update [--install] | upd | Check or install updates | | reinstall | reinst | Reinstall CLI globally | | clear | cls | Clear the screen | | exit | q | Exit interactive mode | | help | h | Show help |

Upload

Local file

hallaxius upload photo.png
hallaxius upload "C:\Users\ZyRox\Documents\report.pdf"
hallaxius up video.mp4 -p mypassword --slug my-video

URL (download + upload)

hallaxius upload https://example.com/archive.zip

The CLI downloads the file to a temp directory, uploads it, and cleans up the temp file afterwards.

Upload options

| Flag | Description | |---|---| | -v, --verbose | Verbose output (SHA-256, chunk size) | | --json | JSON output (for scripting) | | -p, --password <pass> | Password-protect the file | | --slug <slug> | Set a custom slug |

JSON output

With --json, the result is printed as JSON:

{
  "success": true,
  "url": "https://cdn.hallaxi.us/abc123",
  "message": "Upload completed successfully. Public URL: https://cdn.hallaxi.us/abc123",
  "totalTimeSeconds": 3.42
}

Progress bar

During upload, an animated progress bar is displayed:

⠋ [████████████░░░░░░░░░░░░░░░░░░] 42.3% 3/7 12.5 MB/s ETA 00:45

Resuming uploads

If an upload is interrupted, it is saved as pending:

hallaxius pending
 Pending uploads

 abc12345...
   Size: 150 MB
   Path: C:\Users\ZyRox\Videos\video.mp4

Resume it:

hallaxius resume abc12345

The CLI checks that the file still exists and its size hasn't changed.

Shortlinks

Create short links from long URLs:

hallaxius shortlink https://mysite.com/very/long/url
 ✓ Shortlink created
   URL https://hallaxi.us/s/x7k2
   Target https://mysite.com/very/long/url

Account

Plan and features

hallaxius plan

Displays: plan, storage usage (with visual bar), limits, and list of available features.

Full profile

hallaxius profile

Same as plan, but includes user ID and username, plus an extended feature list.

Updates

The CLI automatically checks for updates every 24 hours. To check manually:

hallaxius update --install

Updates are downloaded, hash-verified (SHA-256), and installed automatically. Backups of the previous version are kept in %APPDATA%\HallaxiusCli\backup.

Advanced configuration

Data files

| Path | Description | |---|---| | %APPDATA%\HallaxiusCli\hallaxius.config.json | Config and encrypted API key | | %APPDATA%\HallaxiusCli\resume\ | Pending upload states | | %APPDATA%\HallaxiusCli\backup\ | Version backups | | %LOCALAPPDATA%\HallaxiusCli\ | Global install directory |

Environment variables

| Variable | Description | |---|---| | NO_COLOR=1 | Disable colored output |

Security

  • API key is encrypted with DPAPI (Windows Data Protection) before being saved to disk
  • URL downloads are validated against blocked MIME types (executables, installers, etc.)
  • SHA-256 hash is calculated for all files before upload
  • Updates are verified with SHA-256 before installation
  • The CLI respects NO_COLOR for non-interactive environments

Requirements

  • Bun 1.0+ (recommended) or Node.js 18+
  • Windows (DPAPI support for API key encryption)

Development

bun install
bun run src/index.ts

Lint and formatting

bunx biome check src/
bunx biome check --fix --unsafe src/

Typecheck

bunx tsc --noEmit

License

MIT