wooks v0.4.35
Wooks
!!! This is work-in-progress library, breaking changes are expected !!!
Wooks is a Event Processing Framework based on composable (hooks) functions.
wooks
+ @wooksjs/event-http
= Web Application Framework with hooks.
As an alternative for express
and fastify
, wooks
brings the whole different approach for processing http requests.
It utilizes such a technique as you can see in React Hooks or Vue Composables. It has only a dependency on @prostojs/router (an alternative to find-my-way
used by fastify
) which is a very fast (see benchmarks here) and robust URI router.
HTTP Composables packs:
- @wooksjs/event-http - HTTP event package with core functionality
- @wooksjs/http-body - to parse body
- @wooksjs/http-static - to serve static files
- @wooksjs/http-proxy - to proxy requests
Installation
npm install wooks
Quick Start with a Web App
npm install wooks @wooksjs/event-http
import { useRouteParams } from 'wooks'
import { createHttpApp } from '@wooksjs/event-http'
const app = createHttpApp()
app.on('GET', 'hello/:name', () => `Hello ${useRouteParams().get('name')}!`)
// shortcuts for some methods are supported:
// app.get('hello/:name', () => `Hello ${ useRouteParams().get('name') }!`)
app.listen(3000, () => {
console.log('Wooks Server is up on port 3000')
})
See full documentation for http event here
Documentation
To check out docs, visit wooks.moost.org.
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
2 months ago
3 months ago
3 months ago
3 months ago
3 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
5 months ago
5 months ago
5 months ago
6 months ago
7 months ago
11 months ago
11 months ago
10 months ago
10 months ago
11 months ago
10 months ago
10 months ago
10 months ago
10 months ago
7 months ago
7 months ago
7 months ago
7 months ago
9 months ago
9 months ago
7 months ago
9 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
12 months ago
1 year ago
1 year ago
1 year ago
1 year ago
12 months ago
12 months ago
12 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago