Back to APIs list

Matrix API examples & templates

Use these vals as a playground to view and fork Matrix API examples and templates on Val Town. Run any example below or find templates that can be used as a pre-built solution.
vlad avatar
vlad
serverlessMatrixEchoBot
Express (deprecated)
A example Serverless Bot for Matrix chat. See https://vlad.roam.garden/How-to-create-a-serverless-Matrix-Chat-bot for a more detailed write-up on how to set one up! To test this bot: invite serverless-echo@matrix.org to your unencrypted room Send a message starting with !echo and the bot will repeat content after. Use https://matrix-serverless.netlify.app/ to configure Matrix to call the endpoint on newly received messages
1
dhvanil avatar
dhvanil
val_ab1cAriYki
HTTP
An interactive, runnable TypeScript val by dhvanil
0
easrng avatar
easrng
globalDocument
Script
An interactive, runnable TypeScript val by easrng
0
willthereader avatar
willthereader
animatedReadmeSVG
HTTP
Forked from maxm/animatedReadmeSVG
0
Mirceanicolaeciobanu avatar
Mirceanicolaeciobanu
SIPforKCC
Script
@jsxImportSource https://esm.sh/react
0
dhvanil avatar
dhvanil
web_c9Qpa86DyZ
HTTP
An interactive, runnable TypeScript val by dhvanil
0
dhvanil avatar
dhvanil
web_mmtKPYGP3m
HTTP
An interactive, runnable TypeScript val by dhvanil
0
gigmx avatar
gigmx
compassionateBlackCatfish
HTTP
Forked from gigmx/skilledCoffeePanther
0
dhvanil avatar
dhvanil
val_f4POmlAgdz
HTTP
An interactive, runnable TypeScript val by dhvanil
0
stevekrouse avatar
stevekrouse
serverlessMatrixEchoBot
Express (deprecated)
// https://stevekrouse-serverlessMatrixEchoBot.express.val.run/_matrix/push/v1/notify
0
movienerd avatar
movienerd
randomMovieQuiz
HTTP
@jsxImportSource https://esm.sh/react
0
mauriciobc avatar
mauriciobc
MiauFood
HTTP
// This approach uses Val Town's Blob storage for persistence and a simple HTML interface.
0
dhvanil avatar
dhvanil
val_0LDoys9VFk
HTTP
An interactive, runnable TypeScript val by dhvanil
0
dhvanil avatar
dhvanil
val_gFodtl1Mdm
HTTP
An interactive, runnable TypeScript val by dhvanil
0
stevekrouse avatar
stevekrouse
serverlessMatrixEchoBot2
Script
An interactive, runnable TypeScript val by stevekrouse
0
dhvanil avatar
dhvanil
val_IRL0Iqm2q4
HTTP
An interactive, runnable TypeScript val by dhvanil
0