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

bunsai

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

bunsai

Full-stack agnostic framework for the web, built upon Bun and ElysiaJS.

  • 0.5.0-canary.2
  • unpublished
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

BunSai

Bonsai is a japanese art of growing and shaping miniature trees in containers

BIG NOTE

As the version implies (v0.x.x), this API is not yet stable and can be breaking changed without warnings.

Quick start

BunSai is a full-stack, zero (production) dependency, agnostic framework for the web, built upon Bun and Elysia. You can install it:

bun add bunsai

And use it as a command:

bun run bunsai

How it works?

Powered by Bun.build, Elysia's routing system and some fancy tricks, BunSai takes an approach where each plugin declares which file extensions they want to work with. Then the app folder is scanned using new Bun.Glob('app/**/*{<extensions>}'). The matched files pass through building and scripting both for Bun and for the web. Finally, BunSai generates a script that exports an Elysia instance.

Rules

Most of the rules are dictated by the plugins, but there are a few "global" rules.

Dynamic path

  • Path parameters must use [foo] sintax. Can be used in a folder (app/[foo]/index.svelte) or a file (app/[foo].svelte)
  • Wildcards must use [...] syntax. Should be used only in a file (app/bar/[...].svelte)

Keywords

FAQs

Package last updated on 10 Apr 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