Skip to content

Himanshuraj677/NetCrux-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌐 NetCrux Client CLI

Expose your local server to the internet securely — powered by the NetCrux Tunnel Network.

npm version License: MIT Node.js Version


🚀 Overview

NetCrux is a lightweight, secure, and developer-friendly tunneling tool that lets you expose your local servers to the internet through an encrypted WebSocket tunnel.

Use it to test webhooks, demo web apps, or share local projects — without deploying them publicly.

This is the CLI client for connecting to the NetCrux tunneling network.


✨ Features

  • 🔒 Secure WebSocket Tunnel — All traffic is encrypted end-to-end.
  • 👤 Authentication System — Login and manage your tunnels via NetCrux account.
  • ⚙️ Multiple Tiers — Free, Pro, and Enterprise tiers with different capabilities.
  • 🔁 Persistent Connections — Keeps your tunnel alive even if your app restarts.
  • 🌍 Custom Subdomains — Reserve a subdomain for your tunnel.
  • 📦 Simple CLI Interface — Easy to use, no config files required.

📦 Installation

Install NetCrux Client CLI globally from npm:

npm install -g netcrux-client-cli

🧠 Usage

1. Start a Tunnel

Expose your local port (for example, port 3000):

netcrux -p 3000

If you’re not logged in, NetCrux will automatically ask for your email and password, or offer to create a new account.


2. Use Custom Subdomain (Pro Users)

You can specify a custom subdomain using the -n flag (available for Pro and Enterprise tiers):

netcrux -p 3000 -n myapp

Output:

✔ Connected to tunnel server
Socket ID: YbAH508Z7__jkq21AAAF
⠹ Registering tunnel...
✔ Tunnel registered successfully

🔗 Public URL: https://myapp.tunnel.hcodes.tech

🔐 Authentication Flow

  1. Run netcrux -p <port>

  2. If unauthenticated:

    • CLI prompts with two options:

      • 🆕 Sign Up — Create a new NetCrux account
      • 🔐 Login — Use your existing credentials
  3. Once authenticated, a secure tunnel is created automatically.

  4. Credentials are stored locally for future sessions.


🧩 Example

Run a local Node.js app and expose it instantly:

node app.js
netcrux -p 3000

You’ll get a secure public URL like:

https://uecpztgsxx.tunnel.hcodes.tech

🔐 Authentication Tiers

Tier Description Features
Free Basic tunnel access Random subdomain, limited uptime
Pro Premium user Custom subdomain, persistent tunnels
Enterprise Advanced users Custom domain, analytics, uptime guarantee

🧰 Commands

Command Description
netcrux -p <port> Expose a local port
netcrux -p <port> -n <subdomain> Expose with custom subdomain

🛠️ Tech Stack

  • Node.js + Commander — CLI Framework
  • Socket.IO — Real-time encrypted tunnel communication
  • Axios — API interaction and authentication
  • Ora & Chalk — Modern CLI animations and color output
  • fs-extra & dotenv — Configuration and file management

⚠️ Deprecation Notice

🔴 Versions prior to 2.0.0 are deprecated. Please upgrade to the latest version for authentication and tiered access support:

npm install -g netcrux-client-cli@latest

🧑‍💻 Author

Himanshu Raj Developer | Backend Engineer | Blockchain Enthusiast

GitHubLinkedIn


📄 License

This project is licensed under the MIT License. Feel free to fork, contribute, and improve NetCrux!


💬 Feedback & Support

For feature requests, bug reports, or issues:

  • 🐛 Report bugs on GitHub Issues
  • 💡 Feature suggestions are always welcome!

⭐ If you like this project, consider giving it a star!

npm star netcrux-client-cli

“Develop faster, demo smarter — with NetCrux.”

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published