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

ez-next

v3.0.2

Published

Helper components for common NextJS usecases

Downloads

5

Readme

Usage

Right now I've moved all generic react component based code to ez-react-lib

This is now going to be used to extend next based functionality

import { HeadMeta } from 'ez-next';

// example of global use, as it will apply opengraph data App wide
// anything not set can be overriden within the app

const Index = ({ Component, pageProps }: AppProps) => {
  return (
    <>
      {/* All props are optional */}
      <HeadMeta
        url='https://nextjs.org/'
        title='Next.js by Vercel - The React Framework'
        author='Vercel'
        siteName='Vercel'
        themeColor='#000000'
        description='Production grade React applications that scale. The world’s leading companies use Next.js by Vercel to build static and dynamic websites and web applications.'
        canonical='https://nextjs.org/'
        // videoHref='https://optional-video-url'
        iconApple='/apple-touch-icon.png'
        icon192x192='/android-chrome-192x192.png'
        icon512x512='/android-chrome-512x512.png'
        metaImageSrc='/android-chrome-512x512.png'
        locale='en-GB' // defaults to en-AU 🦘
        manifestPath='/manifest.json'
        type='OpenGraphTypes'
        twitter={{
          siteAtHandle: '@vercel',
          authorAtHandle: '@leeerob',
          titleOverride: 'Next JS',
          descriptionOverride:
            'Production grade React applications that scale.',
          imageSrcOverride: '/better-512x512.png',
        }}
        // all the below default to false so only enabled if included
        enableDarkMode // This is just the meta tag for dark mode
        enableTitleFromSlug
        enableUrlFromWindow
        enableCanonicalFromWindow
      />
      <Component {...pageProps} />
    </>
  );
};

export default Index;

When working with source code

Install the depenencies using your favourite package manager

npm i

or

yarn

or

pnpm i

Then compile with tsup from src/index.ts

npm run build

or

yarn build

or

pnpm run build

Run development to watch changes to re-run build

npm run dev

or

yarn dev

or

pnpm run dev