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

monkeyide

v1.1.3

Published

A lightweight multi-tab IDE built with CodeMirror

Readme

monkeyide

monkeyide is a small lightweight multi-tab IDE written based on CodeMirror.

Importing

To import monkeyide, run:

npm install codemirror monkeyide

Now add the following into your HTML:

<script src="node_modules/codemirror/lib/codemirror.js"></script>
<link rel="stylesheet" href="node_modules/codemirror/lib/codemirror.css" />
<script src="node_modules/monkeyide/index.js"></script>
<link rel="stylesheet" href="node_modules/monkeyide/style.css" />

monkeyide is now fully imported! If you would like to import syntax highlighting, go to https://codemirror.net/mode/, from the documentation for more information on that. Here is a link with an index of themes: https://codemirror.net/theme/. Just import a theme as: node_modules/codemirror/theme/*.css. Replace * with the theme name. For more information on CodeMirror, go to their main website. They have multiple other addons, themes, and modes.

Using

The monkeyide controls the ide object, which contains everything that you need to do when controlling the IDE programmatically:

Strings

The following are some plain strings in the ide object:

  • name The name is simply => "monkeyide"
  • version This is simply the current version of monkeyide
  • license This is a string that contains => "MIT"

Elements

  • buttonsBar This element contains all of the buttons that allow the user to navigate through the code editor
  • tabsElements This contains the container for all of the tabs inside the code editor.

Lists

  • files This is the one list inside the ide object that contains objects. These objects are in the format:
{
  mirror: CodeMirror,
  name: String,
  configuration: Object
}

The mirror key contains the CodeMirror for that tab. The name key contains a string for the specified string that the tab should be called. The configuration key contains an object for the configuration which was specified inside the call.

Integers

  • currentTab This integer contains the current tab opened.
  • totalTabs This is the total amount of tabs. It can also be obtained by examining the files list's length.
  • limit The limit for the number of tabs that can be opened at once. Defaults to "infinity". Will only be accepted if it is a typeof number

Functions

  • createTab This function allows you to create a new tab for the IDE. It accepts two arguments: a string and an object. The string is the name of the tab. The object is the configuration passed into CodeMirror.

  • openTab This function takes one argument, a number. That number is the index of the tab that will be opened.

  • removeElement Used for internal purposes to manipulate arrays.

  • getCodeByTab A function to get the code of the tabID specified.

  • getTabs This returns the ide.files list.

  • getTab Returns the given index on the ide.files list.

  • removeTab Remove the tab at the specified index.

  • removeAll Removes all of the tabs.

  • renameTab Renames a tab.

  • pack Packs up the given list. You can run ide.pack(ide.files) to pack up everything now.

  • large Mass create files. Takes in an object in the form:

    {
      "name": "NAME",
      "configuration": {
        "key": "value",
        "value": "CODEHERE",
        "etc": "etc"
      }
    }

Testing

To test this program locally, run:

npm run test

Now you can view the tests at http://localhost:1567/.

Contributing

Contributions are welcome!