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

sweetsoft-ui

v0.0.45

Published

There are 2 main branches - `master` and `dev`. `master` - stable version of app `dev` - development version

Downloads

52

Readme

Development flow

There are 2 main branches - master and dev. master - stable version of app dev - development version

Development should be performed in branches.

Any change should to to dev or master thru Pull Requests (PR).

Build and Run

npm install # or yarn!
npm run dev

Open up localhost:5173 and start clicking around.

Start work on task

  1. When developer should create branch from master and name it with pattern YYMMDD_<task_name>.

    Where:

    • YY - last 2 digits of current year
    • MM - 2 digits month
    • DD - 2 digits for day in month

    For instance it can be 190522_add_captions_to_form.

  2. All changes should be made in this branch. All When all changes made, developer should create PR to dev branch.

  3. This PR should reviewed and when approved, it will in in dev branch. Also reviewer should create PR to master branch.

  4. Build machine should publish it to dev environment and then it should pass tests (or it can be tested locally).

  5. When issue is resolved PR to master branch should be merged.

Coding

Documentation is listed in docs folder

Project documentation

For development it is recommended to use VS code

Recommended VS code plugins

Package and usages of the library.

This repository contains set of components that can be used as following:

  • standalone application withing SvelteKit (mostly for testing)
  • Storybook pages - for testing UI components
  • library that published to NPM

Library purpose

Assumed that the library can be used as components for other projects.

UI

We use Svelte framework for visualization and SvelteKit.

Components

Components are created in folder src/lib/components. Component is one file or folder with few files. More details Svelte examples and Svelte API and Svelte tutorial.

Client side logic

Client side logic implemented with TypeScript and mostly located in folder src/lib/.

Structure

We use SvelteKit thus folder structure in SvelteKit expects to find two directories in the root of your project — src and static.

All libraries and components that can be re-used are located in folder lib.

We also have Storybook stories in src stories folder.

  • you can run storybook tests using npm run storybook.
  • stories are used for testing individual components.
  • storybook used its default 6006 port

Routing

Since we use SvelteKit, we use its routing.

src/routes

See link above. ...

static

The static directory contains any static assets that should be available. These are served using sirv.

Production mode and deployment

To start a production version of your app, run npm run build && npm start. This will disable live reloading, and activate the appropriate bundler plugins.

Production mode support expected to use sveltekit adapters.