Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jzillmann/dashgen

Generates a static HTML report out of generic JSON files
https://github.com/jzillmann/dashgen

dashboard generator html-report

Last synced: 11 days ago
JSON representation

Generates a static HTML report out of generic JSON files

Awesome Lists containing this project

README

        



npm version


install size


license

# Dashgen

Simplistic _static_ dashboard generator. Store your metrics in a generic JSON format, _Dashgen_ will generate an HTML report out of them them!

[Demo](https://jzillmann.github.io/dashgen/)

## Usage

### JSON report structure

Have one or multiple files in this JSON format:

```
{
"sourceName": "my source"
"reports": [
{
"name": "my report 1",
"metrics": {
"key1": "value1",
"key2": "value2",
...
},
"messages" :[
"Something seemed slightly off with ..."
]
},
{
"name": "my report 1",
...
]
}
```

### Generate a dashgen report

- `npm install --global dashgen`
- `dashgen `
- Open `/index.html`

---

## Development

### How to build

- `npm run dev` => Serve the svelte app over HTTP with live reload. Visit http://localhost:5000.

### How to publish

- Test the package with `npm run pack:dry` and `npm run pack`
- Test `cli.js` with `npm link`. Now you can execute `dashgen`. Unlink with `npm unlink`.
- Release the package:
- `npm version [patch|minor|major]`
- `npm release`