@vercube/h3
v0.0.34
Published
H3 module for Vercube framework
Readme
Vercube
Next generation HTTP framework
An ultra-efficient JavaScript server framework that runs anywhere - Node.js, Bun, or Deno - with unmatched flexibility and complete configurability for developers who refuse to sacrifice speed or control.
H3 Module
The H3 module provides integration between Vercube applications and the H3 HTTP framework. It allows you to:
- Mount Vercube applications on H3 server
- Use H3's routing capabilities with Vercube's application logic
- Integrate Vercube with other H3-based frameworks
Basic Usage
import { createApp } from '@vercube/core';
import { toH3 } from '@vercube/h3';
import { H3, serve } from 'h3';
// Create Vercube app
const app = await createApp();
// Create H3 server
const h3app = new H3();
// Mount Vercube app at /api path
h3app.all('/api/**', toH3(app));
// Start the server
await serve(h3app, { port: 3000 });📖 Documentation
Comprehensive documentation is available at vercube.dev. There you'll find detailed module descriptions, project information, guides, and everything else you need to know about Vercube.
