Skip to main content
Module

x/fastro/benchmarks/_template.md

Fast and simple web application framework for deno
Go to Latest
File

ci

Fastro

Fast, simple, minimalist web framework for Deno.

Inspired by Fastify & Express.

import { Fastro } from "https://deno.land/x/fastro/mod.ts";

const server = new Fastro();

server.get("/", (req) => req.send("root"));

await server.listen();

How to use & examples

This module uses git release. If you want to use a particular release, for example v0.0.1, then the complete url is https://deno.land/x/fastro@v0.1.0/mod.ts. If you do not use the version, it will refer to latest version (master branch).

Check the following codes to find out how to: changing the default port, modify the header, modify default request, or adding plugins: examples.

Benchmarks

If performance is important to you, here are the benchmark results:

Framework Version Router? Avg Req
Abc ${abc_version} ${abc}
Deno http ${deno_version} ${deno_http}
Express ${express_version} ${express}
Fastify ${fastify_version} ${fastify}
Fastro ${fastro_version} ${fastro}
Node http ${node_version} ${node}
Oak ${oak_version} ${oak}

Check this to see the detail method & results: benchmarks.