Skip to content
Directus Telemetry — Centralized server for version info and counting Directus instances
Branch: master
Clone or download
Latest commit 73a9d74 Sep 10, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Use flattened object structure Sep 10, 2018
.env.example Add hashing function Sep 3, 2018
.gitignore Initial commit Sep 3, 2018
LICENSE Initial commit Sep 3, 2018
README.md Update README.md Sep 10, 2018
package-lock.json Add cors Sep 8, 2018
package.json Add cors Sep 8, 2018
schema.sql Add schema file Sep 3, 2018

README.md

Telemetry Server

Small centralized server that exposes two endpoints. One that allows clients to retrieve the latest releases from GitHub, the other that allows clients to send anonymous metrics used to calculate Directus install count.

Installation

Clone this repo and install the npm dependencies by running

$ npm install

Usage

Duplicate the .env.example to .env and add the values.

Run the application by running npm start

Reference

Versions

Directus app and API versions are being pulled from GH releases on server start and after 2 days of "stale" versions.

GET /versions

Returns

[
  {
    "version": String,     // eg v7.0.0
    "date": String,        // ISO Date String eg 2018-08-22T22:08:54Z
    "info": String,        // Markdown of GH Release
    "repo": String         // api || app
  }
]

Count

POST /count

Request body

{
    "version": "v7.0.0-rc.2",
    "url": "https://demo-api.directus.app",
    "type": "app"
}

(type is either app or api)

The URLs are stored in the database as a SHA256 hash.

You can’t perform that action at this time.