Mere Documentation
Generated index of all pages.
- changelog
- codegen
- db
- http-demos
- language-reference
- memory-model
- packages
- patterns
- reserved-names
- stdlib-reference
- tutorial-redis-client
- tutorial-rest-api
- tutorial-type-inference
- tutorial
Try Mere in your browser
Pre-compiled Mere programs running directly in your browser via Wasm:
- playground — hello / fizzbuzz / fibonacci, captured stdout
- counter — button-driven counter; Mere closure dispatched back from JS (Phase 48 frontend FFI)
- echo — mirrors textarea input; exercises the JS → Mere string boundary
- wordcount — chars / words / lines stats via a Mere string-scan; word boundaries fold runs of whitespace
- self-host fmt — Mere pretty-printer written in Mere, running in browser (Phase 49 §S1)
- self-host REPL — Mere evaluator written in Mere, running in browser (Phase 51 §S2.A)
- self-host type-checker — Mere HM type inferencer written in Mere, running in browser (Phase 52 §S2.B)
- self-host compiler — Mere Wasm codegen written in Mere, running in browser (Phase 53 §S3)
Run a Mere web backend
Real HTTP servers written in Mere (Phase 54.35). Run under Node.js locally — see examples/ and contrib/http/:
http_echo_server.mere— minimal HTTP echohttp_json_api.mere— six-endpoint JSON REST API with CORS viahttp_set_headerhttp_todo_api.mere— in-memory TODO CRUD with top-level mutableMap[str, str]statehttp_docs_server.mere— serves this repo's own docs viaread_filehttp_fmt_service.mere— self-host formatter (parser + fmt) exposed over HTTPhttp_fmt_webapp.mere— single-file web app: HTML UI +/fmtAPI in one wasm binary