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

@hozo/semantics

v0.1.0

Published

Universal landmarks, document sectioning, and semantic page structure primitives for Hozo.

Readme

@hozo/semantics

Universal landmarks, document sectioning, forms, disclosures, and semantic page structure primitives for Hozo.

import {
  Main,
  Header,
  Footer,
  Aside,
  Search,
  Section,
  Article,
  Nav,
  Figure,
  Figcaption,
  Time,
  Address,
  Fieldset,
  Legend,
  Details,
  Summary,
  TermList,
  Separator,
  Progress,
} from '@hozo/semantics'

export function Layout({ children }) {
  return (
    <>
      <Header>
        <Nav accessibilityLabel="Main Navigation" />
      </Header>
      <Main>
        <Article>
          <Time dateTime="2026-09-02">September 2, 2026</Time>
          <Figure>
            <Figcaption>Documentation overview</Figcaption>
          </Figure>
          {children}
        </Article>
        <Aside>
          <Search />
        </Aside>
      </Main>
      <Footer>
        <Address>[email protected]</Address>
      </Footer>
    </>
  )
}

Component Catalog

1. Landmarks & Sectioning

  • Main: The primary content landmark. Web lowers to <main>; Native lowers to <View role="main">.
  • Header: Page or section header. Web lowers to <header>; Native lowers to <View role="banner">.
  • Footer: Page or section footer. Web lowers to <footer>; Native lowers to <View role="contentinfo">.
  • Aside: Complementary content / sidebar. Web lowers to <aside>; Native lowers to <View role="complementary">.
  • Search: Search landmark container. Web lowers to <search>; Native lowers to <View role="search">.
  • Nav: Navigation landmark. Web lowers to <nav>; Native lowers to <View role="navigation">.
  • Section: Thematic section of a document. Web lowers to <section>; Native lowers to <View>.
  • Article: Self-contained composition. Web lowers to <article>; Native lowers to <View role="article">.

2. Informational & Figures

  • Figure / Figcaption: Annotated figure and caption. Web lowers to <figure> and <figcaption>; Native lowers to <View role="figure"> and <Text>.
  • Time: Machine-readable time (dateTime). Web lowers to <time dateTime="...">; Native lowers to <Text>.
  • Address: Contact information container. Web lowers to <address>; Native lowers to <View>.

3. Forms & Grouping

  • Fieldset / Legend: Grouping form controls with a caption. Web lowers to <fieldset> and <legend>; Native lowers to <View role="group"> and <Text>.

4. Disclosures

  • Details / Summary: Native HTML disclosure element. Web lowers to <details> and <summary>; Native maps to an accessible disclosure container.

5. Description Lists

  • TermList / Term / Description: Definition lists (<dl>, <dt>, <dd>). Accessible via TermList.Term and TermList.Description or standalone imports.

6. Separators & Progress

  • Separator: Content divider. Supports orientation="horizontal" | "vertical" and decorative. Web lowers to <hr>; Native lowers to an accessible separator view with accessibilityRole="separator".
  • Progress: Completion indicator (value, max). Web lowers to <progress>; Native lowers to an accessible bar with accessibilityRole="progressbar".

Features

  • Semantic HTML5 Web Output: Direct compiler lowering to real HTML5 landmark and semantic elements, completely free of react-native-web.
  • Accessible React Native Output: Automatically injects canonical accessibility roles (role="main", role="banner", role="contentinfo", role="complementary", role="search", role="figure") and maps captions to accessible <Text>.
  • Zero Runtime: Direct compiler lowerings with working React component fallbacks when uncompiled.

Part of Hozo, a Rust-powered universal UI compiler and accessibility-first layer for React Native. Most applications install @hozo/core and one build integration; see Getting started. Source and issues: github.com/iray-tno/hozo.