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

@zoomio/tagifyjs

v0.23.0

Published

JS component for Tagify.

Downloads

49

Readme

TagifyJS

JS component for Tagify.

Checkout demo here github.com/smeshkov/tagifyjs-demo

More info about what is "Tagify" and the reasons behind it can be found here.

How to install "Tagify" on you web-site

1. Sign in

Go to Tagify and click "Log in" button at the top-right of the current page.

2. Register a Web-site

After you've logged in, you should be able to see "Register site" section in the top menu above.

3. Get Web-site ID

On the "Register site" put address of the web-site into the "Site" input and click "Register" button, it will result in ID showed above. Copy the ID and save it, you'll need it later.

4. Add TagifyJS to the web-site

Insert <script type="text/javascript" src="https://www.zoomio.org/tagifyjs/tagify.js"></script> into the <head> section on the registered web-site.

5. a) Mark pages in the list

Use API provided by the TagifyJS library to generate tags for selected pages:

<script>
  tagifyjs.tagsForAnchors({
      // paste your ID from the step 4 in here
      appId: 'ID_provided_on_the_step_4',
      // CSS class of the pages links (i.e. <a> tags) 
      // you'd like to generate tags for
      anchorsClassName: 'my-awesome-article-link',
      // CSS class of the HTML tags you'd like 
      // to display tags in (should be next to the <a> tags)
      targetsClassName: 'my-awesome-article-tags',
      // address of the page with relevant pages for a tag
      pagesUrl: 'https://my-awesome-web-site.com/blog/relevant',
      // number of tags to generate
      tagLimit: 3,
      // enables admin mode for editing tags
      isAdmin: false
  });
</script>

5. b) Optional - mark individual pages

This is an optional step. On the pages where you show full body, place following to display releavnt tags:

<script>
  tagifyjs.tagsForPage({
    // paste your ID from the step 4 in here
    appId: 'ID_provided_on_the_step_4',
    // CSS id of the HTML tag you'd like 
    // to display relevant tags/keywords in
    targetId: 'my-awesome-relevant-tags',
    // address of the page with relevant pages for a tag
    pagesUrl: 'https://my-awesome-web-site.com/blog/relevant',
    // number of tags to generate
    tagLimit: 3,
    // enables admin mode for editing tags
    isAdmin: false
  });
</script>

6. Provide list of relevant

Final step is to provide a page where you'll display relevant content for given tag/keyword.

It should be a separate page on which you'd need to add following:

<div>
  <div id="relevant-pages"></div>
  <script>
    tagifyjs.relevant({
      // paste your ID from the step 4 in here
      appId: 'ID_provided_on_the_step_4',
      // CSS id of the HTML tag you'd 
      // like to display relevant stuff in
      targetId: 'relevant-pages'
    });
  </script>
</div>

Congratulations you are now all set and ready to use Tagify!

Development

  • Raise a PR against master branch;
  • Get PR approved;
  • Tag latest commit with the release tag and push it (TAG=x.y.z npm run tag);
  • Merge PR.

Publishing

  • Bump version in package.json;
  • Run npm run build;
  • Run npm publish --access public.