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

ctfd-autorouter

v1.0.0

Published

A userbot for CTFd to automatically download jeopardy CTF challenges and group challenges based on their attributes (to improve team efficiency).

Readme

ctfd-autorouter is a userbot for CTFd to download jeopardy CTF challenges and group challenges based on their attributes (to improve team efficiency). It also has features for workspaces, preservation, and downloading challenge/instance info and attachments.

My aim for this project is to allow my CTF team to preserve challenges for our write-ups and to easily assign challenges to each member to save us time.

Rating or reviewing this project for Flavortown? See here for instructions on how to set up a CTFd instance!

Usage

Demo Video

Requirements

  • Node.js ≥ 24
  • NPM
  • A Linux distribution with bash installed

Installation and Basic Commands

Install the package with npm i -g git+https://github.com/RedBigz/ctfd-autorouter.git and run npx ctf login to log into a CTFd server. npx ctf info can be used to verify instance info and check information about the current CTFd account. Check the features for more commands.

Features

Basic Challenge Searching and Attachment Downloads

NOTE: This program has only been tested with User Mode, which most likely has a few differences relating to the "solved" status of challenges. Thus, npx ctf challenges may not accurately show whether your team solved a challenge in Team Mode.

To open a list of all the challenges in a CTFd instance, run npx ctf challenges.

To open challenge information, you can run npx ctf challenge <name>. Note that <name> can be a substring!

Along with the challenge information are attachment codes. These are a two number colon-separated symbol which represent a file attachment. These codes can be used with npx ctf download <code>.

CTF Preservation

To preserve a CTF, run npx ctf preserve <out_directory> to preserve all challenges to that domain. You'll end up with a nice directory tree with all the challenges laid out for future write-ups.

An image of the preserved directory tree.

Workspaces

ctfd-autorouter also has "workspaces" which allow for the creation of a clean directory with challenge attachments quickly.

You can quickly make a workspace with all your challenge information by running npx ctf workspace <challenge name>.

Shell output when opening a workspace.

Workspaces are stored at ~/ctfd-workspaces/<ctf>/<category>/<challenge>:

/home/may/ctfd-workspaces/
└── placeholderctf
    ├── osint
    │   └── this-isnt-an-osint-challenge
    └── steg
        └── this-isnt-a-steg-challenge
            └── 3dbenchy1.stl

Ranking

One of the main features in this program is the ability to perform heuristics on CTF challenges. To view a file's heuristic "tags", run npx ctf heur <path>.

Tag output with ctf heur.

Otherwise, you can rank an entire CTF using a preserved folder. Run npx ctf rank <preservation path> <tags>, with <tags> substituted with a comma-separated list of heuristic tags. You can cross out any challenges with specific tags by prefixing any unwanted tags with asterisk (*). Tags are also prioritised by the order they're given (beginning to end)

Rank listing with tags.

Here are some example tag lists:

  • dotnet,managed,unmanaged,source,binary,*graphic - Prefer .NET and managed assemblies over binaries and source code, while blocking challenges with images.
  • graphic,shell,*dotnet,*java - Prefer images and shell scripts over .NET and Java programs.

Available tags

  • dotnet - Compiled MSIL programs (.exe, .dll) [C#, F#]
  • java - Java Classes (.class)
  • elf - ELF File format (used in *nix systems)
  • dos - .exe files (both DOS and peexe)
  • managed - managed assemblies (.exe, .dll, .class)
  • unmanaged - unmanaged assemblies (.exe, .dll, .elf)
  • model - 3D models (e.g. .obj, .stl, .fbx)
  • cad - CAD files (e.g .f3d, .scad)
  • source - Source Files
  • shell - Shell Scripts (.sh, .zsh, .fish)
  • graphic - Graphics (PNG, JPEG, SVG)
  • image - Disk Images (.iso, .img)
  • archive - Archives (TAR, XZ, GZip, LZMA, BZip, 7Zip)
  • other - Other filetypes

Credits