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

@adityabheke/renderer-package

v1.0.16

Published

Production-ready React page renderer

Readme

📦 @adityabheke/renderer-package

A production-ready React page renderer that converts JSON schema into fully responsive UI using Tailwind CSS v3 and runtime CSS variables.

Built for dynamic website/page builder systems.


🚀 Features

  • ⚡ Schema-driven rendering
  • 🎨 Tailwind CSS v3 (Integration required in consumer app)
  • 📱 Fully responsive (container query variants supported)
  • 🎞 Built-in animation support (tailwindcss-animate)
  • 🧩 Plug-and-play integration
  • 📦 ESM + CJS support
  • 🧠 TypeScript definitions included
  • ⚠️ Requires Tailwind v3 configuration in the user project

📥 Installation

npm install @adityabheke/renderer-package

🎨 Tailwind CSS Setup (Required)

[!CAUTION] STRICT REQUIREMENT: This package is built for Tailwind CSS v3. DO NOT use Tailwind CSS v4, as it is currently not compatible with the generated class system used here.

1️⃣ Install Tailwind v3

If you haven't already, install Tailwind CSS v3 and its peer dependencies:

npm install -D tailwindcss@3 postcss autoprefixer

2️⃣ Initialize Configuration

npx tailwindcss init -p

3️⃣ Update tailwind.config.js

You must add the package's distribution files to your content array so Tailwind can scan them for used classes:

/** @type {import('tailwindcss').Config} */
module.exports = {
  content: [
    "./index.html",
    "./src/**/*.{js,ts,jsx,tsx}",
    "./node_modules/@adityabheke/renderer-package/dist/**/*.{js,ts,jsx,tsx}", // Add this line
  ],
  theme: {
    extend: {},
  },
  plugins: [
    require("tailwindcss-animate"), // Recommended for animation support
  ],
}

4️⃣ Add Tailwind Directives

Ensure your main CSS file (e.g., src/index.css) includes the Tailwind directives:

@tailwind base;
@tailwind components;
@tailwind utilities;

⚠️ Peer Dependencies

Make sure your project has the following installed:

npm install react react-dom react-router-dom lucide-react

Required versions:

  • react >= 18
  • react-dom >= 18
  • react-router-dom >= 6
  • lucide-react >= 0.300.0

🛠 Usage

Import Styles and Use the Renderer (Required Once)

import "@adityabheke/renderer-package/styles.css";
import { PageRenderer } from "@adityabheke/renderer-package";

function App() {
  return (
    <BrowserRouter>
      <Routes>
        <Route path='*' element={<PageRenderer url={CLIENT_URL} />} />
      </Routes>
    </BrowserRouter>
  )
}
CLIENT_URL = will be provided by admin

🧠 How It Works

  • Parses JSON schema

  • Resolves components using internal ComponentRegistry

  • Applies dynamic CSS variables

  • Leverages your project's Tailwind CSS v3 configuration for styling

  • Supports responsive container-based variants

  • Supports animation classes like:

    • animate-in
    • slide-in-from-*

📁 Package Output Structure

dist/
  index.js
  index.cjs
  index.d.ts
  styles.css

🧪 Tested With

  • Vite
  • React 18+

📌 Versioning

This package follows semantic versioning:

  • 1.x → Stable renderer core
  • 2.x → Breaking schema or architecture changes