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

showcodeterminal

v0.1.4

Published

A clickable code editor for your terminal, with a VS Code-style explorer.

Readme

showCode

A clickable code editor for your terminal, in TypeScript. Open a folder, type showcode, and get a VS Code-style Explorer on the left with a file tree, tabs, syntax colour and an editor on the right. Click files to open them, type to edit, press Ctrl+S to save. Works in Command Prompt, PowerShell, Windows Terminal, macOS and Linux. No runtime dependencies.

Install (Windows, macOS, Linux)

Needs Node.js 18+. No Git, compiler or editor plugin required.

npm install -g showcodeterminal

Then, in any project:

cd path\to\project
showcode

Update: npm install -g showcodeterminal@latest. Remove: npm uninstall -g showcodeterminal.

You can also pass a folder: showcode path\to\project. With no folder, showcode opens the current directory.

Using it

The left side is the Explorer. The right side holds tabs and the editor. The status bar shows the cursor position, selection, line endings, language and save state.

Open a file by clicking it in the Explorer, or press Ctrl+P and type part of its path. A single click selects the file and opens it in a tab while the Explorer keeps focus, so Delete removes the selected file like it does in VS Code. Press Enter, double-click the file, or press F6 to start editing. Folders expand and collapse when clicked. Drag the divider to resize the Explorer.

The Explorer updates automatically when files or folders change on disk. Open files that have no unsaved edits are reloaded silently; files you are editing are never overwritten, and saving then asks first.

Files changed in Git show the same status letters VS Code uses: M modified, A added, U untracked, D deleted, R renamed, C copied and ! conflicted. Folders that contain changes show a dot in the colour of the most important change inside them. The markers refresh live: after you save, create or rename something, when another program edits the workspace, and when you run git add, git commit, git checkout or any other Git command in another window. F5 also refreshes them on demand.

The status bar shows who last changed the line under the cursor and how long ago, for example Ada Lovelace, 3 days ago — the same information GitLens adds to VS Code. It follows the cursor as you move, says Uncommitted changes while a file has unsaved edits, and stays quiet outside a Git repository.

| Key | Action | | --- | --- | | Ctrl+P | Go to File (fuzzy path search) | | Ctrl+S | Save the active file | | Ctrl+N | New file | | Ctrl+W | Close the active tab | | Ctrl+B | Show / hide the Explorer | | Ctrl+F | Find in the active file | | Ctrl+G | Go to line | | F1 | Keyboard shortcuts | | F2 | Rename the selected file or folder | | F5 / Ctrl+R | Refresh the Explorer | | F6 | Switch focus between Explorer and editor | | Ctrl+Q | Quit (asks before losing changes) |

In the editor:

| Key | Action | | --- | --- | | Arrow keys, Home, End, PageUp, PageDown | Move the caret | | Shift + arrows / Home / End / PageUp / PageDown | Select text | | Ctrl+Left / Ctrl+Right | Move by word | | Ctrl+Home / Ctrl+End | Start / end of file | | Ctrl+Backspace / Ctrl+Delete | Delete a word | | Tab / Shift+Tab | Indent / outdent | | Ctrl+Z / Ctrl+Y | Undo / redo | | Ctrl+A | Select all | | Ctrl+C | Copy the selection (or the current line) | | Enter | New line, keeping indentation | | Esc | Clear the selection |

In the Explorer:

| Key | Action | | --- | --- | | Up / Down (or k / j) | Move between files | | Enter or Space | Open a file for editing, or expand / collapse a folder | | Left / Right (or h / l) | Collapse / expand, or jump to the parent | | a | New file | | Shift+A | New folder | | F2 | Rename | | Delete | Move the selected item to the trash (asks first) | | Home / End / PageUp / PageDown | Jump through the tree |

Mouse: click a file to select and open it (the Explorer keeps focus, so Delete works), then double-click or press F6 to edit; click folders and tabs; click the x on a tab to close it; click in the gutter to select a line; drag to select text; double-click to select a word; triple-click to select a line; use the wheel to scroll (hold Shift over the editor to scroll sideways); drag the Explorer or editor scrollbar to scroll quickly. Drag the divider to resize the Explorer.

Safety

  • showcode only edits UTF-8 text files up to 2 MB. Binary files and other encodings are refused with a message instead of being damaged.
  • Nothing is written until you save. Closing a changed tab or quitting asks first; choosing Save All writes every changed file.
  • If a file changed on disk since it was opened, saving asks before overwriting and offers to reload it instead.
  • Delete does not erase files. The item is moved to ~/.showcode-trash with a timestamp; if the drive is different, showcode copies and then removes it. Trash is never emptied automatically.
  • Renaming a folder moves open tabs with it. New files and folders, and renames, are kept inside the workspace; .. cannot escape it.
  • File names and file contents are cleaned of control and bidi characters before they are drawn, so a hostile file name cannot inject terminal commands.
  • Copy tries the platform clipboard tool and also sends an OSC 52 sequence, so it works over SSH in terminals that support it.
  • If showcode crashes, the terminal is restored, details are written to .showcode-error.log in the opened folder, and the process exits with an error code.

Options

showcode [folder] [--no-mouse] [--ascii] [--version] [--help]
  • folder — folder to open (default: the current directory). ~ is expanded.
  • --no-mouse — do not capture mouse clicks and wheel events.
  • --ascii — use ASCII-only borders and icons (also SHOWCODE_ASCII=1).
  • --version, -v — print the version.
  • --help, -h — print usage and keys.

Not in version 0.1

Search and replace across files, project-wide results, split views, multiple windows, Git actions beyond the Explorer status letters, image or PDF preview, encodings other than UTF-8, very large files, configurable tab width or themes, and auto-detected indentation.

Troubleshooting

  • showcode is not recognised: close and reopen the terminal. If it still fails, run npm config get prefix and make sure that folder is in your PATH.
  • PowerShell says "running scripts is disabled": run Set-ExecutionPolicy -Scope CurrentUser RemoteSigned once, or use Command Prompt.
  • Clicks do nothing or print strange characters: use Windows Terminal (default on Windows 11), or start with showcode --no-mouse and use the keyboard.
  • Boxes and icons look wrong: start with showcode --ascii. Classic Windows consoles get ASCII automatically; Windows Terminal and modern Unix terminals use Unicode.
  • Colours look wrong: showcode uses the 256-colour palette. Use Windows Terminal, macOS Terminal, iTerm2, GNOME Terminal or another modern terminal.
  • Layout looks broken: enlarge the window to at least 40 x 10. The Explorer hides itself on very narrow windows.
  • A crash: read .showcode-error.log in the folder you opened. It contains the error and stack trace, but never the contents of your files.

Development

npm install
npm run build
npm test

npm test compiles the sources and tests to dist-test/ and runs the Node test runner.

To build a standalone executable (no Node.js needed to run it):

npm run build:exe

Windows gets release/showcode.exe; macOS and Linux get release/showcode. The executable is built from the Node.js version that runs the command, so build it on the platform you want to run it on. Windows may warn about the unsigned binary.

To build the installable package:

npm pack

That produces showcodeterminal-0.1.3.tgz after compiling dist/. Publishing the package:

npm publish

prepublishOnly rebuilds dist/ first, and dist/ is the only runtime payload.