# oven-sh/bun

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/oven-sh-bun).**

93,257 stars · 4,711 forks · Rust · NOASSERTION

## Links

- GitHub: https://github.com/oven-sh/bun
- Homepage: https://bun.com
- awesome-repositories: https://awesome-repositories.com/repository/oven-sh-bun.md

## Topics

`bun` `bundler` `javascript` `javascriptcore` `jsx` `nodejs` `npm` `react` `transpiler` `typescript` `zig` `ziglang`

## Description

Bun is a high-performance runtime environment designed to execute JavaScript and TypeScript applications with minimal latency and high throughput. Built on a native core implemented in Zig, it provides a unified execution engine that leverages JavaScriptCore for efficient memory management and low-latency startup. The project functions as an all-in-one toolchain, integrating a native bundler, transpiler, package manager, and test runner into a single command-line interface.

What distinguishes Bun is its focus on native system integration and developer productivity. It features a high-performance server runtime with built-in support for HTTP, WebSockets, and SQLite database management, allowing for the creation of scalable network applications without external dependencies. The platform includes a sophisticated build pipeline that supports incremental bundling, build-time macro execution, and the generation of standalone, cross-platform binaries. It also provides a low-level foreign function interface, enabling direct execution of native C and C++ libraries to bypass traditional runtime bottlenecks.

The project covers a broad capability surface, including automated task scheduling, file-system-based routing, and comprehensive dependency management. It offers built-in utilities for cryptographic hashing, secure password verification, and real-time hot module replacement during development. Additionally, the runtime maintains compatibility with existing ecosystems by implementing standard APIs and module resolution patterns, facilitating seamless integration into existing workflows.

Bun is distributed as a command-line tool that manages the entire application lifecycle, from dependency installation and auditing to production asset building and binary distribution.

## Tags

### Programming Languages & Runtimes

