Supported Frameworks and Languages
Start from a template on the Wasmer website: https://wasmer.io/templates . Wasmer includes custom detection that identifies your repository type (e.g., Next.js, Astro, Laravel, WordPress, Symfony, Django, Flask, FastAPI, MCP, and more), packages it automatically with Wasmer, and deploys it to Wasmer Edge — no Dockerfile required.
PHP
- Detection: any repo containing at least one
.phpfile is treated as PHP. - Dependencies: Composer dependencies are installed automatically (
composer.json/composer.lock). - Frameworks: Laravel, Symfony, WordPress.
- Notes: Typical entry points like
public/index.phpare supported.
Python
- Detection: presence of
requirements.txtorpyproject.toml. - Dependencies: installed automatically in the deployment image.
- Post‑deploy tasks: framework‑specific steps can run (e.g., Django migrations).
- Frameworks: Django, Flask, FastAPI, MCP, Streamlit.
- Servers: Uvicorn (ASGI and WSGI), Daphne (ASGI).
Example layout:
# Python
requirements.txt or pyproject.toml
app.py # Flask / FastAPI entrypoint
manage.py # Django projectsStatic Sites
- Detection:
index.htmlat the repo root or aStaticfile. - Served directly from the Edge network.
JavaScript Frameworks (auto‑detected)
- Examples: Next.js, Astro.
- Typical signals: framework configs (e.g.,
next.config.*,astro.config.*) and package scripts (build,dev). Wasmer builds and packages for Edge.
Databases (auto‑detected)
- Support: MySQL (currently supported).
- Behavior: If your app requires a database, Wasmer will automatically detect it and attach a MySQL database to your app.
- Connection: When running on Wasmer Edge, these environment variables are prepopulated with the connection details:
DB_HOST,DB_PORT,DB_NAME,DB_USER,DB_PASSWORD.
Quick Reference
PHP: any *.php → installs Composer deps
Python: requirements.txt | pyproject.toml → installs deps, runs framework steps
Static: index.html | Staticfile → served as static
JS: Next.js / Astro → auto build + package
DB: MySQL (auto‑detected) → env: DB_HOST, DB_PORT, DB_NAME, DB_USER, DB_PASSWORDTo get started, pick a template at https://wasmer.io/templates and push your code. The platform will handle dependency installation, build, packaging, and rollout to Wasmer Edge automatically.
Last updated on