---
title: "Creating an API with Bun"
url: https://daily.dev/posts/creating-an-api-with-bun-vfti4k8np
source_url: https://blog.openreplay.com/api-creation-with-bun/
type: article
source: "asayer"
published: 2023-12-24T20:30:00.727Z
updated: 2023-12-24T20:29:58.828Z
tags: ["javascript", "nodejs", "deno", "bun"]
reading_time: 11
upvotes: 145
comments: 8
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Creating an API with Bun

**[asayer](https://daily.dev/sources/asayer)** · 11 min read · 145 upvotes · 8 comments

## Summary

Learn how to use Bun, a new JavaScript runtime, to create a full API. Explore the features of Bun, set up your development environment, create a database, implement services and controllers, and set up a Bun-Elysia server.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://blog.openreplay.com/api-creation-with-bun/>

## Community discussion

Top comments from developers on daily.dev.

**@hakym** · 4 upvotes

> So this is just NodeJS and express, but modified

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 0 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments

---

Tags: [#javascript](https://daily.dev/tags/javascript), [#nodejs](https://daily.dev/tags/nodejs), [#deno](https://daily.dev/tags/deno), [#bun](https://daily.dev/tags/bun)

[View this post on daily.dev](https://daily.dev/posts/creating-an-api-with-bun-vfti4k8np)
