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

atcoder-gui

v1.0.0

Published

Browser automation tool for AtCoder with CLI interface

Readme

AtCoder GUI

A browser automation tool for AtCoder with CLI interface built with Node.js, TypeScript, and Playwright.

Features

  • Browser Automation: Launch a browser with UI using Playwright
  • Session Management: Persistent browser sessions with automatic restoration
  • CLI Commands: Interactive command line interface
  • Configuration Management: Persistent settings using the conf module
  • URL Opening: Open URLs with the open URL command
  • Automatic Startup: Opens default URL on application launch

Project Structure

atcoder-gui/
├── src/
│   ├── main.ts      # CLI application entry point and command handling
│   ├── browser.ts   # Playwright browser management and automation
│   ├── config.ts    # Configuration management using conf module
│   ├── session.ts   # Session persistence and restoration
│   └── *.test.ts    # Test files
├── dist/            # Compiled JavaScript output
├── eslint.config.js # ESLint configuration
└── package.json     # Project configuration

Installation

  1. Clone the repository
  2. Install dependencies:
    pnpm install
  3. Install Playwright browsers:
    npx playwright install chromium
  4. Build the project:
    pnpm run build

Usage

Interactive CLI

Start the interactive command prompt:

pnpm run start

This will start an interactive CLI with a command prompt where you can enter commands:

AtCoder GUI Interactive CLI
Type "help" for available commands or "exit" to quit
command> open https://atcoder.jp
command> config
command> help
command> exit

Available Commands

  • open <URL> - Open a URL in the browser
  • config - Show current configuration
  • help - Show available commands
  • exit - Exit the application

Configuration

Configuration is automatically managed using the conf module (similar to atcoder-cli). Settings are stored in the standard configuration directory for your operating system:

  • Windows: %APPDATA%\atcoder-gui\config.json
  • macOS: ~/Library/Preferences/atcoder-gui/config.json
  • Linux: ~/.config/atcoder-gui/config.json

Default configuration values:

{
  theme: 'light',
  autoStart: false,
  defaultUrl: 'https://atcoder.jp',
  windowSize: {
    width: 1200,
    height: 800
  },
  headless: false,
  devtools: true
}

You can modify settings programmatically through the configuration API, and they will be automatically persisted.

Session Management

The application automatically saves and restores browser sessions, including:

  • Cookies
  • Local storage data
  • Login states

Session data is stored separately from configuration and is automatically restored when the browser launches.

Development

Available Scripts

  • pnpm run build - Compile TypeScript to JavaScript
  • pnpm run dev - Watch mode compilation
  • pnpm run test - Run tests in watch mode
  • pnpm run test:run - Run tests once
  • pnpm run lint - Run ESLint
  • pnpm run lint:fix - Fix ESLint issues automatically
  • pnpm run start - Run the compiled CLI application
  • pnpm run clean - Remove compiled output

Testing

Run tests with Vitest:

pnpm run test

Code Quality

The project uses ESLint with TypeScript-specific rules for code quality:

pnpm run lint      # Check code quality
pnpm run lint:fix  # Auto-fix issues where possible

Technology Stack

  • Node.js - Runtime environment
  • TypeScript - Programming language
  • Playwright - Browser automation
  • Vitest - Testing framework
  • ESLint - Code linting
  • conf - Configuration management library

License

MIT