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.
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>
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
panphora avatar
distance
@panphora
http
An interactive, runnable TypeScript val by panphora
easrng avatar
globalDocument
@easrng
script
An interactive, runnable TypeScript val by easrng
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
karfau avatar
githubEmoji
@karfau
http
Usage import {githubEmojiUrl} from "https://esm.town/v/karfau/githubEmoji"; console.log(githubEmojiUrl('+1')) //"https://github.githubassets.com/images/icons/emoji/unicode/1f44d.png?v8" or in a browser <img src="https://karfau-githubEmoji.web.val.run/+1"></img> Looks like in the preview. curl https://karfau-githubEmoji.web.val.run/+1 (prints "https://github.githubassets.com/images/icons/emoji/unicode/1f44d.png?v8" ) If the name you pass (as argument or in the request path) is not in the list, it returns The list of names can be accessed using githubEmojiNames or by calling https://karfau-githubemoji.web.val.run/names
vlad avatar
sendMatrixChatRoomMessage
@vlad
script
An interactive, runnable TypeScript val by vlad
vlad avatar
watchReaderAndSendToMatrix_time2
@vlad
interval
An interactive, runnable TypeScript val by vlad
seflless avatar
getRotationFromFFmpegDisplayMatrixString
@seflless
script
An interactive, runnable TypeScript val by seflless
vlad avatar
watchReaderAndSendToMatrix_time3
@vlad
interval
An interactive, runnable TypeScript val by vlad
stevekrouse avatar
serverlessMatrixEchoBot
@stevekrouse
express
// https://stevekrouse-serverlessMatrixEchoBot.express.val.run/_matrix/push/v1/notify
vlad avatar
watchReaderAndSendToMatrix_time4
@vlad
interval
An interactive, runnable TypeScript val by vlad
vlad avatar
watchReaderAndSendToMatrix_time1
@vlad
interval
An interactive, runnable TypeScript val by vlad
vlad avatar
joinMatrixRoom
@vlad
script
An interactive, runnable TypeScript val by vlad
stevekrouse avatar
serverlessMatrixEchoBot2
@stevekrouse
script
An interactive, runnable TypeScript val by stevekrouse