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

supersonic-dashboard-sdk

v0.0.1

Published

Table of contents:

Downloads

2

Readme

Frontend

Table of contents:

Getting started

This package shouldn't be run in isolation. Instead, you should follow the instruction from the Setup development environment section from the contribution file.

Key technologies/libraries

Architecture

Note: Any folder that doesn't match this structure should be considered legacy and should be refactored.

Example structure:

  • UI
    • Molecules
    • Organisms
  • Features
    • User
      • Hooks
      • Components
      • Modals
      • Utils
      • Providers
    • Organization
    • Project
    • Chart
    • Dashboard
    • Space
    • Visualization
  • API
  • Pages

This structure offers two entry points (through features or pages) which makes it easier for new developers to learn the codebase. Plus, it eliminates abstract global folders, reducing potential dumping grounds.

Inspiration: Feature-driven folder structure

UI

Inspired by the Atomic Design Structure.

~~Atoms~~

We shouldn’t need this folder as Mantine should provide all the components at this level.

Molecules

They are made up of one or more atomic components. They should only include the minimal amount of logic and state necessary to perform their intended function. Examples of molecular components include form fields, cards, and other similar UI elements that are composed of multiple atomic components.

Guidelines:

  • the component is going to be reused in multiple places
  • can not manage internal state

Lint restrictions:

  • can’t import files from the rest of our codebase

Organisms

Organisms are made up of one or more molecular or atomic components. They tend to be larger in scope and provide a sense of structure to the UI. Examples include headers, footers, and sidebars.

Guidelines:

  • can manage basic internal state. eg: const isOpen = useState<boolean>()

Lint restrictions:

  • can only import files from Molecules

Features

There should be a folder for each of the main features ( aka knowledge domains) of our application. A good indicator is how we structure our API routes. eg: org, user, project, chart, dashboard There are also big UI features that deserve their own folder. eg: visualizations Each of those features should have a subfolder for hooks, components , modals , utils , provider

API

Should only have the endpoints and types necessary for interacting with our API.

Guidelines:

  • files should be a 1 to 1 match to the backend router/controller files
  • pure functions
  • don’t have hooks, these should be defined inside the feature hooks folder

Lint restrictions:

  • can’t import files from the rest of our FE codebase

Pages

This should be a 1 to 1 match with our website routes.