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

@rssb/ui

v0.0.1

Published

RSSB shared React UI library

Downloads

23

Readme

RSSB UI Component Library

An internal, TypeScript-based React component library for the Rwanda Social Security Board (RSSB) organization. Built with modern tools and atomic design principles to ensure consistency across all RSSB digital products.

🌟 Overview

This private component library serves as the foundation for all RSSB web applications, ensuring a consistent user experience and accelerating development across teams.

Key Features

  • 🏢 Official RSSB design system implementation
  • 📦 Built with TypeScript for enhanced reliability
  • ⚡️ Powered by Vite and SWC for optimal performance
  • 📚 Comprehensive Storybook documentation
  • 🎨 Structured using atomic design principles
  • 🔒 Private, internal package for RSSB use only

🏗️ Component Structure

Following atomic design principles for scalable architecture:

src/
└── components/
    ├── atoms/        # Basic RSSB UI elements (Button, Input, etc.)
    ├── molecules/    # Simple component combinations
    ├── organisms/    # Complex RSSB-specific UI components
    ├── templates/    # RSSB application layout templates
    └── pages/        # Complete page implementations

🚀 Getting Started

For RSSB Developers

  1. Ensure you have access to the RSSB private npm registry
  2. Set up your npm configuration with the appropriate credentials
# Authenticate with the RSSB private registry
npm login --registry=https://rssb-registry.com

# Install the library in your project
yarn add @rssb/ui-components

For Library Developers

# Clone the repository from RSSB's internal GitLab
git clone https://gitlab.rssb.rw/frontend/ui-components.git

# Navigate to the project directory
cd ui-components

# Install dependencies
yarn install

📦 Usage in RSSB Applications

import { Button } from "@rssb/ui-components";

function LoginForm() {
  return (
    <Button variant="primary" onClick={() => console.log("Logged in")}>
      Login
    </Button>
  );
}

🛠️ Available Scripts

  • yarn dev - Starts Storybook for component development
  • yarn build - Builds the library for production
  • yarn test - Runs the test suite
  • yarn lint - Runs ESLint for code quality

📁 Project Structure

rssb-ui/
├── .storybook/          # Storybook configuration
├── src/
│   ├── components/      # RSSB React components
│   ├── utils/           # Utility functions
│   └── index.ts         # Main entry point
├── stories/             # Storybook stories
├── tests/               # Test files
└── [Config files...]    # Various configuration files

📚 Documentation

Internal documentation is available through Storybook and our internal developer portal:

  1. Storybook (for component exploration):

    • Local: Start with yarn storybook and visit http://localhost:6006
  2. Developer Portal:

    • Comming soon!

🤝 Contributing

As an internal RSSB project, contributions are welcome from all RSSB team members:

  1. Create a new branch from develop
  2. Make your changes following our coding standards
  3. Update tests and documentation
  4. Submit a merge request to develop

🔐 Security

This is a private package containing RSSB-specific implementations. Do not share or distribute this code outside of RSSB.

🔄 Version Control & Updates

We use semantic versioning for releases.

👥 Team

  • RSSB Front-ent Team

📋 Changelog

See CHANGELOG.md for a list of changes and updates.


Copyright © 2024 Rwanda Social Security Board (RSSB). All rights reserved.