This repository contains runnable examples for deploying applications to Wasmer Edge. Each example mirrors the structure used in python-fastapi, with a concise walkthrough of how it works, instructions for running locally, and a short deployment guide.
- Install the Wasmer CLI and log in with
wasmer login. - Clone this repository:
git clone https://github.com/wasmerio/examples.git cd examples - Pick an example, read its
README.md, and follow the “Running Locally” steps. - When you are ready to publish, use
wasmer deployfrom that example directory.
Every example is self-contained. Dependencies, entry points, and Wasmer-specific configuration are documented in the example’s own README.
Examples are grouped by runtime. “Skip” directories hold work-in-progress templates; “fail” directories capture known issues or failing scenarios for regression testing.
python-http– stdlibhttp.serverJSON responder.python-django– Django 5 project using WSGI.python-fastapi– minimal FastAPI hello world.python-fastapi-pandoc-converter– FastAPI + pypandoc conversion service.python-fastapi-pystone– Pystone benchmark exposed via FastAPI.python-ffmpeg– Frame extraction withffmpeg-python.python-flask– Flask hello world.python-langchain-starter– Streamlit chat UI backed by LangChain.python-mcp– FastMCP server exposing basic tools/resources.python-mcp-chatgpt– Cupcake search MCP server for ChatGPT.python-mkdocs– MkDocs static documentation site.python-pillow– Image transforms with Pillow.
js-astro-staticsite– Astro static export.js-docusaurus-staticsite– Docusaurus docs site.js-gatsby-staticsite– Gatsby static site.js-next-staticsite– Next.jsoutput: "export"sample.js-svelte– Vite-powered Svelte app.skip-js-hono-wintercg– Hono app targeting WinterCG workers.skip-js-worker-wintercg– Plain WinterCG-compatible worker template.fail-js-nuxt-staticsite– Nuxt static export (tracking open issues).fail-js-remix-staticsite– Remix static export (tracking open issues).
php-basic– Minimal PHP script starter.php-laravel– Laravel application.php-reactphp– ReactPHP HTTP server.php-symfony– Symfony Demo application.fail-php-amphp– AMPHP event-loop demo (known limitations).fail-php-madeline– MadelineProto client sample (requires Telegram credentials).
go-hugo-staticsite– Hugo-generated static site.skip-rust-axum– Axum server compiled to WASIX.
staticsite– Shared static assets and helper scripts.Shipit– Build and deployment recipes used by Wasmer’s internal tooling.
- Local development – Most projects rely on the platform tooling for their language (e.g.,
uvicorn,npm run dev,composer install). Follow the steps in each example README to run locally. - Deploying –
wasmer deployreads thewasmer.toml(or Shipit configuration) in the example directory to bundle code, configure routes, and upload to your Edge namespace. - Environment variables and secrets – Use
wasmer secret addor set values in your deployment pipeline. Examples that require API keys (e.g.,python-langchain-starter) note them explicitly.
Contributions are welcome! If you have an example that showcases a new framework or highlights a best practice:
- Follow the template established in existing READMEs (overview → demo → how it works → local run → Wasmer deployment).
- Add your directory under the appropriate language prefix (
python-,js-,php-, etc.). - Update this root README with a short description and link.
- Open a pull request describing the scenario and any prerequisites.
Happy deploying!