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

osrs-tools

v2.14.0

Published

A comprehensive TypeScript library for Old School RuneScape (OSRS) data and utilities, including quest data, skill requirements, and general game information

Readme

OSRS Tools

NPM Version Downloads CI Test Coverage License: MIT

A fully-typed TypeScript library of Old School RuneScape game data and logic — quests, accounts, diaries, combat achievements, slayer, clues, items, and more.

Zero runtime dependencies, dual CJS/ESM output, tree-shakeable, Node ≥ 18.

Install

npm install osrs-tools

Quick Start

import { QuestTool, OsrsAccount } from "osrs-tools";

const account = OsrsAccount.fromJson({
  name: "Player123",
  skills: {
    attack: { level: 60 },
    strength: { level: 55 },
    defence: { level: 50 },
  },
});

const questTool = new QuestTool(account);
const dragonSlayer = QuestTool.getQuestByName("Dragon Slayer I");

console.log(questTool.canCompleteQuest(dragonSlayer));

Import from the root package or from a subpath to keep bundles small:

import { Duradel, getMasterByName } from "osrs-tools/slayer";
import { DiaryTool, getDiaryByName } from "osrs-tools/diary";
import { CombatAchievementTool } from "osrs-tools/combat-achievements";

What's included

| Module | Subpath | Highlights | | --- | --- | --- | | Quests | osrs-tools/quest | QuestTool, 189+ quests, requirement classes (level, quest, item, combat, location…) | | Accounts | osrs-tools/account | OsrsAccount (hiscores-compatible), Skill enum, skill metadata | | Diaries | osrs-tools/diary | 10 regional achievement diaries, DiaryTool for progress checks | | Combat Achievements | osrs-tools/combat-achievements | All 637 tasks across six tiers, CombatAchievementTool | | Slayer | osrs-tools/slayer | 9 masters, tasks, points, unlocks/extends/buys | | Experience | osrs-tools/tools | XP ⇄ level conversion, full XP table | | Validation | osrs-tools/utils | Skill/level validation, ValidationError | | Clues, items, guilds, leagues | root osrs-tools import | ClueScrollHelper, Item, HunterGuild, league data |

For the full API surface and source layout, see docs/PROJECT_OVERVIEW.md.

Development

git clone https://github.com/jamescer/osrs-tools.git
cd osrs-tools
npm install
npm run build
npm test

| Command | Description | | --- | --- | | npm run build | Compile TypeScript to dist/ | | npm test | Run the test suite | | npm run lint | Lint and auto-fix with ESLint | | npm run format | Format with Prettier | | npm run changeset | Record a change for the next release |

See docs/DEVELOPMENT.md for the full setup and release workflow.

Contributing

Contributions are welcome. We use Conventional Commits and changesets for releases.

  1. Fork and clone the repo, create a branch
  2. Make your change and add tests
  3. npm test && npm run lint
  4. npm run changeset to record a changelog entry
  5. Open a pull request

Please also review our Code of Conduct and Security Policy.

License

MIT © James Cerniglia

Data sourced from the Old School RuneScape Wiki.