Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pouchlabs/fasteejs

fasteejs blazingly fast express alternative
https://github.com/pouchlabs/fasteejs

api api-rest backend expressjs http nodejs

Last synced: about 1 month ago
JSON representation

fasteejs blazingly fast express alternative

Awesome Lists containing this project

README

        

![fastee](https://fasteejs.top/icon.svg "fasteejs")
# fasteejs blazingly fast express alternative

full featured backend webframework
Fast, Lightweight,Built-in zod schema validator..

# Features
* fast
* production ready
* no production code required it just works
* already know express Yei!
* type safety endpoints
* express ecosystem support
* gracefully shutsdown
* has built-in goodies

```bash
npm i fasteejs
```
# usage

```js
import {Fastee} from "fasteejs"

const app = new Fastee(); //uses defaults
const app1 = new Fastee({port:4000,delay:30000}) //pass port and shutdown delay
let server = http.createServer().listen(5000)
const app2 = new Fastee({server,delay:30000}) //passed listening server must be already running
app.get('/', function (req, res) {
res.send('Hello World')
})

app.static("static",{dotfiles:false}) //pass valid folder path and optional config

//shutdown listener
app.onShutdown((signal)=>{
//call service before shutdown
console.log("before",signal)
})

export {app,app1,app2}
```

# what led to the developement of fasteejs
maintaining production server api was hectick and repetitive ,thus this gave birth to this awesome alternative.