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

flagtrack

v1.0.7

Published

CTF Progress Tracker and Task Management Tool

Downloads

27

Readme

flagtrack

A comprehensive CTF challenge tracking and management tool for teams

npm version License: MIT

flagtrack is a command-line tool that helps CTF teams manage challenges, track progress, and collaborate effectively. It provides a structured approach to organizing writeups, automating Git workflows, and maintaining team progress dashboards.

🚀 Features

  • Structured Challenge Management: Create and organize challenges by category
  • Automatic README Generation: Keep track of team progress with auto-updating dashboards
  • Git Integration: Streamlined Git workflows for team collaboration
  • Task Completion Tracking: Record flags, points, and solvers for each challenge
  • Team Leaderboard: Track individual contributions and generate statistics
  • GitHub Actions Support: Automatic README updates when challenges are solved

📋 Installation

# Global installation (recommended)
npm install -g flagtrack

# Verify installation
flagtrack --version

🧩 Getting Started

Setting up a new CTF project

# Initialize a new CTF project
flagtrack setup

This interactive command will:

  • Create configuration for a new CTF competition
  • Set up categories for challenges
  • Configure GitHub Actions for automatic README updates
  • Create the necessary directory structure

Creating a new challenge task

# Create a new challenge task
flagtrack create

This will:

  • Create appropriate folders and files for the challenge
  • Generate a writeup template
  • Create and checkout a Git branch for the task
  • Automatically commit and push the branch

Completing a challenge task

# Mark a challenge as complete
flagtrack solve

Use this command when you've solved a challenge to:

  • Record the flag, points, and solver information
  • Update the writeup with solution details
  • Merge the completed task back to main branch
  • Clean up the task branch

Updating the progress dashboard

# Generate/update the README progress tracker
flagtrack update

This will:

  • Scan all challenge directories
  • Compile statistics and completion status
  • Generate a comprehensive README with progress information
  • Show challenge details, flags, and solvers

Viewing the team leaderboard

# Show team leaderboard and contributor statistics
flagtrack leaderboard

This will:

  • Generate a ranking of all challenge solvers
  • Show points and challenges completed by each person
  • Identify top categories for each solver
  • Offer export options (Markdown or JSON)

📂 Directory Structure

flagtrack follows a structured approach to organizing CTF challenges:

CTF_Name/
├── 01_Crypto/
│   ├── 01_challenge_name/
│   │   ├── writeup.md       # Challenge writeup
│   │   ├── challenge_files/ # Original challenge files
│   │   ├── workspace/       # Playground for experiments and tests
│   │   ├── exploit/         # Final solution files
│   │   ├── screenshots/     # Visual evidence
│   │   └── notes.txt        # Working notes
│   └── ...
├── 02_Web/
├── 03_Pwn/
└── ...

📝 Writeup Format

Each challenge has a writeup.md file with the following structure:

# 🧩 Challenge Name

**Category:** Web  
**Points:** 250  
**Flag:** `flag{example_flag_here}`  
**Solver:** Team Member Name

---

## 📝 Challenge Description

> Original challenge description here...

---

## 🛠️ Steps to solution

Detailed walkthrough of the solution...

---

## 🧠 Notes & Takeaways

Things learned, techniques to remember...

🤝 Git Workflow

flagtrack implements a streamlined Git workflow:

  1. Start a challenge: flagtrack create creates a branch like web-01-challenge-name
  2. Work on solution: Make changes in the task branch
  3. Complete challenge: flagtrack solve updates solution, merges to main, and cleans up
  4. Track progress: GitHub Actions automatically updates the README

🔄 GitHub Actions Integration

When properly set up, flagtrack creates a GitHub Actions workflow to automatically update your README whenever writeups are modified. This keeps your progress dashboard current without manual intervention.

🛠️ Advanced Usage

Configuration

The configuration is stored in .flagtrack/config.yml in your repository:

ctfName: HackThePlanet 2025
categories:
  1: Crypto
  2: Web
  3: Pwn
  4: Forensics
  5: Misc
  6: Rev
parentDir: null
createdAt: "2025-04-03T12:34:56.789Z"

Programmatic Usage

You can use flagtrack in your scripts:

const flagtrack = require('flagtrack');

// Run commands programmatically
flagtrack.commands.updateReadme()
  .then(() => console.log('README updated'))
  .catch(err => console.error(err));

📚 Command Reference

| Command | Description | |---------|-------------| | flagtrack setup | Initialize a new CTF project | | flagtrack create | Create a new challenge task | | flagtrack solve | Mark a challenge as completed | | flagtrack update | Update the README progress tracker | | flagtrack leaderboard | Generate team contribution statistics | | flagtrack --help | Show help information | | flagtrack <command> --help | Show help for a specific command |

🔐 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.