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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@pinpt/react

v3.1.13

Published

The Pinpoint UI Library for React

Downloads

22

Readme

Pinpoint React Library

npm GitHub issues GitHub Workflow Status GitHub Workflow Status

Usage

Installing:

npm i @pinpt/react

After installation, import the base styles. This is similar to a style reset and includes only the minimal styles for basic functionality.

The library is designed to be easily themable with CSS.

import '@pinpt/react/dist/base.css';

Components can be imported as so:

import { Statistic } from '@pinpt/react';

const component = () => <Statistic.Bar claps={21} views={5} />;

Building Your Site:

There are two primary ways to build a site using this library, either using prebuilt components, or custom-building the application yourself. Using prebuilt components is the easiest way to get up and running, and you can read more about them here.

Using the components individually provides for more customization options, but you'll need to be careful to include a few important parts. The most important is the Pinpoint component to wrap your content entries. Without this, analytics and link unfurling will not work as expected. Read more about implementation here.

Read the docs

Check out the docs for detailed implementation guides. You can also play with the Interactive Storybook

Local Dev

If you want to do local dev with the App Template you can use the following:

In this folder, cd into node_modules and then:

cd react && npm link
cd react-dom && npm link

This will link te react and react-dom libraries so they can be used by the other project.

Then, in the app-template folder, run:

npm link react react-dom

This will then link those library into the node_modules for app-template and then allow you to make changes to this project and then test them live in the other. You'll still need to run npm run build with each change to make sure those changes are compiled and then npm run dev in the app-template to pick them up.