a back end web application framework for building RESTful APIs with Bun/Deno & Node.js with Queue/Locking/Jobs/WebSocket built-in and more
##demo > copy startup.js to your project
{
apiPath: '',
port: PORT,
logging: {
error: true,
http: true
}
}
const cxt = await Kernel(opts);
-
export const ihttp = IHttp(handler, middlewares)
-
export const isocket = ISocket(handler, middlewares)
-
export const ikernel = IKernel(handler, middlewares)
-
Response(data, { message = '', status = 200 });
-
NotFound({ message = '' });
-
PaginatedResponse(data, { message = 'success', status = 200 })
-
UnhandledReponse(err)
-
EmptyResponse();