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

recommender-overlay

v0.0.7

Published

[![npm](https://img.shields.io/npm/v/recommender-overlay)](https://www.npmjs.com/package/recommender-overlay)

Downloads

1,522

Readme

Recommender Overlay

npm

This is a web component that recommends projects from Polo Club.

Get Started

Recommender Overlay is distributed as a Web Component, that can be easily integrated into any web-based applications regardless of the development stack (e.g., Vanilla Javascript, Svelte, React).

To use this component in your application, first load the JavaScript in your app's template file (e.g., the HTML file).

<script
  type="module"
  src="https://unpkg.com/recommender-overlay/dist/recommender-overlay.es.js"
></script>

Then, you can add the overlay by adding the custom tag in your app's template file. You can use the attributes to configure this component.

<recommender-overlay
  my-brand="CNN Explainer"
  brands-to-ignore="CNN 101"
  recommendation-count="10"
  similar-candidate-count="15"
  position-left="30"
  display-delay="90000"
  homepage-url="https://poloclub.github.io/"
></recommender-overlay>

You can also manually specify a list of projects to recommend.

<recommender-overlay
  recommended-brands="WizMap, StickyLand, TimberTrek"
  position-left="30"
  display-delay="60000"
  homepage-url=""
></recommender-overlay>

URL Parameters

If you want to temporarily disable the overlay. Add ?norec=true in the URL.

APIs

|Attribute|Optional|Description| |:---|:---|:---| |my-brand|Optional, default "".|Name of your project. This name should matches the brand key in the group home page's data file. If not provided, the overlay recommends the latest projects.| |brands-to-ignore|Optional, default "".|You can provide a list of brands that the overlay should never recommend. For example, it doesn't really make sense to recommend CNN 101 from the CNN Explainer's website. Brands should be separated by comma, such as brands-to-ignore="CNN 101", "WizMap"|. |recommendation-count|Optional, default "10".|Number of items to recommend.| |similar-candidate-count|Optional, default "15".|Number of the most similar items to sample recommendations from.| |recommended-brands|Optional, default "15".|You can use this attribute to manually provide a list of projects to recommend. For example, recommended-brands="CNN Explainer, WizMap, StickyLand".| |position-left|Optional, default "20".|The overlay will always show up at the bottom of the viewport. You can control the x position (px) by setting this attribute.| |display-delay|Optional, default "60000" (1 minute).|Delay to show the overlay in milliseconds.| |homepage-url|Optional, default "https://poloclub.github.io/".|Home page url. If it is set to '', the component will not display the home icon.|

Credits

This component is written by Jay Wang using LIT.

License

The component is available under the MIT License.

Contact

If you have any questions, feel free to open an issue or contact Jay Wang.