1.0.7 • Published 1 year ago

verdaccio-package-count v1.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

verdaccio-package-count

for npm analysis

Features:

  • server side for post record to elasticsearch
  • client side for web page visualization download count like npmjs
    • sparkline for weekly download trend
    • download count for years,months,weeks and days
    • tarball version count of last 7 days
  • good caching and bulk ES side scripting,low affect to npm and elasticsearch service

Prepare

IMPORTANT:This plugin worked with elasticsearch,so elasticsearch service is required.(other wise es client will throw error at init stage)

tested on verdaccio 5.x,if some error occored you should remove es index and restart service again(in old version,es mapping is incorrect,delete and restart will create a correct index)

Install & setup

in your verdaccio:

npm i verdaccio-package-count

in your verdaccio config.yaml

middlewares:
  'verdaccio-package-count':
    enable: true
    sync_interval: 6000 # optional millisecond,post and index document frequence
    es_index: 'indexname' # optional
    elastic:  # this property would refrence elasti official document
      node: 'https://localhost:9200'
      auth: 
        # note: the authentication one of the two is enough
        username: elastic
        password: your_password
        apiKey: your_api_key   
      tls: 
        rejectUnauthorized: false // if you don't have ssl certificate

Other

if want remove data delete this index _npm_analysis_package_count in your elastic search.

change log

1.0.0

  • fix last 7 day count can't refresh bug
1.0.2

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

0.0.21

1 year ago

0.0.20

1 year ago

0.0.19

1 year ago

0.0.18

1 year ago

0.0.16

1 year ago

0.0.15

1 year ago

0.0.13

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.5

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago