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

react-extensible-engine

v1.0.1

Published

React Extensible Engine (REE) - a lightweight, extensible React + TypeScript component library template.

Readme

React Extensible Engine (REE)

A lightweight, extensible component library template for building websites with React + TypeScript + TSX. REE ships ten reusable, accessible components plus a small engine layer that lets you register your own components and render them from plain data.

  • All React components are .tsx, all utilities/helpers are .ts
  • Typed props, className support, and basic accessibility on every component
  • Normal React architecture (no custom DOM engine)

Installation

npm install react-extensible-engine
# peer dependencies
npm install react react-dom

Quick start

import { Engine, Button, Card } from "react-extensible-engine";

export default function App() {
  return (
    <Engine theme="default">
      <Card title="Welcome" subtitle="React Extensible Engine">
        <p>Build UIs from reusable, typed components.</p>
        <Button variant="primary" onClick={() => alert("Hi!")}>
          Get started
        </Button>
      </Card>
    </Engine>
  );
}

Components

| Component | Key props | | --- | --- | | Button | variant, size, loading, fullWidth, leftIcon, rightIcon | | Card | title, subtitle, media, footer, onSelect | | Navbar | brand, links, actions, sticky | | Sidebar | open, onClose, side, items, header, footer | | HamburgerMenu | open / defaultOpen, onOpenChange, label | | Modal | open, onClose, title, footer, closeOnBackdrop | | Dropdown | items, value, onSelect, open, onOpenChange | | Tabs | items, value / defaultValue, onChange | | Toast | open, message, variant, duration, onClose | | ChatBox | messages, onSend, typing, placeholder |

Every component accepts className so you can style it with any CSS solution. Class names are prefixed with ree- (e.g. ree-button ree-button--primary).

Engine layer

Engine (alias of EngineProvider) holds a component registry and an event bus. Renderer turns a declarative node tree into React elements using that registry.

import { Engine, Renderer, Button, Card } from "react-extensible-engine";

const nodes = [
  {
    type: "Card",
    props: { title: "From data" },
    children: [{ type: "Button", props: { variant: "secondary" }, children: "Click" }],
  },
];

export function Page() {
  return (
    <Engine components={{ Card, Button }}>
      <Renderer nodes={nodes} />
    </Engine>
  );
}

Simple example

import { useState } from "react";
import { Engine, Navbar, HamburgerMenu, Modal, Toast, Tabs, Button } from "react-extensible-engine";

export function Demo() {
  const [open, setOpen] = useState(false);
  const [toast, setToast] = useState(false);

  return (
    <Engine>
      <Navbar
        brand="REE"
        links={[{ label: "Home", href: "/", active: true }]}
        actions={<HamburgerMenu>Menu content</HamburgerMenu>}
        sticky
      />

      <Tabs
        items={[
          { id: "one", label: "One", content: <Button onClick={() => setOpen(true)}>Open modal</Button> },
          { id: "two", label: "Two", content: <Button onClick={() => setToast(true)}>Show toast</Button> },
        ]}
      />

      <Modal open={open} onClose={() => setOpen(false)} title="Hello">
        Modal body content.
      </Modal>

      <Toast open={toast} message="Saved successfully" variant="success" onClose={() => setToast(false)} />
    </Engine>
  );
}

Utilities and helpers

  • utils/dom.tsisBrowser, lockBodyScroll, focusFirst, scrollToBottom
  • utils/events.tsuseEscapeKey, useClickOutside, EventBus
  • utils/styles.tscx, scoped, mergeStyles
  • helpers/createElement.tsxcreateElement, withDefaults
  • helpers/mergeProps.tsmergeProps
  • helpers/componentUtils.tsuseComponentId, useControllableState, useToggle, useMounted, useLatest

License

MIT