Skip to content

Latest commit

 

History

History
55 lines (40 loc) · 1.52 KB

File metadata and controls

55 lines (40 loc) · 1.52 KB

Scalar Void Server

Version Downloads License Discord

An Hono server that responds with the request data. Kind of a mirror for HTTP requests.

It’s running on https://void.scalar.com, feel free to use it.

Examples

Installation

npm add @scalar/void-server

Usage

import { serve } from '@hono/node-server'
import { createVoidServer } from '@scalar/void-server'

// Create the server instance
const app = await createVoidServer()

// Start the server
serve(
  {
    fetch: app.fetch,
    port: 3000,
  },
  (info) => {
    console.log(`Listening on http://localhost:${info.port}`)
  },
)

Community

We are API nerds. You too? Let’s chat on Discord: https://discord.gg/scalar

License

The source code in this repository is licensed under MIT.