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

@jezweb/flare-components

v1.4.0

Published

Shared component library for Flare edge-rendered websites

Readme

@jezweb/flare-components

Shared component library for Flare edge-rendered SME websites. Built with Hono JSX for Cloudflare Workers.

Installation

npm install @jezweb/flare-components hono

Usage

import { Hono } from 'hono'
import {
  renderPageComponents,
  Layout,
  type Page,
  type SiteConfig,
} from '@jezweb/flare-components'

const app = new Hono()

app.get('/:slug', async (c) => {
  const config: SiteConfig = await getConfig()
  const page: Page = await getPage(c.req.param('slug'))

  const components = await renderPageComponents(page, config)

  return c.html(
    <Layout config={config} page={page}>
      {components}
    </Layout>
  )
})

export default app

Components

| Component | Designs | Description | |-----------|---------|-------------| | Hero | basic, riverside, alpine, metro | Page hero sections | | Services | icon-cards, feature-list, image-grid | Service offerings | | About | bio-left, bio-centered | About/bio sections | | ContentSection | centered, left-aligned, split | Rich content blocks | | FAQ | accordion, toggle, two-column | FAQ sections | | Testimonials | carousel-dark, quotes-light, single-featured | Customer testimonials | | Contact | split-form, minimal | Contact information/forms | | Gallery | grid, masonry | Image galleries | | Footer | simple, columns | Page footers | | Layout | - | HTML wrapper with theme |

Agent-First Content Format

Rich text content uses a structured JSON format optimised for AI agents (no markup parsing ambiguity):

import type { Content } from '@jezweb/flare-components'

const content: Content = [
  {
    type: 'paragraph',
    children: [
      { text: 'We offer ' },
      { text: 'premium services', bold: true },
      { text: ' with guaranteed results.' }
    ]
  },
  {
    type: 'list',
    style: 'bullet',
    items: [
      [{ text: '24/7 support' }],
      [{ text: 'Licensed & insured', bold: true }]
    ]
  }
]

See docs/agent-content-format.md for full specification.

Design Registry

For MCP introspection, the package exports design constants:

import { designRegistry } from '@jezweb/flare-components'

// { hero: ['basic', 'riverside', 'alpine', 'metro'], ... }
console.log(designRegistry)

Types

import type {
  // Page types
  Page, SiteConfig,
  // Component props
  HeroProps, ServicesProps, AboutProps, ContentProps, FAQProps,
  // Content format (agent-first)
  Content, BlockNode, InlineNode, TextNode, LinkNode, ButtonNode,
  ParagraphBlock, HeadingBlock, ListBlock, QuoteBlock, CalloutBlock,
} from '@jezweb/flare-components'

// Type guards and helpers
import {
  isTextNode, isLinkNode, isParagraphBlock, isListBlock,
  paragraph, simpleContent,  // Helper functions
} from '@jezweb/flare-components'

// Content renderer (for custom rendering)
import { renderContent } from '@jezweb/flare-components'

Part of Flare Ecosystem

  • @jezweb/flare-components - This package (component library)
  • flare-site-template - GitHub template for new sites
  • flare-mcp-server - MCP server for content management

License

Proprietary - Jezweb Pty Ltd