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
sendMatrixChatRoomMessage
@vlad
Script
An interactive, runnable TypeScript val by vlad
vlad avatar
watchReaderAndSendToMatrix_time2
@vlad
Cron
An interactive, runnable TypeScript val by vlad
seflless avatar
getRotationFromFFmpegDisplayMatrixString
@seflless
Script
An interactive, runnable TypeScript val by seflless
vlad avatar
watchReaderAndSendToMatrix_time3
@vlad
Cron
An interactive, runnable TypeScript val by vlad
stevekrouse avatar
serverlessMatrixEchoBot
@stevekrouse
Express
// https://stevekrouse-serverlessMatrixEchoBot.express.val.run/_matrix/push/v1/notify
janpaul123 avatar
blogPostEmbeddingsDimensionalityReduction
@janpaul123
Script
An interactive, runnable TypeScript val by janpaul123
smca avatar
stitchVal
@smca
HTTP
inspired by https://x.com/dankuntz/status/1813283813881225625 written by Sonnet-3.5 with ~12 prompts and some final manual tweaks
yawnxyz avatar
stitchVal
@yawnxyz
HTTP
inspired by https://x.com/dankuntz/status/1813283813881225625 written by Sonnet-3.5 with ~12 prompts and some final manual tweaks
vlad avatar
watchReaderAndSendToMatrix_time1
@vlad
Cron
An interactive, runnable TypeScript val by vlad
vlad avatar
watchReaderAndSendToMatrix_time4
@vlad
Cron
An interactive, runnable TypeScript val by vlad
saolsen avatar
sudoku_solver_exact_cover
@saolsen
Script
Exact Cover sudoku Solver Solves Sudoku puzzles via dancing-links. Pass in a 9x9 Sudoku puzzle array (of arrays) with 0's for empty slots. Returns a solved puzzle or null if the puzzle can't be solved. Example example_val
vlad avatar
sendMatrixChatRoomTextMessage
@vlad
Script
An interactive, runnable TypeScript val by vlad
vlad avatar
joinMatrixRoom
@vlad
Script
An interactive, runnable TypeScript val by vlad
vlad avatar
matrixMediaToHttpUrl
@vlad
Script
An interactive, runnable TypeScript val by vlad
easrng avatar
playground
@easrng
HTTP
playground edit, run, and embed vals without requiring an account (or even js enabled!) caveats: logs don't stream I haven't set up codemirror only script vals supported everything else should be fully functional. you can prefill the editor with code: https://easrng-playground.web.val.run/?code=console.log(1) a val: https://easrng-playground.web.val.run/?load=easrng/playground some other url: https://easrng-playground.web.val.run/?load=https://any/other/url
maxm avatar
animatedReadmeSVG
@maxm
HTTP
Fancy animated SVGs in readmes, along with centering and image sizing. <div align="center"><img width=200 src="https://gpanders.com/img/DEC_VT100_terminal.jpg"></div> <p align="center"> <img src="https://maxm-animatedreadmesvg.web.val.run/comet.svg" /> </p> <p align="center"> <img src="https://maxm-animatedreadmesvg.web.val.run/custom text!" /> </p>