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

ink-design

v0.1.2

Published

InkUI - a React + CSS component library derived from the Twilight blog design system

Readme

InkUI

InkUI is a React + CSS component library derived from the Twilight blog design system. It uses two colors — --bg and --fg — and derives every neutral, border, hover, and shadow from them with color-mix().

Features

  • TypeScript-first React components
  • Spec-compliant CSS tokens and component states
  • Dark mode via html[data-mode="dark"]
  • Reduced-motion support
  • Small, dependency-free runtime

Installation

npm install ink-design react react-dom

Import the stylesheet once in your app (the package exports map serves dist/inkui.css):

import 'ink-design/styles.css';

Usage

import {
  Button,
  Chip,
  Input,
  Select,
  Switch,
  SegmentedControl,
  Card,
  Modal,
  message,
} from 'ink-design';

function App() {
  const [enabled, setEnabled] = React.useState(false);
  const [modalOpen, setModalOpen] = React.useState(false);

  return (
    <>
      <Button primary icon={<span>+</span>}>写文章</Button>
      <Chip solid onClick={() => alert('selected')}># React</Chip>
      <Input variant="box" placeholder="评论内容…" />
      <Select
        mode="tags"
        placeholder="输入标签后回车"
        options={[{ label: 'React', value: 'React' }]}
        onChange={(values) => console.log(values)}
      />
      <Switch checked={enabled} onChange={(e) => setEnabled(e.target.checked)} />
      <SegmentedControl
        value="published"
        options={[
          { label: '公开', value: 'published' },
          { label: '私密', value: 'private' },
          { label: '草稿', value: 'draft' },
        ]}
      />
      <Card variant="article">Article card</Card>
      <Modal
        open={modalOpen}
        title="确认"
        onOk={() => setModalOpen(false)}
        onCancel={() => setModalOpen(false)}
      >
        Content
      </Modal>
      <Button onClick={() => message.info('已保存', 2)}>轻提示</Button>
    </>
  );
}

Components

antd 风格能力集:Button Chip Badge Status IconButton Input Select(单选/多选/tags,antd 风格自绘下拉)AutoComplete Cascader TreeSelect Tree Transfer Upload DatePicker TimePicker Calendar Checkbox Radio Switch Slider Rate InputNumber InputOTP Mentions SegmentedControl Tabs Pagination Toolbar Dropzone CopyButton Card Icon Typography Space Flex Divider Layout Row Col ConfigProvider App Alert Result Empty Progress Skeleton Spin message notification Modal Drawer Popover Tooltip Popconfirm Dropdown Table List Descriptions Timeline Tag CheckableTag Statistic Collapse Image Avatar CountBadge Carousel QRCode Watermark Menu Breadcrumb Steps Anchor Form Splitter Affix。

2026-09 新增的 9 个 antd 对标组件(AutoComplete Cascader TreeSelect Tree Transfer Upload DatePicker TimePicker Calendar):全部走 useControllableState 受控契约、forwardRef + displayName、@/ 别名导入,样式只从 --fg/--bg 派生;Upload 不做真实网络上传(在 beforeUpload 中自行接管),DatePicker showTime 复用 TimePicker。

博客时代的原始组件(NavRow NavLink AdminNav AdminNavLink TOC TOCLink)保留。一次性的遗留组件(Dialog/Toast/Pager/MiniAction/SearchButton/ShareButton/FAB/NotifyPanel/SearchOverlay/ColorInput/Range/TagInput)已于 2026-09 移除,语义分别由 Modal/message/Pagination/Button/Select mode="tags" 承接;原生 <select> 场景使用内部件 NativeSelect。

Development

npm install
npm run typecheck
npm run build          # build the library
npm run build:demo     # build the component demo into demo-dist/

The Vite library build emits dist/index.mjs, dist/index.cjs, TypeScript declarations, and dist/inkui.css. The Vite demo build emits a single self-contained demo-dist/index.html with all CSS and JavaScript inlined by vite-plugin-singlefile.