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

@khalidx/runbook

v0.7.0

Published

Executable markdown documents that you can run, template, and share!

Downloads

5

Readme

runbook

Executable markdown documents that you can run, template, and share!

npm package version badge GitHub last commit badge GitHub license badge

quickstart

npm install -g @khalidx/runbook

The USAGE.md file is a runnable markdown document. Check it for some usage examples.

commands

📂 ls | 🚀 run | 🌐 serve | 💁 help

📂 runbook ls

Lists all commands found in documents in the current directory.

It discovers files that end in .md, parses them, and finds all fenced code blocks in the file.

It returns a list of "commands", which are any fenced code blocks that are annotated with a language + a name. Check out the examples below.

```bash "hello"
echo "Hello!"
```

```bash "two plus two"
echo $((2 + 2))
```

Running runbook ls would output a command list like the following:

document.md | hello
document.md | two plus two

Code blocks that are not annotated with a supported runtime and a quoted name will be ignored by runbook.

🚀 runbook run

Runs the specified command.

The command must be specified in a markdown document in the current directory.

For example, to run the "hello" command shown above, type:

runbook run hello

🌐 runbook serve

Starts up a server and automatically opens the browser to a page that displays all discovered documentation and commands.

💁 runbook help

Shows what you can do with the runbook CLI.

features

  • define and document reusable commands in your favorite language, with many currently supported
  • list all commands found in markdown documents in the current directory with runbook ls
  • run a specific command from a document with runbook run
  • commands can be templated with arguments using handlebars {{ }} syntax
  • commands can be overloaded
  • command suggestions are returned if input doesn't match a command
  • commands are checked for uniqueness (name + arity + args)
  • commands written in bash can call other commands
  • commands can be referenced from external files, rather than embedded
  • serve all discovered documentation and commands with runbook serve
  • debug logs are written to ~/.runbook/logs/

contributing

Open a GitHub issue to report a bug or request a feature!

For developing the runbook application itself, check this out.