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

@redonvn/redai-fe-v2-sdk

v0.0.1

Published

Standard React Typescript Frontend SDK Template

Readme

Redai Frontend SDK Template

Overview

This is a comprehensive React TypeScript SDK template designed for building modern, flat-design component libraries. It features a built-in ActionBus for telemetry/events, strict TypeScript typings, and a utility-first styling approach using Tailwind CSS.

Features

  • Architecture: Library mode (Vite), ESM/CJS output.
  • Core: In-memory ActionBus with middleware support (PII filtering, Audit logging).
  • Styling: Tailwind CSS with CSS Variables for theming (Dark/Light mode ready).
  • Design: Flat design, soft rounded corners, no borders/shadows.
  • Components: 40+ Production-ready components across all categories.
  • Quality: ESLint, Prettier, Vitest, Storybook.

Installation

npm install
# or
pnpm install

Commands

  • pnpm dev: Start dev server (if applicable)
  • pnpm build: Build the library for distribution (dist/)
  • pnpm storybook: Launch Storybook documentation
  • pnpm test: Run unit tests (Vitest)
  • pnpm lint: Lint code
  • pnpm format: Format code

Usage

Theming

Import the base styles in your app's entry point:

import 'redai-fe-v2-sdk/dist/style.css'

To switch themes, toggle the .theme-dark class on the html or body tag.

Component Usage

import { Button, Input, useDispatchAction } from 'redai-fe-v2-sdk'

const MyForm = () => {
  const dispatch = useDispatchAction()
  
  return (
    <div>
      <Input placeholder="Enter data..." />
      <Button onClick={() => console.log('Clicked')}>Submit</Button>
    </div>
  )
}

Telemetry / ActionBus

Events are automatically dispatched by interactive components. You can also subscribe globally:

import { actionBus } from 'redai-fe-v2-sdk'

actionBus.subscribeAll((event) => {
  console.log('Telemetry Event:', event)
})

Publishing

  1. Update version in package.json
  2. Run pnpm build
  3. Run npm publish

Component Catalog

Data Entry

  • Button - Primary, Secondary, Ghost, Danger variants with loading states
  • Input - Text input with error states and validation
  • Textarea - Multi-line text input with resize options
  • Checkbox - Custom styled checkbox with label support
  • Radio - Radio button with label
  • RadioGroup - Group of radio buttons with orientation control
  • Select - Dropdown select with custom options
  • DatePicker - Native date picker with custom styling

Form

  • Form - Context provider with validation and ActionBus integration
  • FormField - Wrapper component with label and error display

Layout

  • Box, Row, Col - Flexbox primitives
  • Grid - Responsive grid system (1-12 columns)
  • Stack - Flexible stack layout (horizontal/vertical)
  • Container - Max-width container with responsive padding
  • Spacer, Divider - Visual separators
  • DashboardLayout - Complete dashboard layout with sidebar and header

Typography

  • Heading (H1-H6) - Heading hierarchy with size variants
  • Text, Title, Caption, Label - Text primitives
  • Typography - Polymorphic text component
  • Code - Inline and block code display

Display

  • Badge - Status badges with variants (success, error, warning, info)
  • Image - Image with fallback support and aspect ratios
  • Icon - SVG icon wrapper with size variants
  • Spinner - Loading spinner with size and color variants

Feedback

  • Modal - Dialog/modal with backdrop and sizes
  • Toast - Notification toast with auto-dismiss
  • Tooltip - Hover tooltip with positioning

Navigation

  • Tabs - Tab navigation with content panels
  • Breadcrumb - Breadcrumb navigation
  • Pagination - Page navigation with ellipsis

Project Structure

  • src/bus: ActionBus logic
  • src/components: UI Components (Atoms, Molecules, Organisms)
  • src/middleware: Event middleware (PII, Logger)
  • src/styles: Design tokens and CSS