https://github.com/ari-party/umami-views
Create graphs like star-history but for Umami
https://github.com/ari-party/umami-views
graph history star-history umami umami-api
Last synced: 4 months ago
JSON representation
Create graphs like star-history but for Umami
- Host: GitHub
- URL: https://github.com/ari-party/umami-views
- Owner: ari-party
- License: mit
- Created: 2024-06-03T14:56:40.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-26T21:49:53.000Z (9 months ago)
- Last Synced: 2025-01-26T22:25:52.248Z (9 months ago)
- Topics: graph, history, star-history, umami, umami-api
- Language: TypeScript
- Homepage:
- Size: 129 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# umami views
[](./LICENSE)




graph with [umami](https://github.com/umami-software/umami) views data built on [star-history](https://github.com/star-history/star-history)
## usage
```bash
$ curl -G https://example.com/svg \
# The share url provided by Umami
-d 'shareURL=https://umami.is/share/abcdefghijklmnop/example.com' \
# Either light or dark, defaults to dark
-d 'theme=light' \
# Don't include if you don't want the svg to be transparent (value can be anything)
-d 'transparent=1' \
```the server sets the `cache-control` header to `max-age=3600, stale-while-revalidate=21600` so clients cache the response(s) for an hour and revalidate within 6.
## installation
### docker
```bash
# Pull the Docker image
$ docker pull ghcr.io/ari-party/umami-views:latest$ docker run -d --name umami-views -p 8080:8080 ghcr.io/ari-party/umami-views:latest
# `-d detached`, it will run in the background
# `--name umami-views`, assign a name to prevent a random name
# `-p 8080:8080`, replace the lefthand 8080 with a port that you prefer,
# the server will be available on that port for you
```### manual
```bash
# Clone the repository
$ git clone https://github.com/ari-party/umami-views.git# Install the dependencies with pnpm (install with `npm i -g pnpm`)
$ pnpm install# Copy the `.env.example` file as `.env` and edit the port to your wish
# Start the server
$ pnpm start
```