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

@miichom/lodestone

v0.1.1

Published

Fast, worker-safe Lodestone parsing ✨

Downloads

23

Readme

@miichom/lodestone

npm node

A minimal, fully typed Lodestone client for Final Fantasy XIV, providing access to all endpoints exposed by the Lodestone through a consistent, schema-driven API.

Designed for server-side and worker runtimes: Node.js 20+, Bun, Cloudflare Workers, and Web Workers.

Why?

Most Lodestone scrapers rely on DOM emulation (e.g. JSDOM, cheerio), which increases bundle size, slows cold starts, and often breaks in edge or serverless environments.

@miichom/lodestone avoids DOM dependencies entirely, using a predictable, schema-driven parsing model that works consistently across modern runtimes.

Features

  • 🪶 Lightweight and dependency-minimal
  • 🧭 Fully typed TypeScript API
  • ⚡ Edge- and serverless-friendly
  • 🧱 No DOM, no JSDOM, no cheerio
  • 🌐 Access to all Lodestone endpoints
  • 🔍 Search and lookup across supported resources
  • 🧩 Optional column-based data fetching

Install

npm install @miichom/lodestone

Example usage

import Lodestone from "@miichom/lodestone";

const ls = new Lodestone();

// fetch a character
const character = await ls.character.get(12345678);

// fetch specific columns
const partial = await ls.character.get(12345678, {
  columns: ["mount"],
});

// search characters
const results = await ls.character.find({
  q: "Y'shtola",
  worldname: "Twintania",
});

Additional Lodestone endpoints follow the same API pattern and are exposed through their respective namespaces.

Options

The Lodestone constructor accepts a small set of configuration options.
These apply globally to all endpoints (character, cwls, freecompany, linkshell, pvpteam).

const ls = new Lodestone({
  locale: "eu",
  headers: {
    "user-agent": "my-xiv-tool/1.0",
  },
});

locale?: "de" | "eu" | "fr" | "jp" | "na"

Selects which Lodestone region to target. Defaults to "na".

Each locale maps to its own Lodestone instance:

  • na → https://na.finalfantasyxiv.com/lodestone
  • eu → https://eu.finalfantasyxiv.com/lodestone
  • jp → https://jp.finalfantasyxiv.com/lodestone
  • fr → https://fr.finalfantasyxiv.com/lodestone
  • de → https://de.finalfantasyxiv.com/lodestone

All requests made through the client automatically use the selected locale.

headers?: Record<string, string>

Optional request headers applied to every Lodestone request.

  • Header keys are normalized to lowercase.
  • A default User‑Agent is always prepended:
curl/0.1.0 (+https://github.com/miichom/lodestone)

If you provide your own user-agent, it is appended:

headers: {
  "user-agent": "my-app/1.0",
}
// → curl/0.1.0 (+https://github.com/miichom/lodestone) my-app/1.0

For more information on the User-Agent header, please see https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/User-Agent.

While optional, providing a custom User‑Agent is recommended for any automated or high‑volume usage.

Column options (for get only)

Some endpoints (notably characters) expose additional “column” pages on Lodestone.
You can request them via the columns option:

const profile = await ls.character.get(12345678, {
  columns: ["mount", "minion"],
});

Columns are fetched lazily and merged into the returned object.

Attribution

Final Fantasy XIV and all related assets, including data accessed through the Lodestone, are the intellectual property of © SQUARE ENIX CO., LTD. All rights reserved.

This project is not affiliated with or endorsed by Square Enix.

Contributing

See CONTRIBUTING.md.

License

See LICENSE.md.