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

archive-data-visualizer

v1.4.0

Published

Visualize your archive world!

Downloads

74

Readme

archive-data-visualizer

Vizualize your archive world!

Installation

npm install -g archive-data-visualizer

Usage

archive-data-visualizer <command> <command parameters>

Commands

help        Display this help.
visualize   Performs data download from the k8s container, visualization and uploading the transformed result into the bookkit page.

Parameters

--command [string]

visualize, help commands. All these can be used as default commands without providing --command argument

-c, --config [string]

File path to the configuration object.

Configuration File Convention

All configuration fields are mandatory. Configuration file is a JS file exporting the configuration object.

module.exports = {
    "bookkit": {        
        "accessCode1": "... access code 1 ...",
        "accessCode2": "... access code 2 ...",
        "oidcHost": "... Oidc grantToken URI ...",
        "uri": "... BookKit base URI ..."
    },
    "visualizations": [
        {
            "id": "... visualization id ...",
            "pageCode": "... page code in the bookkit - must exist ...",
            "header": "... Page name ...",
            "description": "... Page description - uu5String supported ...",
            "basePath": "... base path for archive-data-downloader to know where to download data from ...",
            "statsFolder": "... folder within the base path where the statistics are stored ...",
            "tempFolder": "... local file system folder base path to know where the data should be extracted to the local system ...",
            "ranges": [
                {
                    "id": "... range id ...",
                    "sectionCode": "... section code to upload the generated uu5String visualization - must exist ...",
                    "header": "... section header ...",
                    "description": "... section description - uu5string supported ...",
                    "chartType": "... chart type (LineChart|BarChart|AreaChart|ComposedChart) - value is optional, LineChart is default...",
                    "aggregations": ["... array of aggregation types - (MIN|MAX|AVG|SUM|MEDIAN)..."],
                    "valueUnit": "... text value to be displayed on Y-axis ...",
                    "rangeType": "... range type value (week|month|all|custom) ...",
                    "rangeStart": "... YYYY-MM-DD ...", // supported for custom rangeType only
                    "rangeEnd": "... YYYY-MM-DD ...", // supported for custom rangeType only
                    "rangeSize": 1,
                    "monitorTrend": { // Calculate trend in data and visualize it in the chart. The tool will also caluclate the difference between the trends from the whole range interval and the interval defined in the monitoredTrend configuration  
                        "enabled": true,
                        "percentageDifference": 10,
                        "rangeType": "... range type value (week|month|all) ...",
                        "rangeSize": 1
                    }
                }
            ],
            "attributes": [
                // first attribute with type=label, valueKey=label is mandatory
                {
                    "type": "label",
                    "valueKey": "label"
                },
                {
                    "type": "... attribute type (label|value) ...",
                    "valueKey": "... csv column name (Y axis) ...",
                    "name": "... display name ...",
                    "colorSchema": "red-rich",
                    "chartType": "... applicable in case ComposedChart is used for the range as a chart type (area|line|bar) ...",
                    "monitorTrend": { // definition of monitored trend line
                        "enabled": true,
                        "valueKey": "... attribute name ...",
                        "name": "... diplay name ...",
                        "colorSchema": "red",
                        "chartType": "... applicable in case ComposedChart is used for the range as a chart type (area|line|bar) ...",
                    }
                }
            ]
        }
    ]
}

In case the configuration is not provided, the tool searches for the configuration file in a default location %HOME%/.archive-data-visualizer/config.js

--archive-data-downloader-config

File path to the configuration object of the archive-data-downloader tool. It is optional, in that case the archive-data-downloader will scan for the configuration file in its default location. See more in archive-data-downloader documentation.

--visualizationFilter string[]

Define what visualization should be performed from the configuration object. If not defined, the tool will perform all visualizations. Each visualization is identified by its "id" value.

--rangeFilter string[]

Define what range should be performed for each visualization from the configuration object. If not defined, the tool will perform visualization for all defined ranges. Each range is identified by its "id" value.

Logs

logs are automatically stored to the %HOME%/.archive-data-visualizer/logs folder