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

@tty-pt/hyle-react-dom

v0.1.3

Published

Pre-built React DOM components for hyle — table, filter, and form primitives.

Downloads

343

Readme

@tty-pt/hyle-react-dom

Pre-built table, filter, and form components for React. Your data has shape — these components just show it. Pass in the state from @tty-pt/hyle-react and your CRUD UI is done.

Requires @tty-pt/hyle-react. See examples/react for a full working app.

Quick start

The snippet below renders a filterable, paginated table with a create form. Pass in the list and form state — HyleTable and HyleFormFields handle the rest.

import { makeHyleHooks, makeRestAdapter } from '@tty-pt/hyle-react'
import { hyleDomComponents, HyleTable, HyleTableFilters } from '@tty-pt/hyle-react-dom'

const adapter = makeRestAdapter('/api')
const { useList, useFilters, useForm } = makeHyleHooks({
  blueprint,
  adapter,
  components: hyleDomComponents,  // wires filter inputs automatically
})

function UserList() {
  const filters = useFilters({ model: 'user' })
  const list    = useList(filters.query)

  return (
    <>
      <HyleTableFilters filters={filters} />
      <HyleTable list={list} filters={filters} />
    </>
  )
}

function UserForm() {
  const form = useForm({ model: 'user' })
  return (
    <form onSubmit={form.onSubmit}>
      <HyleFormFields model="user" Filter={form.Filter} />
      <button type="submit">Save</button>
    </form>
  )
}

Installation

npm install @tty-pt/hyle-react-dom @tty-pt/hyle-react

Peer dependencies: @tty-pt/hyle-react, react >= 19

Components

Filter Inputs

| Component | Field type | Notes | |---|---|---| | FilterString | string | <input type="text"> | | FilterNumber | number | <input type="number"> | | FilterBoolean | boolean | Checkbox or three-state <select> via appearance prop | | FilterReference | reference | <select> (default) or <input>+<datalist> autocomplete via appearance prop | | FilterFile | file | <input type="text"> |

Value Renderers

| Component | Field type | Notes | |---|---|---| | BooleanValue | boolean | Read-only checkbox | | ReferenceValue | reference | Resolved display label |

Table

| Component | Props | Description | |---|---|---| | HyleTable | list, blueprint?, filters?, onRowClick?, selectedId?, components? | HyleTableBody + HyleTablePagination | | HyleTableBody | same as above | Sortable <table> with optional inline column filters and custom value renderers | | HyleTableFilters | { filters: HyleFiltersState } | Apply / Clear buttons | | HyleTablePagination | { list: HyleListState } | Prev/Next + per-page <select> |

Form

| Component | Props | Description | |---|---|---| | HyleFormFields | { blueprint?, model, Filter } | Renders label + Filter[key] for every field in a model |

Pre-built Component Map

| Export | Description | |---|---| | hyleDomComponents | Ready-to-use HyleFieldComponents map containing all filter inputs and value renderers. Pass as components to makeHyleHooks. |

Testing

npm test --prefix packages/hyle-react-dom