Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/anthonygauthier/blazin
A blazing fast web application framework for Deno
https://github.com/anthonygauthier/blazin
deno framework framework-javascript javascript rest rest-api typescript web
Last synced: 7 days ago
JSON representation
A blazing fast web application framework for Deno
- Host: GitHub
- URL: https://github.com/anthonygauthier/blazin
- Owner: anthonygauthier
- License: mit
- Created: 2020-02-21T20:28:08.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-02-07T01:53:31.000Z (almost 4 years ago)
- Last Synced: 2024-10-17T16:37:22.061Z (about 2 months ago)
- Topics: deno, framework, framework-javascript, javascript, rest, rest-api, typescript, web
- Language: TypeScript
- Homepage:
- Size: 26.4 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
- awesome-blazingly-fast - blazin - A blazing fast web application framework for Deno (TypeScript)
README
# blazin'
`blazin` is a [Deno](https://deno.land/) web application framework. It is built directly on top of the `std/http` core library.
It's syntax is inspired by Express.js.## Features
The goal of `blazin` is obviously to be blazin' fast, but also be *hella* simple. With simplicity in mind,
`blazin` comes with :* A `Router` component
* A simplified `Response` component
* A `Logger` to understand what's going on inside your server
* Support for middlewares with the `Middleware` component## Example: hello world
Here is the simplest implementation of a hello-world in `blazin````typescript
import { Blazin } from "https://raw.githubusercontent.com/delirius325/blazin/master/Blazin.ts";const blazin = new Blazin(8000)
blazin.router.get("/", res => {
res.status(200)
.headers({"X-HelloWorld-Header": "hello-world"})
.send({message: "Hello World!" })
});blazin.start();
```## Performance benchmark
Simple `hello world` server:
See [benchmark.yaml](tests/performance/benchmark.yaml) for the test configuration
```text
Summary report @ 18:11:01(+0000) 2020-10-14
Scenarios launched: 180
Scenarios completed: 180
Requests completed: 540
Mean response/sec: 3.01
Response time (msec):
min: 0.2
max: 50
median: 0.5
p95: 1
p99: 7.9
Scenario counts:
0: 180 (100%)
Codes:
200: 540
```## Contributing
To contribute, please refer to the [CONTRIBUTING.md](./CONTRIBUTING.md) file.## License
MIT