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

topic-carousel

v0.0.1-alpha

Published

Carousel with infinite scroll with the ability to filter items through topics

Downloads

2

Readme

TopicCarousel

npm
Deploy CI

Carousel with infinite scroll with the ability to filter items through topics.
Does not rely on any other dependency.

❗️ This package just started development, it isn't functional right now. Still, feel free to contribuite

▶️ Use

Install the package

npm i topic-carousel

or include the script directly in your html file with

<script src="https://unpkg.com/[email protected]/dist/bundle/topic-carousel.min.js"></script>

📖 Documentation

Check the complete documentation here.

💻 Development

If you want to improve the package or you are just curious on how it works, follow this section.

🗂 Folders structure

.
├── .github     # github actions
├── .husky      # git hooks
├── config      # configuration files for rollup, lint-staged and playwright
├── dist        # [AFTER npm run build] built package, to be used in the browser
├── docs        # [AFTER npm run docs] documentation
├── lib         # [AFTER npm run build] built package, to be used with node.js
├── public      # base folder used by the dev web server
├── src         # source code
├── tests       # unit and end to end tests
└── README.md   # THIS FILE

🧾 Requirements

Notable dev-dependencies

🔧 Setup

Install the dependencies with

npm install

🌐 Standalone web server

To play around and see for yourself any changes to the library, you can use the integrated web server. Just run

# Build the package locally and start the web server
npm run build:dev
npm run serve
# Allows live reload by refreshing the page
npm run serve:dev

🧱 Build

Make sure everything is clean by running

npm run clean

then all the versions of the package can be built with the command

npm run build

🧪 Tests

Unit

After having installed the dependencies, run

npm run test:unit

E2E

After having installed the dependencies, complete the setup required by playwright with

npx playwright install --with-deps

you can then run

npm run test:e2e

ℹ️ The e2e test configuration is located in config/playwright.config.ts. Right now, only chromium and firefox are tested, but it is possible to also include safari (see commented section).