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.
chronosphere
all
chronosphere
@jsxImportSource https://esm.sh/react
HTTP
calculateTransitTimeVal
rochambeau314
calculateTransitTimeVal
// This val calculates driving/transit time from given origins to the nearest grocery store, gym, FiDi, Roblox HQ, and Samsara in San Francisco.
HTTP
threeJsTorus
yawnxyz
threeJsTorus
playing around with townie during a meeting >.>
HTTP
starlightFaker
kylem
starlightFaker
Remix of: kylem/loremIpsumMarkdownGenerator
HTTP
calculateTransitAPI
rochambeau314
calculateTransitAPI
An interactive, runnable TypeScript val by rochambeau314
HTTP
frozenSapphireIguana
rochambeau314
frozenSapphireIguana
Remix of: rochambeau314/calculateTransitTimeVal
HTTP
randomMovieQuiz
movienerd
randomMovieQuiz
@jsxImportSource https://esm.sh/react
HTTP
MiauFood
mauriciobc
MiauFood
// This approach uses Val Town's Blob storage for persistence and a simple HTML interface.
HTTP
watchReaderAndSendToMatrix_time2
vlad
watchReaderAndSendToMatrix_time2
An interactive, runnable TypeScript val by vlad
Cron
watchReaderAndSendToMatrix_time1
vlad
watchReaderAndSendToMatrix_time1
An interactive, runnable TypeScript val by vlad
Cron
stitchVal
yawnxyz
stitchVal
inspired by https://x.com/dankuntz/status/1813283813881225625 written by Sonnet-3.5 with ~12 prompts and some final manual tweaks
HTTP
animatedReadmeSVG
willthereader
animatedReadmeSVG
Remix of: maxm/animatedReadmeSVG
HTTP
blogPostEmbeddingsDimensionalityReduction
janpaul123
blogPostEmbeddingsDimensionalityReduction
Remix of: janpaul123/compareEmbeddings
sudoku_solver_exact_cover
saolsen
sudoku_solver_exact_cover
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
animatedReadmeSVG
maxm
animatedReadmeSVG
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>
HTTP
playground
easrng
playground
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
HTTP