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

@fogito/core-ui

v2.0.4

Published

Fogito Core UI — modern, reusable React component library (TypeScript + Tailwind v4). Successor to the legacy fogito-core-ui.

Readme

@fogito/core-ui

Modern, reusable React component library for the Fogito platform — the successor to the legacy fogito-core-ui.

Stack: React 19 · TypeScript (strict) · Tailwind CSS v4 · Radix UI · CVA · TanStack Query (peer)

Ships compiled ESM + type declarations in dist/ — no build step required in the consuming app.

Install

npm install @fogito/core-ui

Peer dependencies: react >= 18, react-dom >= 18, @tanstack/react-query >= 5.

Setup

1. Import the base styles

// main.tsx
import "@fogito/core-ui/styles.css";

2. Generate the component classes

If your app uses Tailwind CSS v4 (recommended), let Tailwind scan the library source in your main CSS file:

@import "tailwindcss";
@source "../node_modules/@fogito/core-ui/src";

If your app does not use Tailwind, import the pre-built stylesheet instead:

import "@fogito/core-ui/prebuilt.css";

3. Wrap your app

import { AppProvider } from "@fogito/core-ui";

createRoot(document.getElementById("root")!).render(
  <AppProvider>
    <App />
  </AppProvider>,
);

Usage

import { Button, Modal, Select, Avatar, useToast } from "@fogito/core-ui";

function Example() {
  const { toast } = useToast();
  return <Button onClick={() => toast.success("Saved")}>Save</Button>;
}

What's inside

| Area | Exports | |---|---| | Components | Button, Input, Select, MultiSelect, Modal, Table, DataTable, Tabs, Dropdown, Tooltip, Avatar, Badge, Alert, Calendar, DatePicker, TimePicker, Pagination, Sidebar, Skeleton, Spinner, Toaster, PickMap, PieChart, Progress, VerificationCodeInput and more | | Hooks | useDebouncedValue, useModal, useCookie, useDimensions, useTimer | | API | createApiClient — typed, envelope-aware fetch client | | Auth | createAuth — session + permission hooks (useSession, usePermission) | | i18n | createI18n — translation provider + useTranslation | | Utils | cn, formatting and URL helpers, icon set |

Development

npm install
npm run typecheck   # tsc --noEmit
npm run build       # compiles to dist/ (runs automatically on publish)

Adding a component: create src/components/<name>/<Name>.tsx + index.ts, re-export it from src/index.ts.

Publishing

npm version patch   # or minor / major
npm publish         # 2FA-protected; prepare script builds dist/ automatically

License

MIT © Fogito