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.
watchReaderAndSendToMatrix
vlad
watchReaderAndSendToMatrix
An interactive, runnable TypeScript val by vlad
Cron
watchReaderAndSendToMatrix_time4
vlad
watchReaderAndSendToMatrix_time4
An interactive, runnable TypeScript val by vlad
Cron
watchReaderAndSendToMatrix_time3
vlad
watchReaderAndSendToMatrix_time3
An interactive, runnable TypeScript val by vlad
Cron
blogPostEmbeddingsDimensionalityReduction
janpaul123
blogPostEmbeddingsDimensionalityReduction
Remix of: janpaul123/compareEmbeddings
Script
sendMatrixChatRoomMessage
vlad
sendMatrixChatRoomMessage
An interactive, runnable TypeScript val by vlad
Script
obedientLimeOrangutan
primemeridian
obedientLimeOrangutan
An interactive, runnable TypeScript val by primemeridian
HTTP
theOneSky
karkowg
theOneSky
theonesky bsky firehose as The Matrix source code
HTTP
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
web_cgvolHK08C
dhvanil
web_cgvolHK08C
An interactive, runnable TypeScript val by dhvanil
HTTP
MechanicalButterfly
davincidreams
MechanicalButterfly
@jsxImportSource https://esm.sh/react@18.2.0
HTTP
watchReaderAndSendToMatrix_time1
vlad
watchReaderAndSendToMatrix_time1
An interactive, runnable TypeScript val by vlad
Cron
watchReaderAndSendToMatrix_time2
vlad
watchReaderAndSendToMatrix_time2
An interactive, runnable TypeScript val by vlad
Cron
startup_clicker
jaredsilver
startup_clicker
@jsxImportSource https://esm.sh/react
HTTP
web_LNXn0B7C9x
dhvanil
web_LNXn0B7C9x
An interactive, runnable TypeScript val by dhvanil
HTTP
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
Script
web_sirdp0W9N6
dhvanil
web_sirdp0W9N6
An interactive, runnable TypeScript val by dhvanil
HTTP