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

gw2-class-icons

v0.3.0

Published

Guild Wars 2 class icons as npm assets with path helpers.

Readme

gw2-class-icons

This repository provides optimized and enhanced Guild Wars 2 (GW2) wiki class icons tailored for use in applications and Discord servers. It collects high-resolution reinterpretations, losslessly optimized assets, and ready-to-use sizes so developers and community maintainers can quickly add crisp class icons to apps, bots, and emoji collections.

Purpose

  • Provide a single source of truth for GW2 class icons optimized for different targets (apps, web, Discord).
  • Maintain high-quality assets while reducing file size and ensuring transparent backgrounds and consistent naming.

Contents

  • wiki/high-res/: brand-new, high-resolution reinterpretations of the existing GW2 wiki icons.
  • wiki/optimized/: losslessly optimized and resized versions intended for production use, generated via an enhanced script.
  • wiki/raw/: the actual GW2 wiki icons in their original form.

Usage

  • These icons are provided as-is for free usage within the bounds of the original rights holders.
  • Not intended for monetary use or redistribution.

npm package

npm install gw2-class-icons
const { getIconPath, hasIcon, iconNames, iconSizes } = require("gw2-class-icons");

const guardian40 = getIconPath("Guardian", "40px");
// => "wiki/40px/Guardian.png"

const guardianAbsolute = getIconPath("Guardian", "40px", { absolute: true });
// => "/.../node_modules/gw2-class-icons/wiki/40px/Guardian.png"

const exists = hasIcon("Guardian", "svg");
// => true

You can also reference files directly from the package:

  • gw2-class-icons/wiki/20px/Guardian.png
  • gw2-class-icons/wiki/40px/Guardian.png
  • gw2-class-icons/wiki/150px/Guardian.png
  • gw2-class-icons/wiki/high-res/Guardian.png
  • gw2-class-icons/wiki/raw/Guardian.png
  • gw2-class-icons/wiki/svg/Guardian.svg

Optimization notes

  • Images are optimized to preserve visual fidelity while minimizing bytes. Formats include PNG (lossless) and optionally WebP for modern apps.
  • Keep transparency intact for overlay use in UIs and messaging apps.

Contributing

  • Add new or improved icons to wiki/raw/ or wiki/high-res/ and open a PR with a short description of the source and intended output sizes.
  • If you have a bulk optimization script or CI step, include it in the PR so others can reproduce results.

Credits & License

  • Icons originate from the GW2 wiki; respect the original wiki licensing and attribution requirements.
  • This repository is intended to redistribute optimized builds for convenience — include attribution where required and follow the wiki's license terms.
  • Legal disclosure: © ArenaNet LLC. All rights reserved. NCSOFT, ArenaNet, Guild Wars, Guild Wars 2, GW2, Heart of Thorns, Path of Fire, End of Dragons, Secrets of the Obscure, Janthir Wilds, Visions of Eternity, and all associated logos, designs, and composite marks are trademarks or registered trademarks of NCSOFT Corporation. All other trademarks are the property of their respective owners.

Class Icon Table | class | Raw (20px) | Optimized (40px) | Enhanced (150px+) | | --- | --- | --- | --- | | Amalgam | | | | | Antiquary | | | | | Berserker | | | | | Bladesworn | | | | | Catalyst | | | | | Chronomancer | | | | | Conduit | | | | | Daredevil | | | | | Deadeye | | | | | Dragonhunter | | | | | Druid | | | | | Elementalist | | | | | Engineer | | | | | Evoker | | | | | Firebrand | | | | | Galeshot | | | | | Guardian | | | | | Harbinger | | | | | Herald | | | | | Holosmith | | | | | Luminary | | | | | Mechanist | | | | | Mesmer | | | | | Mirage | | | | | Necromancer | | | | | Paragon | | | | | Ranger | | | | | Reaper | | | | | Renegade | | | | | Revenant | | | | | Ritualist | | | | | Scourge | | | | | Scrapper | | | | | Soulbeast | | | | | Specter | | | | | Spellbreaker | | | | | Tempest | | | | | Thief | | | | | Troubadour | | | | | Untamed | | | | | Vindicator | | | | | Virtuoso | | | | | Warrior | | | | | Weaver | | | | | Willbender | | | |