Skip to content
/ web-echo Public

A websocket/webhook JSON data recorder with API

License

Notifications You must be signed in to change notification settings

dacr/web-echo

Folders and files

NameName
Last commit message
Last commit date
Dec 21, 2024
Feb 13, 2021
Jan 25, 2025
Feb 1, 2025
Jan 23, 2025
Jan 25, 2025
Oct 28, 2023
Dec 21, 2024
Jan 25, 2025
Jan 25, 2025
Jan 25, 2025
Oct 6, 2024
Oct 8, 2022
Jan 25, 2025

Repository files navigation

web-echo tests License

web-echo service allows you to easily define on the fly JSON recorders which can be fed by remote services using either the dynamically generated webhook or the websockets you've provided. Then, at any time you can check what have been sent by the configured remote services. Check the swagger API specification for more information.

It has been deployed on https://mapland.fr/echo

Quick local start

Thanks to scala-cli, this application is quite easy to start, just execute :

scala-cli --dep fr.janalyse::web-echo:1.2.6 -e 'webecho.Main.main(args)'

Configuration

Environment variable Description default value
WEB_ECHO_LISTEN_IP Listening network interface "0.0.0.0"
WEB_ECHO_LISTEN_PORT Listening port 8080
WEB_ECHO_PREFIX Add a prefix to all defined routes ""
WEB_ECHO_URL How this service is known from outside "http://127.0.0.1:8080"
WEB_ECHO_STORE_PATH Where data is stored "/tmp/web-echo-cache-data"
WEB_ECHO_INACTIVE_AUTO_DELETE Delete echoes if inactive true
WEB_ECHO_INACTIVE_AUTO_DELETE_AFTER Delay for an echo to become inactive 30d
WEB_ECHO_ENTRIES_MAX_QUEUE_SIZE Limit the number of entries, older are removed 1000