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

@sleepingrian/uswds

v1.41.0

Published

[![npm Version](https://img.shields.io/npm/v/@sleepingrian/uswds?style=for-the-badge)](https://www.npmjs.com/package/@sleepingrian/uswds) [![npm Downloads](https://img.shields.io/npm/dt/@sleepingrian/uswds?style=for-the-badge)](https://www.npmjs.com/packa

Downloads

57

Readme

🦅 United States Web Design System 🦅

npm Version npm Downloads GitHub issues code style: prettier

The United States Web Design System includes a library of open source UI components and a visual style guide for U.S. federal government websites.

This repository is a port of the original design system itself, the goal of this project is to make USWDS components viable and easy to use inside of React projects, without the need to compile the system's original SCSS, and providing a simplified development experience.

This project has taken a simplified approach to converting USWDS components to React components. While there are other React ports of the USWDS system, they are either outdated, hard to setup, or not maintained at all. We aim to become a leading USWDS react port, and look forward to the future!

Important Notes

This project tests it's components using the NextJS framework, and this component library is compatible with any React-based framework, however the current version 1.38.0 has a breaking issue with images, this will eventually be fixed but the cause is how static images are usually served differently based on the specific framework, thus using images isn't as simple as pulling them from the package itself. If you are using NextJS, you can create a images folder on the public folder and then place all of the packages assets folder under it, and update the image paths to /images/image.png. We do apologize for this, but it will be fixed in a future version, ASAP.

The project also provides default text props, for example the <Banner/> component hosts an owner prop which you can customize, but by default it will be set to "United States government" unless the prop is otherwise edited!

Roadmap

  • We plan to implement more customization via the actual USWDS css.
  • We plan to implement all USWDS components within the next month, but keep in mind we are a 2 man team, but we do have great contributors!

Example Component

<Banner owner="United States government" action="Here's how you know" />

Closing Notes

This project is a work-in-progress, but you should be able to start using it now, not all components are implemented however.