- [JavaScript Runtimes](https://awesome-repositories.com/f/programming-languages-runtimes/runtime-execution-environments/javascript-runtimes.md) — Executes JavaScript and TypeScript applications using a high-performance engine optimized for minimal latency and high throughput. ([source](https://cdn.jsdelivr.net/gh/oven-sh/bun@main/README.md))
- [High-Performance](https://awesome-repositories.com/f/programming-languages-runtimes/runtime-execution-environments/javascript-runtimes/high-performance.md) — Optimizes resource-intensive workloads by delivering high-throughput and low-latency processing for modern web applications.
- [High-Performance Server](https://awesome-repositories.com/f/programming-languages-runtimes/runtime-execution-environments/runtime-environments/runtimes/deployment-specific-runtimes/high-performance-server.md) — Powers high-performance network services with native HTTP, WebSocket, and database connectivity.
- [JavaScriptCore-Based Runtimes](https://awesome-repositories.com/f/programming-languages-runtimes/runtime-execution-environments/runtime-environments/runtimes/javascript-and-web-standard/javascriptcore-based-runtimes.md) — Leverages a high-performance engine for efficient memory management and rapid application startup.
- [All-in-One Toolchains](https://awesome-repositories.com/f/programming-languages-runtimes/compiler-interpreter-internals/compiler-toolchains/all-in-one-toolchains.md) — Integrates package management, testing, and bundling into a unified command-line interface.
- [Foreign Function Interfaces](https://awesome-repositories.com/f/programming-languages-runtimes/language-interoperability/foreign-function-interfaces.md) — Exposes a low-level bridge for calling native C and C++ libraries directly from JavaScript or TypeScript code.
- [Native Library Integrations](https://awesome-repositories.com/f/programming-languages-runtimes/language-interoperability/foreign-function-interfaces/native-library-integrations.md) — Enables direct execution of external native libraries through low-level bindings. ([source](https://bun.com/docs/runtime/ffi.md))
- [FFI Type Definitions](https://awesome-repositories.com/f/programming-languages-runtimes/language-interoperability/foreign-function-interfaces/ffi-type-definitions.md) — Translates language-specific data structures to native C types, ensuring accurate memory layout and data exchange with external libraries. ([source](https://bun.com/docs/runtime/ffi.md))
- [Blob Constructors](https://awesome-repositories.com/f/programming-languages-runtimes/programming-utilities/data-text-processing/blob-constructors.md) — Constructs blob objects from various data sources including strings and binary chunks to facilitate standardized web-based data handling. ([source](https://bun.com/docs/guides/binary/buffer-to-blob.md))

### Development Tools & Productivity

- [Dependency Managers](https://awesome-repositories.com/f/development-tools-productivity/dependency-managers.md) — Resolves and manages project dependencies with high-speed algorithms to ensure consistent environment configurations.
- [Dependency Installers](https://awesome-repositories.com/f/development-tools-productivity/dependency-managers/installation-resolution-utilities/dependency-installers.md) — Automates the installation of external packages using optimized resolution utilities. ([source](https://bun.com/docs/pm/cli/add.md))
- [Package Publishing](https://awesome-repositories.com/f/development-tools-productivity/dependency-managers/artifact-distribution-systems/package-publishing.md) — Publishes project artifacts to registries, simplifying version management and code distribution for developers. ([source](https://bun.com/docs/pm/cli/add.md))
- [Project Lockfile Management](https://awesome-repositories.com/f/development-tools-productivity/dependency-managers/installation-resolution-utilities/project-lockfile-management.md) — Generates and updates lockfiles to ensure deterministic dependency versions across different development and production environments. ([source](https://bun.com/docs/pm/cli/install.md))
- [Hot Module Replacement](https://awesome-repositories.com/f/development-tools-productivity/platforms-runtimes-language-services/hot-module-replacement.md) — Updates application modules in real-time without requiring a full system restart, maintaining state during the development cycle. ([source](https://bun.com/docs/bundler/hot-reloading.md))
- [Workspace Managers](https://awesome-repositories.com/f/development-tools-productivity/package-managers/dependency/workspace-managers.md) — Links multiple interconnected packages within a single repository to coordinate shared dependencies and configurations. ([source](https://bun.com/docs/pm/cli/install.md))
- [Debugger Interfaces](https://awesome-repositories.com/f/development-tools-productivity/debugging-profiling-testing/debugging-diagnostics/debugging-inspection-tools/debugger-interfaces.md) — Links external diagnostic tools to the runtime via a standard protocol to visualize execution state and interact with live code. ([source](https://bun.com/docs/runtime/debugger.md))
- [JavaScript and TypeScript Debugging](https://awesome-repositories.com/f/development-tools-productivity/debugging-profiling-testing/debugging-diagnostics/javascript-and-typescript-debugging.md) — Translates transpiled code back to original source files using integrated source map support for precise line-by-line inspection. ([source](https://bun.com/docs/runtime/debugger.md))
- [Dependency Auditing](https://awesome-repositories.com/f/development-tools-productivity/dependency-managers/dependency-auditing.md) — Scans installed packages for security vulnerabilities and dependency issues to maintain a secure and stable project environment. ([source](https://bun.com/docs/pm/cli/add.md))
- [Package Metadata Querying](https://awesome-repositories.com/f/development-tools-productivity/dependency-managers/package-metadata-querying.md) — Queries metadata for installed packages and dependencies to simplify version tracking and project configuration management. ([source](https://bun.com/docs/pm/cli/add.md))
- [Binary Buffer Accesses](https://awesome-repositories.com/f/development-tools-productivity/developer-utilities-libraries/workflow-productivity-enhancers/developer-productivity-utilities/utilities/binary-buffer-accesses.md) — Grants direct access to the underlying memory buffers of typed arrays for low-level data manipulation and inspection. ([source](https://bun.com/docs/guides/binary/typedarray-to-arraybuffer.md))
- [File Watchers](https://awesome-repositories.com/f/development-tools-productivity/file-watchers.md) — Monitors source files for modifications to trigger automatic incremental rebuilds, keeping development environments synchronized with code changes. ([source](https://bun.com/docs/bundler/index.md))
- [Local Dependency Linkers](https://awesome-repositories.com/f/development-tools-productivity/package-managers/dependency/local-dependency-linkers.md) — Links local development packages to projects to facilitate testing and iterative development without publishing to registries. ([source](https://bun.com/docs/pm/cli/add.md))
- [Terminal and CLI Enhancements](https://awesome-repositories.com/f/development-tools-productivity/terminal-shell-cli/terminal-cli-enhancements.md) — Enhances command-line interactions with native APIs that improve logging, output formatting, and developer productivity. ([source](https://bun.com/docs/runtime/console.md))

### DevOps & Infrastructure

- [Source Code Bundlers](https://awesome-repositories.com/f/devops-infrastructure/cicd-pipeline-automation/core-build-engines/bundling-extension-architectures/build-tooling-architectures/source-code-bundlers.md) — Bundles source files into optimized outputs while performing tree-shaking and dead-code elimination. ([source](https://bun.com/docs/bundler/loaders.md))
- [Runtime](https://awesome-repositories.com/f/devops-infrastructure/dependency-management/compatibility-layers/runtime.md) — Implements standard module resolution and API patterns to maintain cross-ecosystem compatibility. ([source](https://cdn.jsdelivr.net/gh/oven-sh/bun@main/README.md))
- [Incremental Bundlers](https://awesome-repositories.com/f/devops-infrastructure/cicd-pipeline-automation/core-build-engines/bundling-extension-architectures/build-tooling-architectures/incremental-bundlers.md) — Performs rapid, incremental rebuilds by monitoring file changes during development cycles.
- [Production Asset Builders](https://awesome-repositories.com/f/devops-infrastructure/cicd-pipeline-automation/core-build-engines/build-systems/production-asset-builders.md) — Minifies, tree-shakes, and optimizes source code into production-ready web assets using a high-speed native engine. ([source](https://bun.com/docs/bundler/html-static.md))
- [Build-Time Macros](https://awesome-repositories.com/f/devops-infrastructure/cicd-pipeline-automation/core-build-engines/build-time-execution/build-time-macros.md) — Evaluates code during the bundling phase to perform static analysis or inject computed values directly into the final output.
- [Build Plugins](https://awesome-repositories.com/f/devops-infrastructure/cicd-pipeline-automation/core-build-engines/build-tooling/build-pipeline-extensions/build-plugins.md) — Extends the compilation process through a modular plugin architecture that intercepts build lifecycle hooks for custom transformations. ([source](https://bun.com/docs/bundler/esbuild.md))
- [Native Bundlers and Transpilers](https://awesome-repositories.com/f/devops-infrastructure/cicd-pipeline-automation/core-build-engines/build-tooling/native-build-orchestrators/native-bundlers-and-transpilers.md) — Converts source code into optimized bundles or standalone executables while applying native transformation and minification rules.
- [Dependency Resolvers](https://awesome-repositories.com/f/devops-infrastructure/dependency-management/resolution-mapping-systems/dependency-resolvers.md) — Coordinates the retrieval and installation of software packages by tracking version constraints across multiple registry types.
- [Standalone Binary Generators](https://awesome-repositories.com/f/devops-infrastructure/deployment-management-strategies/automation-and-tooling/standalone-binary-generators.md) — Packages applications and their dependencies into single, cross-platform executable binaries.
- [CLI Build Executors](https://awesome-repositories.com/f/devops-infrastructure/cicd-pipeline-automation/cicd-pipeline-management/build-pipelines/cli-build-executors.md) — Invokes build pipelines via command-line interfaces to trigger bundling, minification, and deployment tasks. ([source](https://bun.com/docs/bundler/esbuild.md))
- [Automated Build Pipelines](https://awesome-repositories.com/f/devops-infrastructure/cicd-pipeline-automation/core-build-engines/build-tooling/automated-build-pipelines.md) — Orchestrates the transformation and minification of source code into production-ready assets through an integrated build pipeline.
- [Build Macros](https://awesome-repositories.com/f/devops-infrastructure/cicd-pipeline-automation/core-build-engines/build-systems/build-macros.md) — Executes logic during the build phase to fetch external data or inject static values directly into the final output. ([source](https://bun.com/docs/bundler/macros.md))
- [Asset Embedding](https://awesome-repositories.com/f/devops-infrastructure/cicd-pipeline-automation/core-build-engines/bundling-extension-architectures/build-tooling-architectures/asset-embedding.md) — Injects static assets and binary resources directly into standalone executables to eliminate external dependencies and simplify distribution. ([source](https://bun.com/docs/bundler/executables.md))
- [Cross-Compilation Utilities](https://awesome-repositories.com/f/devops-infrastructure/deployment-management-strategies/automation-and-tooling/deployment-tooling/cross-compilation-utilities.md) — Produces standalone binaries for diverse operating systems and architectures from a unified build environment to streamline deployment. ([source](https://bun.com/docs/bundler/executables.md))
- [Object Storage Clients](https://awesome-repositories.com/f/devops-infrastructure/cloud-infrastructure/cloud-computing-serverless/cloud-storage/object-storage-clients.md) — Uploads files and data directly to object storage services using static methods for simplified cloud integration. ([source](https://bun.com/docs/runtime/s3.md))
- [In-Process Task Schedulers](https://awesome-repositories.com/f/devops-infrastructure/scheduling/in-process-task-schedulers.md) — Schedules asynchronous callbacks on a recurring basis within the current process lifecycle to handle background logic without external dependencies. ([source](https://bun.com/docs/runtime/cron.md))

### Networking & Communication

- [Request Routers](https://awesome-repositories.com/f/networking-communication/http-clients/request-routers.md) — Routes incoming network traffic through configurable middleware chains before reaching application logic. ([source](https://bun.com/docs/runtime/http/server.md))
- [HTTP Servers](https://awesome-repositories.com/f/networking-communication/http-clients/http-servers.md) — Initializes high-performance web servers to process incoming HTTP requests efficiently. ([source](https://bun.com/docs/runtime/http/server.md))
- [WebSocket Servers](https://awesome-repositories.com/f/networking-communication/distributed-systems-p2p/distributed-computing/communication-protocols/websocket-implementations/websocket-servers.md) — Facilitates persistent, bidirectional communication channels for real-time data exchange through high-performance server-side primitives. ([source](https://bun.com/docs/runtime/http/server.md))
- [TLS Configurations](https://awesome-repositories.com/f/networking-communication/http-clients/tls-configurations.md) — Configures secure communication channels by managing TLS certificates and encryption settings for high-performance web servers. ([source](https://bun.com/docs/runtime/http/server.md))
- [HTTP Cookie Management](https://awesome-repositories.com/f/networking-communication/http-clients/http-cookie-management.md) — Manages HTTP cookies with structured access to names, values, and security attributes. ([source](https://bun.com/docs/runtime/cookies.md))

### Operating Systems & Systems Programming

- [File System I/O](https://awesome-repositories.com/f/operating-systems-systems-programming/kernel-core-internals/system-programming-primitives/system-primitives/file-system-i-o.md) — Handles file system operations through native APIs to ensure rapid read and write performance. ([source](https://bun.com/docs/runtime/bun-apis.md))
- [Process and Memory Management](https://awesome-repositories.com/f/operating-systems-systems-programming/kernel-core-internals/process-and-memory-management.md) — Spawns, monitors, and controls external system processes with full input and output stream integration. ([source](https://bun.com/docs/runtime/bun-apis.md))
- [Native System Integrations](https://awesome-repositories.com/f/operating-systems-systems-programming/kernel-core-internals/system-programming-primitives/system-abstractions/native-interoperability-bindings/native-system-integrations.md) — Provides direct access to low-level operating system APIs and native file system operations for high-performance system tasks.

### Software Engineering & Architecture

- [Modular and Plugin Architectures](https://awesome-repositories.com/f/software-engineering-architecture/software-architecture/architectural-patterns/plugin-module-systems/modular-plugin-architectures.md) — Structures complex systems using modular primitives that bypass traditional runtime bottlenecks.
- [JavaScript Minification](https://awesome-repositories.com/f/software-engineering-architecture/performance-reliability/code-optimization/javascript-minification.md) — Minimizes file size by stripping whitespace and shortening identifiers during the build process to accelerate application load times. ([source](https://bun.com/docs/bundler/minifier.md))
- [Native Plugin Development](https://awesome-repositories.com/f/software-engineering-architecture/integration-extensibility/ecosystem-tooling/native-plugin-development.md) — Enables high-performance native extensions using low-level modules to run intensive logic in parallel threads and bypass single-threaded limitations. ([source](https://bun.com/docs/bundler/plugins.md))
- [Bytecode Cache Generators](https://awesome-repositories.com/f/software-engineering-architecture/performance-reliability/performance-optimization/caching-memoization/bytecode-caching/bytecode-cache-generators.md) — Generates cached bytecode files during the build process to eliminate runtime parsing overhead and accelerate application startup times. ([source](https://bun.com/docs/bundler/bytecode.md))
- [Architectural Patterns](https://awesome-repositories.com/f/software-engineering-architecture/software-architecture/architectural-patterns.md) — Facilitates scalable server-side architectures using centralized error handling, environment-based configuration, and reusable response utilities. ([source](https://bun.com/docs/bundler/fullstack.md))

### System Administration & Monitoring

- [Socket Management](https://awesome-repositories.com/f/system-administration-monitoring/administrative-operations/linux-system-administration/networking/socket-protocol-layering/socket-management.md) — Exposes low-level interfaces for managing socket communication and network protocol tasks. ([source](https://bun.com/docs/runtime/bun-apis.md))
- [Traffic Interception and Modification](https://awesome-repositories.com/f/system-administration-monitoring/administrative-operations/linux-system-administration/networking/traffic-interception-modification.md) — Supports real-time transformation of network traffic while maintaining efficient streaming capabilities. ([source](https://bun.com/docs/runtime/html-rewriter.md))
- [Server Metrics](https://awesome-repositories.com/f/system-administration-monitoring/monitoring-and-observability/observability-platforms/metric-performance-monitors/server-metrics.md) — Reports internal server health and performance metrics to provide real-time observability into production resource usage. ([source](https://bun.com/docs/runtime/http/server.md))

### Web Development

- [API Route Definitions](https://awesome-repositories.com/f/web-development/web-infrastructure-deployment/web-infrastructure-servers/http-servers/api-route-definitions.md) — Maps HTTP methods and URL patterns to specific request handlers within a unified server environment. ([source](https://bun.com/docs/bundler/fullstack.md))
- [File-System-Based Routers](https://awesome-repositories.com/f/web-development/routing-systems/routing/route-definition-strategies/file-system-based-routers.md) — Matches directory structures and file paths automatically to URL endpoints to simplify web routing configuration.
- [CSS Transpilers](https://awesome-repositories.com/f/web-development/web-infrastructure-deployment/asset-management-build-tools/asset-lifecycle-orchestration/asset-processing/css-transpilers.md) — Transforms modern CSS syntax into browser-compatible formats with automatic vendor prefixing to guarantee consistent visual rendering. ([source](https://bun.com/docs/bundler/css.md))
- [CSS Module Bundlers](https://awesome-repositories.com/f/web-development/web-infrastructure-deployment/asset-management-build-tools/style-optimization-tools/css-build-tools/css-module-bundlers.md) — Aggregates style sheets with automatic class scoping to prevent naming collisions while enabling modular component composition. ([source](https://bun.com/docs/bundler/css.md))
- [Static HTML Serving](https://awesome-repositories.com/f/web-development/web-infrastructure-deployment/web-infrastructure-servers/static-html-serving.md) — Serves static HTML as dynamic routes by automatically bundling necessary scripts and styles during the server-side request lifecycle. ([source](https://bun.com/docs/bundler/fullstack.md))
- [CSS Asset Bundling](https://awesome-repositories.com/f/web-development/api-management-tools/content-static-site-generation/css-asset-bundling.md) — Links style imports to JavaScript entry points while applying content hashing to optimize asset delivery and caching. ([source](https://bun.com/docs/bundler/html-static.md))
- [Full-Stack Web Development](https://awesome-repositories.com/f/web-development/backend-development/web-frameworks/full-stack-frameworks/full-stack-web-development.md) — Unifies server-side API development and client-side interface construction within a single, high-speed environment.
- [Single Page Application Hosting](https://awesome-repositories.com/f/web-development/web-infrastructure-deployment/web-infrastructure-servers/http-servers/single-page-application-hosting.md) — Configures fallback routing to serve a single HTML file for all paths, enabling client-side navigation within complex web applications. ([source](https://bun.com/docs/bundler/html-static.md))

### Data & Databases

- [Embedded Databases](https://awesome-repositories.com/f/data-databases/database-management-systems/database-engines/embedded-databases.md) — Embeds relational storage engines directly within the application process to enable high-speed local data management without external servers. ([source](https://bun.com/docs/runtime/sqlite.md))
- [Prepared Statement Engines](https://awesome-repositories.com/f/data-databases/database-drivers/prepared-statement-engines.md) — Compiles SQL queries into efficient binary representations to accelerate the performance of repetitive database operations. ([source](https://bun.com/docs/runtime/sqlite.md))
- [Atomic Transaction Execution](https://awesome-repositories.com/f/data-databases/data-integration-synchronization/data-integration/database-integrations/atomic-transaction-execution.md) — Groups multiple database operations into atomic transactions to ensure data consistency and integrity during complex updates. ([source](https://bun.com/docs/runtime/sqlite.md))

### Security & Cryptography

- [Cryptographic Primitives](https://awesome-repositories.com/f/security-cryptography/cryptography/cryptographic-primitives.md) — Provides built-in cryptographic primitives for hashing and digital signatures to ensure data integrity. ([source](https://bun.com/docs/runtime/bun-apis.md))
- [Cryptographic Hash Computations](https://awesome-repositories.com/f/security-cryptography/security/cryptography-and-secrets/cryptographic-primitives-management/cryptographic-hash-computations.md) — Calculates secure message digests for strings and binary data using standard algorithms to verify data integrity. ([source](https://bun.com/docs/runtime/hashing.md))
- [Binary Integrity Verification](https://awesome-repositories.com/f/security-cryptography/security/utilities/cryptographic-implementation-tools/binary-integrity-verification.md) — Applies system-level security signatures and entitlements to standalone binaries to satisfy operating system requirements and prevent execution warnings. ([source](https://bun.com/docs/bundler/executables.md))

### Testing & Quality Assurance

- [Snapshot Testing](https://awesome-repositories.com/f/testing-quality-assurance/general-testing-utilities/test-utilities-assertions/assertion-extensions-modes/snapshot-testing.md) — Compares serialized data or component outputs against stored reference files to detect and report regressions automatically. ([source](https://bun.com/docs/test/index.md))
- [Test Lifecycle Hooks](https://awesome-repositories.com/f/testing-quality-assurance/general-testing-utilities/test-utilities-assertions/test-lifecycle-execution-control/test-lifecycle-hooks.md) — Triggers setup and teardown logic before or after test execution to ensure consistent environments and clean resource management. ([source](https://bun.com/docs/test/index.md))
- [Dependency Mocking](https://awesome-repositories.com/f/testing-quality-assurance/software-testing/dependency-mocking.md) — Substitutes complex dependencies or network calls with controlled mocks to isolate logic during unit and integration testing. ([source](https://bun.com/docs/test/index.md))
- [UI](https://awesome-repositories.com/f/testing-quality-assurance/software-testing/testing-frameworks/ui.md) — Simulates browser-like environments within test suites to verify user interface interactions and ensure consistent visual behavior. ([source](https://bun.com/docs/test/index.md))

### Part of an Awesome List

- [Build Tools and Tooling](https://awesome-repositories.com/f/awesome-lists/devtools/build-tools-and-tooling.md) — Fast JavaScript runtime, bundler, and package manager.
- [Developer Tools](https://awesome-repositories.com/f/awesome-lists/devtools/developer-tools.md) — Fast JavaScript runtime and package manager.
- [Web Frameworks and Runtimes](https://awesome-repositories.com/f/awesome-lists/devtools/web-frameworks-and-runtimes.md) — All-in-one JavaScript runtime, bundler, and package manager.

### Content Management & Publishing

- [HTML Document Transformation](https://awesome-repositories.com/f/content-management-publishing/content-processing-transformation/document-processing-conversion/document-processing-tools/markup-and-structure-parsers/html-document-transformation.md) — Parses and modifies HTML content using CSS selectors to dynamically update documents during request or response handling. ([source](https://bun.com/docs/runtime/html-rewriter.md))

### User Interface & Experience

- [DOM Event Listeners](https://awesome-repositories.com/f/user-interface-experience/form-and-input-management/interaction-and-event-handling/event-handling-architectures/event-handling/dom-event-listeners.md) — Attaches event listeners to HTML elements matching specific CSS selectors to perform transformations or logic during document parsing. ([source](https://bun.com/docs/runtime/html-rewriter.md))
