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

lmucs-shared-types

v1.0.25

Published

Shared types

Downloads

1,035

Readme

Shared TypeScript Types

Quick Start

Note: You should only need to do this once.

  • Clone this repo and run bun link.
  • Then, in your project that uses these types, run bun link lmucs-shared-types.

Updating types

You should run bun ci after each update to the types, so your other projects are refreshed.

  • Add/update your types, then run bun ci which will clean and build new types.
  • For projects hosted on Vercel, you must bun pub to publish these types to NPM.

Linking a NextJS project with these shared types

https://chatgpt.com/share/58780926-f656-46f7-b106-7a033b075789

Notes

  • Main project (NextJS) will use types in the dist directory, which is why it must be refreshed each time.

Shared Types Repo Setup

  • Remove dist from .gitignore, so the dist files are in the repo

package.json

 "files": [
    "/dist"
 ],

Troubleshooting

Types are not reflected in Vercel

  • Remove bun.lockb and node_modules from NextJS project and re-install using bun i, then push again.

NPM Setup

npm login
cd project-shared-types
npm init
npm publish

https://chatgpt.com/share/eaa775d6-4252-4969-bc3b-ac50d4721da0

Reference

  • https://github.com/masaok/react-hook-gyroscope/blob/main/package.json