Streaming Hub 0.1
Use context storage in an automation
Read and update files inside an explicitly configured context root.
AlphaBefore you start
- Open application settings and enable the smallest required context root.
- Use a relative path inside that root.
- Test file-writing automations with non-sensitive data first.
Keep a rolling Twitch chat log
- Create an automation with a Twitch chat-message signal.
- Add Context: Append JSONL and set Path to
Chat/LastMessages.jsonl. - Use a JSON object such as
{"user":"{event.contract.twitch.user.login}","message":"{event.contract.twitch.chat.text}","timestamp":"{event.timestamp}"}. - Add Context: Trim JSONL with the same path and set Keep Last to the required history size.
- Test the signal and inspect the file through Data Explorer.
Keep session notes
- Create a project variable such as
vars.sessionNote. - Add Context: Append Line with Path set to
Stream/SessionMemory.md. - Use a line template such as
[{event.timestamp}] {vars.sessionNote}. - Add Context: Trim Text Lines when the file must remain bounded.
Store a viewer profile
- Use a Twitch signal that supplies
event.contract.twitch.user.login. - Add Context: Upsert JSON with a path such as
Viewers/{event.contract.twitch.user.login}.json. - Write stable keys such as
lastSeenUtcornotes. - Validate the resolved path and JSON before enabling the automation for live events.