Giter Site home page Giter Site logo

anthonygauthier / blazin Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 27 KB

A blazing fast web application framework for Deno

License: MIT License

TypeScript 96.25% Shell 3.75%
deno javascript typescript web framework framework-javascript rest-api rest

blazin's Introduction

blazin'

blazin is a Deno 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

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 for the test configuration

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 file.

License

MIT

blazin's People

Contributors

anthonygauthier avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.