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

@openpets/adventofcode

v1.0.0

Published

Comprehensive plugin for Advent of Code 2025 - fetch puzzles, submit answers, track progress, and get AI help for solving programming puzzles

Readme

Advent of Code Plugin

A comprehensive OpenCode plugin for solving Advent of Code puzzles with AI assistance. Fetch puzzles, submit answers, track progress, and get help for programming challenges.

Setup

1. Get Session Token

  1. Log into adventofcode.com
  2. Open browser developer tools (F12)
  3. Go to Application > Cookies
  4. Copy the session cookie value

2. Configure Environment

Create a .env file:

AOC_SESSION_TOKEN=your_session_token_here
AOC_YEAR=2025  # Optional, defaults to current year
AOC_LEADERBOARD_ID=your_leaderboard_id  # Optional

3. Test Connection

npm run quickstart
# or
opencode run "test adventofcode connection"

Available Tools

Core Functions

  • adventofcode-test-connection - Test plugin configuration and connectivity
  • adventofcode-get-puzzle - Get puzzle description for a specific day
  • adventofcode-get-input - Get puzzle input data
  • adventofcode-submit-answer - Submit answers to puzzles
  • adventofcode-list-puzzles - List all puzzles with completion status

Progress Tracking

  • adventofcode-get-user-stats - Get your completion statistics
  • adventofcode-get-leaderboard - View private leaderboard standings

Usage Examples

Daily Workflow

# Get today's puzzle
opencode run "get today's puzzle"

# Get puzzle input
opencode run "get puzzle input for day 5"

# Submit answer
opencode run "submit answer for day 5 part 1: 42"

Catch Up on Previous Days

# List unsolved puzzles
opencode run "list puzzles for 2025"

# Get specific puzzle
opencode run "get puzzle for day 3 2025"

# Check your stats
opencode run "get my user stats"

Leaderboard

# View leaderboard
opencode run "get my leaderboard"

# With specific ID
opencode run "get leaderboard 123456"

Example Queries

  • "Get today's puzzle description"
  • "What is the input for day 7?"
  • "Submit 12345 as answer for day 2 part 1"
  • "Show my progress for this year"
  • "List all puzzles I haven't solved yet"
  • "Get puzzle for day 15 from 2023"

Environment Variables

Required

  • AOC_SESSION_TOKEN - Your Advent of Code session cookie

Optional

  • AOC_YEAR - Default year (defaults to current year)
  • AOC_LEADERBOARD_ID - Private leaderboard ID for quick access

Response Format

All tools return JSON responses:

{
  "success": true,
  "data": "...",
  "message": "Operation completed"
}

Error responses:

{
  "success": false,
  "error": "Error message",
  "details": { ... }
}

Rate Limiting

Be mindful of Advent of Code's rate limits:

  • Don't submit answers too rapidly
  • Cache puzzle inputs locally
  • Respect the spirit of the competition

Troubleshooting

Session Token Issues

If you get authentication errors:

  1. Log out and back into adventofcode.com
  2. Get a fresh session token
  3. Update your .env file

Puzzle Not Available

Puzzles unlock at midnight EST each day in December. You'll get errors for future days.

Wrong Answer Format

Answers must be submitted as strings, even if they're numbers. The plugin handles this conversion.

Development

This plugin uses the OpenPets SDK with proper schema validation and error handling. See the source code for implementation details.

Contributing

Feel free to submit issues or enhancement requests!