Socket
Book a DemoInstallSign in
Socket

alluvium

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

alluvium

time-series analytics for static web sites

0.9.2
latest
Source
npmnpm
Version published
Weekly downloads
1
-75%
Maintainers
1
Weekly downloads
 
Created
Source

alluvium

Time-series analytics for static web servers.

Goals

  • show number of requests over time (granular to the day)
  • show response status codes by volume (200, 301, 304, 404, 401, etc)
  • show number of requests by device type (desktop, mobile, tablet, tv, etc)
  • show top referrer for each endpoint

alluvium.createClient(cfg)

var alluvium = require("alluvium").createClient()

alluvium.write(data [,callback])

alluvium.write({
  "domain": "sintaxi.com",
  "path": "/",
  "status": 200,
  "device": "phone",
  "method": "get",
  "referrer": null
})

alluvium.read(domain, [options,] callback)

alluvium.read("sintaxi.com", function(results){
  console.log(results)

  // returns...

  { version: '0.1.0', range: '2015-3-18', totals:
   { statuses: { '200': 152, '304': 520, '404': 76 },
     visits:
      { '/about': 216,
        '/contact': 152,
        '/blog/hi': 152,
        '/': 152,
        '/not-exist': 76 },
     devices: { phone: 368, desktop: 304, tablet: 76 } } }
})

Keywords

analytics

FAQs

Package last updated on 30 Jan 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.