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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@thinremote/thinr-cli

v1.0.2

Published

CLI for ThinRemote - Remote management for IoT devices

Downloads

33

Readme

Thinr - ThinRemote CLI

A modern command-line interface for managing remote devices through the ThinRemote platform.

Features

  • Remote Terminal: Connect to a device's terminal and interact with it directly
  • TCP/Web Proxy: Create proxies to remote devices, either for TCP connections or web interfaces
  • Device Status: Check connection status and statistics for a device
  • Secure Authentication: Support for both username/password and token-based authentication
  • Modern UI: Clean and intuitive command-line interface

Installation

From NPM (recommended)

npm install -g @thinremote/thinr-cli

From Source

git clone https://github.com/Thin-Remote/thinr-cli.git
cd thinr-cli
npm install
npm link

Usage

Initial Setup

Run the CLI without any parameters to set up:

thinr

You'll be prompted to authenticate either with username/password or with an existing token.

Available Commands

Device

Console

Connect to a device's terminal:

thinr device <deviceId> console
Proxy

Create a TCP or HTTP proxy to a remote device:

thinr device <deviceId> tcp <target> [options]
thinr device <deviceId> tls <target> [options]
thinr device <deviceId> http <taget> [options]

The target being the remote address and port on the device (defaults: tcp: 22, http: 80, tls: 443, and localhost for the target address).

Options:

  • -w, --web: Create an HTTP proxy for web interface instead of TCP
  • --no-open: Do not open browser automatically (web mode only)

Examples:

# Create a TCP proxy to SSH
thinr device RevPi20679 tcp 22

# Create a proxy to a specific port with SSL
thinr device RevPi20679 http 8080

# Create a proxy to a specific address
thinr device RevPi20679 http http://192.168.1.45:8080
Status

Check the connection status of a device:

thinr device <deviceId> status [options]

Options:

  • -j, --json: Output the status in JSON format
Property

Retrieve the properties of a device:

thinr device <deviceId> property [options]

Retrieve a property from a device:

thinr device <deviceId> property <propertyId> [options]

Options:

  • -j, --json: Output the status in JSON format
  • -f, --field: Field to extract from the property or resource (e.g., -f data.value)
Resource

Get the available resources of a device:

thinr device <deviceId> resource [options]

Options:

  • -j, --json: Output the status in JSON format

Execute a resource on a device:

thinr device <deviceId> resource <resourceId> [options]

Options:

  • -i, --input: Input for the resource (e.g., -i param1=value1 -i param2=value2)
  • -j, --json: Output the status in JSON format
  • -f, --field: Field to extract from the property or resource (e.g., -f data.value)
Product

Iterate over all devices of a specific product in order to retrieve a property or execute a resource:

thinr product <productId> property [options]
thinr product <productId> resource [options]

Options:

  • -j, --json: Output the status in JSON format
  • -f, --field: Field to extract from the property or resource (e.g., -f data.value)

Options for executing a resource:

  • -i, --input: Input for the resource (e.g., -i param1=value1 -i param2=value2)

Help

Get help for any command:

thinr --help
thinr device --help
thinr logout --help

Development

The project structure is organized as follows:

thinr/
├── bin/           # Main executable
├── lib/           # Core functionality
├── commands/      # Command implementations
├── package.json
└── README.md

Building

npm install
npm link

Testing

npm test

License

The plugin is licensed under the MIT License:

Copyright © Thinger.io

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.