Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@bit-js/byte

Package Overview
Dependencies
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bit-js/byte

A simple, performance-focused web framework that works on Bun, Deno, and browsers. ```ts import { Byte } from '@bit-js/byte';

  • 1.2.8
  • npm
  • Socket score

Version published
Weekly downloads
5
decreased by-61.54%
Maintainers
1
Weekly downloads
 
Created
Source

Byte

A simple, performance-focused web framework that works on Bun, Deno, and browsers.

import { Byte } from '@bit-js/byte';

export default new Byte()
    .get('/', (ctx) => ctx.body('Hi'));

Features

  • Fast: Internally use Blitz, the fastest router in the JS ecosystem.
  • Lightweight: Under 30kB in size including dependencies.
  • Multi-runtime: Works on all JS runtimes without any adapters.

Benchmarks

Byte starts up 1.5x faster than Hono with LinearRouter.

[446.37ms] Byte: Build 1000 routes
[635.84ms] Hono: Build 1000 routes

Byte matches routes 5x faster than Hono with RegExpRouter.

"/user":
- Hono: 5377ns
- Byte: 1064ns

"/user/comments":
- Hono: 5289ns
- Byte: 1103ns

"/user/avatar":
- Hono: 5153ns
- Byte: 1082ns

"/event/:id":
- Hono: 5792ns
- Byte: 1455ns

"/event/:id/comments":
- Hono: 5726ns
- Byte: 1631ns

"/status":
- Hono: 5358ns
- Byte: 1036ns

"/deeply/nested/route/for/testing":
- Hono: 5253ns
- Byte: 1047ns

See benchmarks for more details.

Docs

See the docs at bytejs.pages.dev.

Keywords

FAQs

Package last updated on 12 May 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc