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 🙏

© 2025 – Pkg Stats / Ryan Hefner

raydium-ui-v3

v0.0.1

Published

This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).

Readme

This is a Next.js project bootstrapped with create-next-app.

Getting Started

First, run the development server:

npm run dev
# or
yarn dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying pages/index.tsx. The page auto-updates as you edit the file.

API routes can be accessed on http://localhost:3000/api/hello. This endpoint can be edited in pages/api/hello.ts.

The pages/api directory is mapped to /api/*. Files in this directory are treated as API routes instead of React pages.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Project structure

.
├── src                         # Source files (alternatively `lib` or `app`)
│   ├── component               # Common components, as pure as possible, if component too complex, create a directory
│   ├── config                  # Project common settings, e.g. wallet support chain
│   ├── icons                   # Image files
│   ├── hooks                   # Project common hooks, don't put zustand store or feature usage only hook here
│   ├── pages                   # Entry page of each feature, ONLY write initial data fetching or zustand actions dispatch
│   ├── features                # Project page files, separate by domain
│   │   ├── Swap
│   │   │   ├── index.tsx       # Main page of each feature
│   │   │   ├── useXXStore.ts   # Feature use ONLY zustand store, for sharing store, put in src/store
│   │   │   ├── util.ts         # Feature use ONLY util, for sharing, put in src/util
│   │   │   └── components
│   │   └── ....(other feature pages, e.g. farm, pool)
│   ├── store                   # Sharing zustand store, use store/createStore to create a new store for easier debugging
│   ├── provider                # Common providers, usually wrap App component in pages/_app.tsx file
│   └── util                    # Common utility functions
└── README.md

Coding rules

  1. Zustand store should define actions(function) and state in initialization
  2. Use zustand action to call api or async operations as possible, DO NOT wrapped it in every hooks
  3. Common components should be as pure as possible, reduce side effects if wants to add features, add new props to control it
  4. Components in src/features/xxx/components should also be as pure as possible, let index.tsx pass functions and props into it (prevent business logic separate in everywhere

Components Map

  • <TokenAvatar> extends Chakra's <Avatar>, for avatar may be clickable/linkable in future, write this manually everytime is too complicated
    • prop:token coin's SplToken
  • <TokenSymbol> extends Chakra's <Text>, for text may have tooltip in future, write this manually everytime is too complicated
    • prop:token coin's SplToken
  • <Button> extends Chakra's <Button>
    • prop:validators handle app easy to see validation conditions
  • <ChartPanel> styled chart
  • <MessageBox> simple message display
    • prop:title message title
    • prop:status message level, current support: warning | error | info, default is info
    • prop:icon icon beside title
    • prop:children for message more than a simple string, you could wrap them as children
  • <MessageStrip> message display
    • prop:title message title
    • prop:desc message description
    • prop:status message level, current support: info | warning
    • prop:icon icon beside title
    • prop:children for more detail about message information, you could wrap them as children
    • prop:renderControlAction extra interactive/action relative to message

hooks Map

utils Map

  • searchItems() apply search logic, it will only sort the result by match condition (TODO: support sort factor)