![[BNK Logo.webp]] Bun Nook Kit (BNK) is a comprehensive toolkit for software development, leveraging the power of Bun and TypeScript. With zero third-party dependencies, strong TypeScript inferencing, and a focus on Web API standards, BNK offers a modular, type-safe, and efficient way to build robust applications.
bash <(curl -fsSL https://raw.githubusercontent.com/brandon-schabel/bun-nook-kit/main/scripts/quickstart.sh)
After you run the quickstart script it'll prompt you with the code to add to your zshrc/bashrc, this CLI script will point to the latest version of bnkit when using the CLI
Bun Nook Kit has a variety of module to help you build any web based application from a CLI to a fullstack web server. Plug the modules into an existing project as long as you can run Bun, or start your next project entirely on BNK and experience a much simpler development experience.
- Zero Third-Party Dependencies: BNK relies solely on Bun, ensuring lightweight and efficient operation.
- Strong TypeScript Type Inferencing: Enhances code reliability and eases development with powerful type support.
- Modular Design: Provides flexibility to use only what you need for your project.
- Web API Standards: Ensures broad compatibility and future-proofing.
The goal of BNK is to provide a set of tools in which a developer can rapidly develop full-stack interactive JavaScript application with no additional dependencies, BNK relies on nothing but the APIs provided by Bun. Bun is now on >1.0 and is stable and as such BNK is focusing on providing a stable 1.0 release to lock in the APIs.
Example of how you use the following modules to build out a full stack server
- Server Module handle the application business logic - generate webpages on the server with...
- HTMLody Module HTML templating with JSON object syntax. With a Tailwind-like CSS utility library!
- SQLite Module store permanent data!
- Auth Module - If your application requires it!
Join our Discord Server for support, discussions, and updates.
An HTMLody component, as well the TypeScript inference abilities as all the types shown in the in intellisense were inferred from the SQLite schema configured for the user subscription.
The next two screenshots show how easy it can be to create and start a server - even with middleware with great type inference.
Lastly, an example showing direct importing from the htmlody module.
For those on GitHub:
BNK is available under the MIT License - free for personal and commercial use.
Bun Nook Kit - An attempt at keeping developers out of dependency hell.
Contribute to The Docs: Bun Nook Kit Docs GitHub