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

@flamingo-stack/openframe-frontend-core

v0.0.58-snapshot.20260311113511

Published

Shared design system and components for all Flamingo platforms

Readme

@flamingo-stack/openframe-frontend-core

Shared design system and component library for Flamingo platforms (OpenMSP, OpenFrame, Admin Hub, Flamingo Website, TMCG).

Installation

npm install @flamingo-stack/openframe-frontend-core

Usage

Components

import { Button, Card, Input, Modal, Tag } from '@flamingo-stack/openframe-frontend-core/components/ui'
import { YouTubeEmbed, FigmaPrototypeViewer } from '@flamingo-stack/openframe-frontend-core/components/features'
import { GitHubIcon, OpenFrameLogo } from '@flamingo-stack/openframe-frontend-core/components/icons'

Hooks

import { useDebounce, useMediaQuery, useToast } from '@flamingo-stack/openframe-frontend-core/hooks'

Utilities

import { cn, formatDate, formatPrice, getBaseUrl } from '@flamingo-stack/openframe-frontend-core/utils'

Styles

// Import in your layout or _app.tsx
import '@flamingo-stack/openframe-frontend-core/styles'

Tailwind Config

Extend the shared Tailwind config in your project:

import designSystemConfig from '@flamingo-stack/openframe-frontend-core/tailwind.config.ts'

export default {
  ...designSystemConfig,
  content: [
    './src/**/*.{js,ts,jsx,tsx}',
    './node_modules/@flamingo-stack/openframe-frontend-core/src/**/*.{js,ts,jsx,tsx}'
  ]
}

Package Exports

| Export Path | Description | |---|---| | . | Main entry (all components, hooks, utils) | | ./components/ui | Base UI components (Button, Card, Input, Modal, Tag, etc.) | | ./components/features | Complex components (YouTubeEmbed, FigmaPrototypeViewer, AuthProvidersList) | | ./components/icons | Icon components (GitHubIcon, OpenFrameLogo, XLogo) | | ./components/icons-v2 | Generated icon set | | ./components/navigation | Navigation components (Header, StickySectionNav) | | ./components/toast | Toast notification system | | ./hooks | React hooks (useDebounce, useMediaQuery, useToast, etc.) | | ./utils | Utilities (cn, formatDate, formatPrice, getBaseUrl, platform-config) | | ./types | TypeScript type definitions | | ./styles | CSS styles and ODS design tokens | | ./nats | NATS WebSocket utilities | | ./fonts | Font configuration |

Design System (ODS)

The package includes the OpenFrame Design System (ODS) with:

  • CSS Variables — Design tokens as custom properties
  • Responsive Typographytext-h1 through text-h6 utilities via Tailwind plugin
  • Platform Theming — Automatic color adaptation based on NEXT_PUBLIC_APP_TYPE
  • Breakpointsmd: 800px, lg: 1280px, xl: 1440px (mobile-first)

Tailwind Merge Configuration

The cn() utility extends tailwind-merge to recognize ODS typography classes (text-h1text-h6) as a separate group, so they don't conflict with text-color classes:

import { cn } from '@flamingo-stack/openframe-frontend-core/utils'

// text-h5 and text-red-500 coexist correctly
cn('text-h5', 'text-red-500') // => "text-h5 text-red-500"

Platform Support

| Platform | App Type | Accent Color | |---|---|---| | OpenMSP | openmsp | Yellow (#FFC008) | | OpenFrame | openframe | Cyan (#5EFAF0) | | Flamingo | flamingo | Pink (#FF6B6B) | | Admin Hub | admin-hub | Pink (#F357BB) | | Flamingo Teaser | flamingo-teaser | Pink | | TMCG | tmcg | Purple (#8B5CF6) |

Platform detection is automatic via NEXT_PUBLIC_APP_TYPE environment variable.

Development

# Build the package
npm run build

# Build without type declarations (faster)
npm run build:fast

# Watch mode
npm run dev

# Type checking
npm run type-check

# Run tests
npm run test

# Storybook
npm run storybook

# Publish via yalc (local development)
npm run yalc:push
npm run yalc:watch

Architecture

src/
  components/
    ui/           # Base components (Button, Card, Input, Modal, Tag, etc.)
    features/     # Complex components (YouTubeEmbed, FigmaPrototypeViewer)
    icons/        # Centralized icon components
    icons-v2-generated/  # Auto-generated icon set
    navigation/   # Header, StickySectionNav
    toast/        # Toast notification system
  hooks/
    ui/           # UI hooks (useDebounce, useMediaQuery)
    api/          # Data fetching hooks
    platform/     # Platform configuration hooks
  styles/
    index.css     # Main stylesheet
    ods-*.css     # Design token modules
  utils/
    cn.ts         # clsx + tailwind-merge
    platform-config.tsx  # Unified platform configuration
  types/          # TypeScript type definitions
  nats/           # NATS WebSocket integration

Key Dependencies

  • React 18+/19 — Peer dependency
  • Radix UI — Accessible component primitives
  • Tailwind CSS 3 — Styling with custom design tokens
  • Class Variance Authority — Component variant management
  • Framer Motion — Animations
  • Lucide React — Icons

License

Private package for Flamingo CX projects.