Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/pouchlabs/fasteejs
- Owner: pouchlabs
- License: mit
- Created: 2024-08-24T15:50:18.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-08-24T16:24:22.000Z (3 months ago)
- Last Synced: 2024-09-28T12:41:03.509Z (about 2 months ago)
- Topics: api, api-rest, backend, expressjs, http, nodejs
- Language: JavaScript
- Homepage: https://fasteejs.top
- Size: 74.2 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: license.md
Awesome Lists containing this project
README
![fastee](https://fasteejs.top/icon.svg "fasteejs")
# fasteejs blazingly fast express alternativefull 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.