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

@renderx-plugins/components

v0.1.1

Published

JSON component definitions for RenderX-based hosts. A versioned catalog of components that thin hosts can serve and plugins can consume without coupling.

Readme

@renderx-plugins/components

JSON component definitions for RenderX-based hosts. This package publishes a catalog of components (as JSON) that thin hosts can serve and plugins can consume without coupling.

What is this?

  • A versioned set of JSON component files (button.json, image.json, etc.)
  • An index.json listing all component files (contract used by hosts)
  • A package.json renderx.components declaration so hosts can auto-discover the assets

Install

npm install @renderx-plugins/components

How hosts consume these components

  1. Discovery and copy (dev/build):
    • Hosts scan node_modules for packages with renderx.components
    • Hosts copy the declared folders to /public/json-components
  2. Runtime (browser):
    • Host fetches /json-components/index.json
    • Then fetches each file listed there

Package contract

  • index.json must enumerate all component files:
{
  "version": "1.0.0",
  "components": ["button.json","input.json","image.json"]
}
  • Each component JSON includes stable metadata (keep additive; breaking changes require a major bump):
{
  "id": "button",
  "metadata": { "name": "Button" },
  "template": { "type": "html", "markup": "<button>Click</button>" }
}
  • package.json must declare the component folders so hosts can discover them:
{
  "name": "@renderx-plugins/components",
  "version": "0.1.0",
  "renderx": { "components": ["json-components"] }
}

Repository layout

  • json-components/ — component files (one <type>.json per component)
  • json-components/index.json — list of component files (single source of truth)
  • tests/ — unit tests and schema checks (Vitest recommended)

Versioning policy

  • Patch: fixes to existing component JSON (no schema/ID changes)
  • Minor: add new components or additive fields
  • Major: remove/rename components, change IDs, or breaking schema changes

Validation & testing

  • Include JSON Schema and tests to validate each component file
  • Ensure index.json lists every component file and has no stale entries

Publishing

Prerequisites

  1. NPM Account: Ensure you have an npm account and are logged in:

    npm login
  2. NPM Token: For automated publishing, set up an NPM_TOKEN secret in GitHub repository settings.

  3. Permissions: Ensure you have publish permissions for the @renderx-plugins scope.

Manual Publishing

  1. Validate the package:

    npm run validate
  2. Update version and publish:

    # For patch releases (bug fixes)
    npm version patch
    
    # For minor releases (new components, additive changes)
    npm version minor
    
    # For major releases (breaking changes)
    npm version major
  3. Publish to npm:

    npm publish --access public

Automated Publishing (Recommended)

The repository includes GitHub Actions for automated publishing:

  1. Create a version tag:

    npm version patch  # or minor/major
    git push origin main --tags
  2. GitHub Actions will automatically:

    • Validate the package structure
    • Publish to npm with public access
    • Create a GitHub release

Pre-publish Validation

The package includes automatic validation that runs before publishing:

  • ✅ Validates all JSON files are properly formatted
  • ✅ Ensures index.json lists all component files
  • ✅ Checks for stale entries in the index
  • ✅ Validates component structure (id, metadata, template fields)

Publishing Checklist

Before publishing a new version:

  • [ ] All component JSON files are valid
  • [ ] index.json is updated with new components
  • [ ] Version follows semantic versioning
  • [ ] README is updated if needed
  • [ ] All tests pass (if applicable)

Contributing

Adding New Components

  1. Create the component JSON file in json-components/:

    {
      "id": "my-component",
      "metadata": {
        "name": "My Component",
        "description": "Description of the component"
      },
      "template": {
        "type": "html",
        "markup": "<div>Component markup</div>"
      }
    }
  2. Update json-components/index.json to include the new component:

    {
      "components": [
        "existing-component.json",
        "my-component.json"
      ]
    }
  3. Validate your changes:

    npm run validate
  4. Test locally by installing the package in a test project.

Component Guidelines

  • IDs must be unique and follow kebab-case naming
  • Keep changes additive when possible (avoid breaking changes)
  • Include meaningful metadata (name, description, category if applicable)
  • Test your components in a real RenderX host before publishing

Development Workflow

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/new-component
  3. Make your changes and validate: npm run validate
  4. Commit your changes: git commit -m "feat: add new component"
  5. Push to your fork: git push origin feature/new-component
  6. Create a Pull Request

Why a separate package?

  • Decouples the thin host from component data
  • Enforces clean boundaries and consistency across hosts
  • Enables reuse and independent versioning of component catalogs

License

Apache-2.0