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

@dharpa/kiara-svelte-components

v0.0.1

Published

This repository contains components to display data from `kiara`, and to help interacting with `kiara`. They are written in Svelte, [learn more about Svelte in their docs](https://svelte.dev/docs).

Downloads

3

Readme

Svelte components for kiara

This repository contains components to display data from kiara, and to help interacting with kiara. They are written in Svelte, learn more about Svelte in their docs.

Developing

Clone this repository using git. Install operating system dependenices NodeJS and npm, then:

npm install  # install project dependencies, first time only
npm run dev

Alternatively, if you have the just task runner installed, run just setup.

Everything inside src/lib is part of the component library, everything inside src/routes is the showcase or preview app.

Optionally (but please do if you can) there's a pre-commit hook to check formatting before each commit. You'll need pre-commit installed globally on your machine, then run pre-commit install to enable the hook.

Testing

The project is set up to enable "unit" testing via vitest, and browser/UI testing via playwright. Run the tests with:

npm run test  # all the tests
npm run test:integration  # just the UI tests
npm run test:unit  # just the unit tests

There's also various linters, formatters and typescript typechecking configured. Run these:

npm run format  # fix formatting using prettier
npm run lint  # check for lint errors using eslint
npm run check  # svelte and typescript checks

All of these things will be run in GitHub actions when code is pushed.

Building

To build the library:

npm run package

To create a production version of the showcase app:

npm run build

Preview the production build with npm run preview. The showcase app can be deployed anywhere you can host a static site, using SvelteKit's adaper-static. Deployment is not yet implemented.

Publishing

The package is published to npm, in the dharpa org account. Install it with npm i @dharpa/kiara-svelte-components. To publish a new version, create a release on GitHub and write some release notes. Make sure the version number in package.json is different to the exising published version (the GitHub Action will fail if you forgot to do this).

To use the package in another JavaScript project with Svelte support:

  • clone this repository to your machine,
  • run npm build in this repository to build the package,
  • then in your other project, run npm install ../path/to/this-repo to install this package as a local path dependency.

Note that when you want to update this package in your new project, you may need to delete your node_modules folder and run npm install again. This is to do with the build system (vite) interacting with local packages without version numbers. There may be a better solution, but this approach works sufficiently for now until publishing is implemented.