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

@org-serturner-institut/code-library

v1.3.0

Published

## Content

Downloads

1,661

Readme

Getting Started

Content

| Name | Type | Description | | -------------------- | ------------------ | ------------------------------------------------------------------------- | | useBreakpointValues | Hook | Get diferent values based on media queries | | useClickOutside | Hook | Triggers a function when clicks outside the selected HTML tag | | useUpdateEffect | Hook | Runs the useEffect hook only when the references are updated | | useFlexRowSize | Hook | Calculates the width of all direct children of an element (gaps included) | | useKeyPress | Hook | | | useScrollHorizontal | Hook | Ads the proper events to allow the horizontal scroll with the mouse | | useSize | Hook | Get the size of an element | | UIModal | Component (layout) | A modal component | | NumberInput | Component | A number field with more frinedly buttons | | SelectMultiple | Component | A multiple selector | | Slider | Component | An horizontal slider (features: arrows, dots, loop animation) | | ui-section-container | class (CSS) | Centers a container on the middle of the screen, has horizontal margins | | ui-flex-center | class (CSS) | Shortcut for centers the content | | ui-shadow-center-sm | class (CSS) | | | ui-shadow-center-md | class (CSS) | | | ui-shadow-center-lg | class (CSS) | | | ui-shadow-center-xl | class (CSS) | | | ui-shadow-bottom-sm | class (CSS) | | | ui-shadow-bottom | class (CSS) | | | ui-shadow-deep | class (CSS) | Special shadow to create light sources (deep) | | ui-shadow-raised | class (CSS) | Special shadow to create light sources (raise) | | ui-slider | class (CSS) | Adds the scroll snap features | | cssMerge | tools | custom configuration for tailwind-merge | | cssVariants | tools | custom configuration for tailwind-variants |

Develop: The Storybook and documentation

NPM publish

Use the library

In order to work you must configure a small things:

// tailwind.config.ts

import { UIStyles } from '@org-serturner-institut/code-library/src/tailwindcss';

const config = {
    content: [
        './node_modules/@org-serturner-institut/code-library/src/**/*.{js,ts,jsx,tsx}',
        // ...other paths
    ],
    plugins: [UIStyles]
    // ...other configs
}

export default config;
// next.config.mjs

const nextConfig = {
    // ... other configurations
    transpilePackages: ['@org-serturner-institut/code-library'],
}

Status Badges

See how to configure: https://github.com/Sidnioulz/storybook-addon-tag-badges