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

ct-fivem

v1.1.4

Published

FiveM CLI launcher and auto-reconnect watchdog

Readme

CT FiveM

CT FiveM (ct-fivem) is a production-ready Windows CLI tool and auto-reconnect watchdog for FiveM.

Instead of opening FiveM manually, pressing F8, and typing connect IP:PORT, you can use ct:

ct 123.123.123.123:30120

Features

  • 🚀 Direct Connect: Connect to FiveM servers straight from PowerShell / Command Prompt / Windows Terminal.
  • 📊 Server Info: Query /info.json and /players.json without launching FiveM (ct info IP:PORT).
  • 🛡️ Auto-Reconnect Watchdog (ACT): Monitor connection, detect crashes, timeouts, and disconnects, and automatically reconnect (ct act IP:PORT).
  • Zero External Dependencies: Pure Node.js standard modules for fast installation and maximum reliability.
  • ⚙️ Configurable: Global settings managed in %APPDATA%\CT\config.json.
  • 📁 Local Logging: Structured local logs saved to %LOCALAPPDATA%\CT\logs\ct.log.

Installation

npm install -g ct-fivem
 npm install -g ct-fivem@latest

Usage

1. Direct Connect (Default)

Validates server, queries endpoints, displays formatted server card, and launches FiveM:

ct 123.123.123.123:30120

or explicitly:

ct connect example.com:30120

2. Check Server Details Only

Displays server information without launching FiveM:

ct info 123.123.123.123:30120

Example Output:

╭──────────────────────────────────────────────╮
│                  CT FiveM                    │
├──────────────────────────────────────────────┤
│ Server  : Example Roleplay                   │
│ Address : 123.123.123.123:30120              │
│ Players : 128 / 256                          │
│ Ping    : 42 ms                              │
│ Status  : ONLINE                             │
╰──────────────────────────────────────────────╯

3. Auto-Reconnect Watchdog (ACT)

Keeps running in your terminal to automatically reconnect when FiveM closes, crashes, or disconnects:

ct act 123.123.123.123:30120

4. Configuration

View or update configuration settings:

# Show current config
ct config

# Change reconnect cooldown delay (in milliseconds)
ct config set reconnectDelay 10000

Optional FiveM Client Resource (ct_client)

For 100% exact connection state tracking during ct act, copy the resource/ct_client folder to your FiveM server resources and add ensure ct_client to server.cfg.


Standalone Executable (ct.exe)

To compile ct-fivem into a standalone .exe:

npx @yao-pkg/pkg . --targets node18-win-x64 --output ct.exe

License

MIT