From a677b3755fa56e748a5744caef0a8b0d8bcd8669 Mon Sep 17 00:00:00 2001 From: Ash Keel Date: Sat, 4 Nov 2023 13:19:20 +0100 Subject: [PATCH] add description to strimertul api page --- .gitignore | 3 + content/api/_index.md | 10 +- content/api/v31.md | 2 +- layouts/api/list.html | 1 + layouts/logviewer/index.html | 175 +++++++++++++++++++++++++++++++++++ 5 files changed, 189 insertions(+), 2 deletions(-) create mode 100644 layouts/logviewer/index.html diff --git a/.gitignore b/.gitignore index 0769b25..d2a6b67 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,9 @@ hugo_stats.json # I HATE YOU PRETTIER I HATE YOU SO MUCH node_modules +# Stinky IDEs +.idea + # Executable may be added to repository hugo.exe hugo.darwin diff --git a/content/api/_index.md b/content/api/_index.md index d0976d6..b4e7356 100644 --- a/content/api/_index.md +++ b/content/api/_index.md @@ -4,4 +4,12 @@ title: API reference weight: 100 --- -TODO Talk about kilovolt and explain event and RPCs +You can interact with any part of strimertül through its API. In fact the main UI of strimertül is just a single page application that accesses the service through the API itself (with a couple shortcuts to bypass authentication), this means almost anything you can access through the UI you can access through the API! + +## Kilovolt + +The strimertül's API is a [Kilovolt](https://github.com/strimertul/kilovolt) server, a pub/sub key-value store accessible via websocket. Check [this repository](https://github.com/strimertul/kilovolt-clients) for a list of officially supported kilovolt clients (or submit your own). You should be able to easily build a client yourself by just creating a websocket connection and using the [Kilovolt protocol](https://github.com/strimertul/kilovolt/blob/main/PROTOCOL.md). + +## Available keys/RPC/events + +To check what keys you can access on strimertül, click on the menu entry with your strimertül version (or the closest one to it). diff --git a/content/api/v31.md b/content/api/v31.md index 2d1693d..eb70ae3 100644 --- a/content/api/v31.md +++ b/content/api/v31.md @@ -1,7 +1,7 @@ --- menu: apiversions -title: v3.1.x +title: v3.1 - v3.3 version: v31 aliases: - latest diff --git a/layouts/api/list.html b/layouts/api/list.html index 5ff15e1..c4c500a 100644 --- a/layouts/api/list.html +++ b/layouts/api/list.html @@ -11,6 +11,7 @@
+

API documentation

{{ .Content }}
diff --git a/layouts/logviewer/index.html b/layouts/logviewer/index.html new file mode 100644 index 0000000..eb23e23 --- /dev/null +++ b/layouts/logviewer/index.html @@ -0,0 +1,175 @@ +{{ define "main" }} +
+
+
+

The streaming companion for power users

+

+ strimertül is a free and open source tool to add to your Twitch + streams for creating powerful overlays and power-up the viewer + interaction! +

+
+ + +
+ +
+
+
+
+
+
+
+
One API for everything
+

+ Build overlays and tooling with easy access to Twitch alerts, + chat messages and more through a single websocket interface. The + API strives for simplicity with a + documented protocol, but there are also officially supported bindings for popular + languages such as + Typescript, + Go + and + Python. +

+
+ {{ $image := resources.Get "landing/websocket.svg" }} + +
+
+
+
+
+
+ {{ $image := resources.Get "landing/rewards.png" }} + +
+
No Twitch Affiliate?
+

+ The built-in loyalty system lets regular viewers accrue points, + claim rewards and contribute towards community goals. +

+
+
+
+
+
+
+
+
+
Keep total control of your tech
+

+ Strimertül runs completely in your computer and has no remote + components. +

+
+ {{ $image := resources.Get "landing/downloads.png" }} + +
+
+
+
+
+
+ {{ $image := resources.Get "landing/AGPLv3_Logo.svg" }} + +
+
Free and won't turn evil
+

+ strimertül is free and open source under the + AGPLv3, a strong + copyleft license, meaning we couldn't close it down even if we wanted! +

+
+
+
+
+
+
+{{ end }}