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

pterm

v0.0.14

Published

Interact with Pinokio through terminal commands

Readme

Pinokio Terminal

Interact with Pinokio through terminal commands

Install

npm install -g pterm

Usage

version

prints the current version

syntax

pterm version <type>
  • type: may be terminal, pinokiod, or pinokio
    • terminal: returns the pterm version
    • pinokiod: returns the pinokiod version
    • pinokio: returns the pinokio version
    • script: returns the valid script version for the current client. used for including in pinokio.js

example

pterm version terminal

start

Start a pinokio script. Arguments can be passed into the script

syntax

pterm start <script_path> [<arg1>, <arg2>, ...]

examples

Starting a script named install.js:

pterm start install.js

Starting a script named start.js with parameters:

pterm start start.js --port=3000 --model=google/gemma-3n-E4B-it

Above command starts the script start.js with the following args:

{
  port: 3000,
  model: "google/gemma-3n-E4B-it"
}

Which can be accessed in the start.js script, for example:

{
  "daemon": true,
  "run": [{
    "method": "shell.run",
    "params": {
      "env": {
        "PORT": "{{args.port}}"
      },
      "message": "python app.py --checkpoint={{args.model}}"
    }
  }]
}

stop

Stops a script if running:

syntax

pterm stop <script_path>

example

Stop the start.js script if it's running:

pterm stop start.js

run

Run a launcher. Equivalent to the user visiting a launcher page. Will run whichever script is the current default script.

syntax

pterm run <launcher_path>

examples

Launch the launcher in the current path

pterm run .

Launch from absolute path

pterm run /pinokio/api/test

filepicker

Display a file picker dialog, which lets the user select one or more file or folder paths, powered by tkinter.

This API is NOT for uploading the actual files but for submitting file paths.

syntax

pterm filepicker [<arg>, <arg>, ...]

Where args can be one of the following:

  • <arg>: script flags
    • --title: (optional) file dialog title.
    • --type: (optional) which type to select. Either "folder" or "file". If not specified, the value is "file".
    • --path: (optional) specify path to open the file dialog from. If not specified, just use the default path.
    • --multiple: (optional) whether to allow multiple path selection (true or false). Default is false.
    • --filetype: (optional) file types to accept. you can specify multiple --filetype flags. The format must follow type/extension,extension,extension,... (Example: --filetype='image/*.png,*.jpg)

examples

Select a folder path

pterm filepicker --type=folder

Select a file path

The most basic command lets users select a single file:

pterm filepicker

which is equivalent to:

pterm filepicker --type=file

Select multiple files

pterm filepicker --multiple

Open the filepicker from the current path

pterm filepicker --path=.

Open an image filepicker

pterm filepicker --filetype='images/*.png,*.jpg,*.jpeg'

Open a filepicker with multiple file types

pterm filepicker --filetype='images/*.png,*.jpg,*.jpeg' --filetype='docs/*.pdf'

clipboard

write to or read from clipboard

syntax

pterm clipboard copy <text>
pterm clipboard paste

examples

copy text to clipboard

The following command copies "hello world" to the clipboard

pterm clipboard copy "hello world"

read from clipboard

Assuming the clipboard contains the text 'hello world',

pterm clipboard paste

will print:

hello world

You can pipe this to other terminal commands to easily access the clipboard content.

push

Send a desktop notification

syntax

pterm push <message> [<arg>, <arg>, ...]
  • message: a message to send
  • <arg>: script flags
    • --title: (optional) push notification title
    • --subtitle: (optional) push notification subtitle
    • --image: (optional) custom image path (can be both relative and absolute paths)
    • --sound: (optional) true|false (default is false)
    • --wait: (optional) wait for 5 seconds
    • --timeout: (optional) wait for N seconds

examples

send a simple notification

pterm push 'hello world'

notification with sound

pterm push 'this is a notification' --sound

notification with an image

pterm push 'this is an image notification' --image=icon.png