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

caml-lint

v0.1.0

Published

Validate and explain CAML adventure files (CAML Lite). Works alongside existing tools (Ink/Yarn/Unity/VTTs).

Downloads

99

Readme

Why this exists

CAML-Lint helps game and narrative tool developers catch structural bugs in adventure and quest data without changing how they write or run games.

It is designed to sit alongside Ink, Yarn, Twine, Unity, VTTs, and custom engines.

CAML-Lint

Validate and explain CAML adventure files.

CAML-Lint is a tiny, developer-friendly linter for CAML Lite (CAML adventure JSON). It is designed to help tool builders and game designers catch structural issues early (duplicate IDs, broken references, suspicious encounter typing, unreachable content patterns) without requiring any change to your existing toolchain.

  • Keep using Ink/Yarn/Twine for writing
  • Keep using Unity/Unreal/VTTs for runtime
  • Use CAML-Lint as a lightweight validation + QA layer

Install

npm install -g caml-lint

Use

caml-lint path/to/adventure.caml.json

Machine-readable output:

caml-lint path/to/adventure.caml.json --json

What it catches (v0.1)

Schema errors (hard failures):

  • Missing required top-level keys
  • Wrong type values for core objects

Warnings (practical QA):

  • Duplicate IDs across Locations/NPCs/Encounters/Quests/Items
  • Dangling references (startingLocation, startsAt, occursAt, location connections.target)
  • Name/type mismatches (e.g., “negotiation” encounter typed as combat)
  • “All encounters occur at the same location” (common generator bug)
  • “PC Party” modeled as an NPC (common modeling smell)

These checks are intentionally lightweight, so CAML-Lint can be adopted with near-zero overhead.

Examples

This repo includes working examples you can lint immediately:

caml-lint examples/the_tempests_wrath.caml.json
caml-lint examples/shadows_of_the_silent_court.caml.json

CI usage (GitHub Actions)

Add this to your workflow (example included in .github/workflows/lint.yml):

- name: Install caml-lint
  run: npm i -g caml-lint
- name: Lint CAML
  run: caml-lint examples/the_tempests_wrath.caml.json

CAML Lite (one-page schema)

The minimal schema lives at:

  • schema/caml-lite.schema.json

It is intentionally permissive and practical. It is not a complete CAML 2.0 spec.

Development

npm install
npm test

Roadmap (short)

  • Trace validation (caml-trace.jsonl ↔ module refs)
  • More semantic warnings (unreachable content, inconsistent gates)
  • Optional “fix suggestions” output (--fix-suggest)

License

MIT