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

jobsys-newbie-next

v0.1.1

Published

AI-friendly React components built with Ant Design 6.1

Downloads

6

Readme

jobsys-newbie-next

AI-friendly React components built with Ant Design 6.1 and Pro Components.

Features

  • AI 友好:完整的 TypeScript 类型定义、详细的 JSDoc 注释、丰富的使用示例
  • 自动化发版:基于 Changesets 的版本管理和 CI/CD 自动化
  • 完整测试:单元测试、集成测试,覆盖率 > 80%
  • Playground:交互式组件展示和文档

Installation

pnpm add jobsys-newbie-next

Quick Start

1. 使用 NewbieProvider

import { NewbieProvider } from 'jobsys-newbie-next'

function App() {
  return (
    <NewbieProvider
      config={{
        locale: 'zh_CN',
        defaults: {
          NewbieForm: {
            layout: 'vertical',
          },
        },
      }}
    >
      <YourApp />
    </NewbieProvider>
  )
}

2. 使用 NewbieSearch

import { NewbieSearch } from 'jobsys-newbie-next'
import type { SearchFieldConfig } from 'jobsys-newbie-next'

function SearchExample() {
  const fields: SearchFieldConfig[] = [
    { key: 'name', type: 'input', title: '姓名' },
    { key: 'age', type: 'number', title: '年龄' },
  ]

  return (
    <NewbieSearch
      fields={fields}
      onSubmit={(query) => {
        console.log('Search query:', query)
      }}
    />
  )
}

Components

NewbieProvider

Global configuration provider that supports default props override for all components.

Features:

  • Global configuration management
  • Component-level default props override
  • Deep merge configuration
  • Ant Design locale support

Example:

<NewbieProvider
  config={{
    locale: 'zh_CN',
    defaults: {
      NewbieForm: { layout: 'vertical' },
      ProFormText: { placeholder: '请输入' },
    },
  }}
>
  <App />
</NewbieProvider>

NewbieSearch

Advanced search component with condition filtering, sorting, and persistence.

Features:

  • Condition filtering system (equal, notEqual, like, between, etc.)
  • Expandable search items
  • Sorting functionality
  • Persistence support
  • Responsive layout

Example:

<NewbieSearch
  fields={[
    { key: 'name', type: 'input', title: '姓名' },
    { key: 'age', type: 'number', title: '年龄' },
  ]}
  onSubmit={(query) => console.log(query)}
/>

Development

# Install dependencies
pnpm install

# Development (library)
pnpm dev

# Development (playground)
cd playground && pnpm dev

# Build
pnpm build

# Test
pnpm test

# Test with coverage
pnpm test:coverage

# Lint
pnpm lint

# Lint and fix
pnpm lint:fix

Project Structure

newbie-next/
├── src/
│   ├── components/          # Components
│   │   ├── provider/        # NewbieProvider
│   │   ├── search/          # NewbieSearch
│   │   ├── form/            # NewbieForm (coming soon)
│   │   └── table/           # NewbieTable (coming soon)
│   ├── hooks/               # Custom Hooks
│   ├── utils/               # Utilities
│   └── types/               # Type definitions
├── playground/              # Playground application
├── .github/workflows/       # CI/CD configuration
└── .changeset/              # Changesets configuration

Testing

The project uses Vitest and @testing-library/react for testing.

# Run tests
pnpm test

# Run tests with UI
pnpm test:ui

# Run tests once
pnpm test:run

# Generate coverage report
pnpm test:coverage

AI-Friendly Design

All code follows AI-friendly principles:

  1. Complete TypeScript types: All APIs have explicit type definitions
  2. Detailed JSDoc comments: Every function, component, and property has documentation with examples
  3. Semantic naming: Clear variable and function names
  4. Clear code structure: Modular, single responsibility
  5. Rich examples: Multiple usage scenarios

Contributing

See DEVELOPMENT_GUIDE.md for detailed development guidelines.

License

ISC