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

arredemo

v0.0.18

Published

Instantly build a static site for your package

Downloads

7

Readme

arredemo logo

NPM Version NPM Downloads

arredemo


arre demo!

Véxase arre. Interxección:

1 Voz para facer andar as cabalarías.

Arre, faco!

Véxase demo. Substantivo masculino:

1 Ser imaxinario que representa o mal na tradición popular.

O demo anda sempre tentando a xente.


Intro

arredemo will instantly build a static site for your package, containing:

  • Docs page, made from your repo's README.md
  • Demo page, made from your demo component (who hasn't a /demo folder, huh?)

Install

  npm i [-D] arredemo

Optionally, you can install arredemo globally. It works too!

  npm i -g arredemo

Build your site

This single command will do the magic:

  npx arredemo build

The first time you launch it, the arredemo.json file will be created. You can then tweak it manually for further builds.

An arredemo folder will be made, containing the static site. You may want your web server to point to arredemo/index.html!

Site content

Docs

The docs page will be made from your repo's README.md file.

Notice you can include several versions of your package to be documented, not just the current one.

Demo

ES Modules

They are the future, so just ESM is allowed.

Configuration options

The arredemo.json file will contain Arredemo's configuration. It is created he first time you run the build.

UI options

theme

Right now, just default theme is available. Other themes will be (hopefully) added in the future!

favicon

Path to your FavIcon file.

logo

Path to your logo file. It'll be shown in the site's header.

url, company and company_url

Shown in the site's Footer.

Docs

doc_versions

Optional array of values of the versions of your package you want to show Docs for.

Current version (repo time, not necessarily published yet) will be taken by default.

md.strip_details_tag and md.keep_summary_content

Sometimes, for the shake of a better visualization in your repo's GitHub page, you will make use of this HTML tags:

  <details>
  <summary>
    Some title for a toggler
  </summary>

  A lot of lines
  Which are toggled off
  So my GitHub's page is not giant
  But at the same time my sensible content remains there

  </details>

If md.strip_details_tag is true (the default), arredemo will strip out this HTML tags, leaving the inner text.

But, depending on how your use it, you may want to keep the content inside \<summary\>\<\/summary\> or not. Use md.keep_summary_content: true in order to do it (it defaults to false).

Demo

demo_entry

Path to your demo index file.

This file will make a export default of your React component.

Yes: in the future this will be done better and non-React stuff will be compatible too.

If demo_entry: null, no Demo page will be built.