kingworld icon indicating copy to clipboard operation
kingworld copied to clipboard

Fast, and friendly Bun web framework

Results 5 kingworld issues
Sort by recently updated
recently updated
newest added

I'm working on another bun project and I found that you can get more contributors with a website. I built a really simple website and documentation generation tool if you...

```ts import KingWorld from 'kingworld'; type Data = { field: number; } const app = new KingWorld() .state('result', null) .get('/', context => context.store.result.field) .listen(3000); console.log(`🦊 KINGWORLD is running at :${app.server.port}`);...

good first issue

```ts import { KingWorld } from 'kingworld'; new KingWorld() .get('/', () => 'Hi') .get('/error', () => { throw new Error('test') }) .onError(error => { console.log(error.name === 'test'); }) .listen(8080) ```...

good first issue

Currently this returns `200 HM` as there seems to be a bug in bun. Tracking in https://discord.com/channels/876711213126520882/1044751397993840770/1044751397993840770 ```ts return new Response(JSON.stringify({ field: 'value' }), { status: 200, statusText: 'test' });...

I was hoping something like this could be added? ```ts import KingWorld from 'kingworld' const server = new KingWorld() .get('/', () => 'Hello KingWorld') .listen(0) console.log('🦊 KINGWORLD is running at...