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 🙏

© 2024 – Pkg Stats / Ryan Hefner

cyanide

v0.1.1

Published

A web-based IDE for editing files on a remote host

Downloads

7

Readme

CyanIDE

CyanIDE is a basic Sublime-like interface for editing files on a remote linux server.

CyanIDE Screenshot

Installation

First, make sure Node.js version 4 or later is installed on your system:

node -v

Then clone the project:

git clone https://github.com/mgrahamjo/cyanide

On Windows, you will get an error: Invalid path: 'CyanIDE.app/Icon'. No worries, that's a Mac-only path.

Setup

Save your connection settings in config.json:

{
	"host": "your.remote.host",
	"username": "yourUsername",
	"privateKey": "/Users/You/.ssh/id_rsa",
	"cwd": "/path/to/remote/directory",
	// optionally, you can override the default port on which the app runs:
	"port": 8000
}

Running the app

Double-click the CyanIDE app for your platform (there's one for Windows and one for Mac).

You will be prompted for the password to your RSA key. The first time you run the app it will take a few moments to run npm install before starting up.

Once connected, visit http://localhost:8000 in Chrome.

Features

Search

In the upper-left, you can search for files in the remote project. Click the 'X' to clear the search results.

When the cursor is in the editor, you can press cmd + f to search the currently opened file for text matches, optionally with regex.

Create new folders or files

Right click on a folder and select "New File" or "New Folder". Enter a name in the dialog box.

Delete a folder or file

Right click on a folder or file and click "Delete".

Rename a folder or file

Right click on a folder or file and click "Rename". Enter a new name in the dialog box.

Save changes

After editing a file, click "save" or press cmd + s.

Refresh directory

If changes have been made on the remote filesystem, you can right click on a directory and click "Refresh" to get the current folders and files.

Syntax Highlighting

CyanIDE uses file extensions to determine syntax highlighting rules. To change which file extensions map to which syntaxes, edit lib/extensions.json. If the syntax you're using is not currently supported, please open an issue.

Common Issues

All I can see are the files and folders in my home directory

Something is wrong with the cwd setting in config.json. If the folder you want to load is in your home directory, the cwd setting should just be "My-Project".

I get the error "No value for $TERM ..."

This means that your remote machine is not configured to be compatible with non-interactive shell sessions. Check to see if there are shell configuration rules on the remote machine in ~/.profile, ~/.bashrc, or ~/.bash_profile. If so, change the rules to only apply when an interactive shell is available. For example, the rule:

export PS1=""

could be rewritten as:

tty -s && export PS1=""