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

monterey.js

v1.0.2

Published

A JSON (JavaScript Object Notation) converter/language transpiles to JavaScript

Readme

🚀 Monterey.js

Transform JSON into JavaScript with elegance and type safety.

License npm version PRs Welcome

✨ Why Monterey?

Ever wished JSON could do more? Monterey.js bridges the gap between static configuration and dynamic code. Write your logic in a familiar JSON format and let Monterey transform it into production-ready JavaScript.

"Configuration as code, but make it JSON" - that's Monterey's philosophy.

🚀 Quick Start

Get up and running in seconds:

# Install globally using your favorite package manager
npm i -g monterey.js      # npm
pnpm add -g monterey.js   # pnpm
yarn global add monterey.js   # yarn

📝 Example

Here's how simple it is to use Monterey:

1️⃣ Create your Monterey file (hello.monjson):

{
    "$schema": "https://raw.githubusercontent.com/AbdullahCXD/monterey.js/refs/heads/develop/schema/monterey.schema.json",
    "header": {
        "montereyVersion": "1.0.0"
    },
    "variables": [
        {
            "name": "greeting",
            "value": "Hello, World! 🌍",
            "immutable": true
        }
    ]
}

2️⃣ Transform it to JavaScript using the CLI:

# Transform a single file
monterey build hello.monjson

# Or watch for changes
monterey watch hello.monjson

# Specify output directory
monterey build hello.monjson --out dist/

🎯 Features

  • 💎 Type-Safe - Built with TypeScript for robust development
  • 🔄 JSON-Powered - Write in JSON, get JavaScript
  • 🧩 Extensible - Create custom transpilers for your needs
  • 🛡️ Version Control - Built-in version compatibility checks
  • 🎨 Modern Syntax - Clean, readable output code
  • 📝 Schema Validation - Catch errors before they happen

🛠️ CLI Commands

# Build a file or directory
monterey build <input> [options]

# Watch mode
monterey watch <input> [options]

# Check file syntax
monterey check <input>

# Show version
monterey --version

Options:
  --out, -o     Output directory
  --watch, -w   Watch for changes
  --minify, -m  Minify output
  --help, -h    Show help

🛠️ API

Core Components

// Create a new instance
const monterey = new Monterey();

// Choose your transpiler
monterey.setTranspiler(customTranspiler); // Optional

// Build methods
const fromFile = monterey.buildFile("input.monjson");
const fromString = monterey.build(jsonString);

File Structure

Your Monterey files follow this intuitive structure:

{
    "$schema": "...",
    "header": {
        "montereyVersion": "1.0.0"
    },
    "variables": [...],
    "functions": [...],
    "classes": [...]
}

🚨 Error Handling

Monterey provides clear, actionable error messages:

| Code | Description | |------|-------------| | OUTDATED | Time to update Monterey | | INVALID_VERSION | Version mismatch | | TRANSPILE_ERROR | Transpilation failed | | BUILD_ERROR | Build process error | | INVALID_EXT | Wrong file extension | | NO_TRANSPILER | Transpiler not set | | FN_NOT_FOUND | File not found |

🚧 Development

# Get started
pnpm install

# Build
pnpm build

# Test
pnpm test

🤝 Contributing

Contributions make Monterey better! Whether it's:

  • 🐛 Fixing bugs
  • ✨ Adding features
  • 📝 Improving docs
  • 🎨 Enhancing design

All contributions are welcome! Check out our Contributing Guide to get started.

📄 License

MIT © AbdullahCXD