@scalar/void-server
TypeScript icon, indicating that this package has built-in type declarations

2.2.0 • Public • Published

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.

Package Sidebar

Install

npm i @scalar/void-server

Weekly Downloads

888

Version

2.2.0

License

MIT

Unpacked Size

63.4 kB

Total Files

48

Last publish

Collaborators

  • amritkahlon
  • cameronrohani
  • marclave
  • tommastro
  • scalar_geoff
  • hwkr
  • mason-little
  • hanspagel
  • bgrcs