aboutsummaryrefslogtreecommitdiff
path: root/docs/ecosystem
diff options
context:
space:
mode:
authorGravatar Colin McDonnell <colinmcd94@gmail.com> 2023-07-31 12:20:23 -0700
committerGravatar GitHub <noreply@github.com> 2023-07-31 12:20:23 -0700
commit404b90badc5856a74c06d04062c850003e28fed5 (patch)
tree7954623cf4a792db612d0bb229a227c2ff1e9fd8 /docs/ecosystem
parent67599f97adc77141331a5f4fc39e4d058dc70b2a (diff)
downloadbun-404b90badc5856a74c06d04062c850003e28fed5.tar.gz
bun-404b90badc5856a74c06d04062c850003e28fed5.tar.zst
bun-404b90badc5856a74c06d04062c850003e28fed5.zip
Add ecosystem guides (#3847)
* Add ecosystem guides * Update titles * Rename stric * Add unlink and fetch guides * Add formdata guide * Tweak title * Moar
Diffstat (limited to 'docs/ecosystem')
-rw-r--r--docs/ecosystem/elysia.md4
-rw-r--r--docs/ecosystem/hono.md9
2 files changed, 7 insertions, 6 deletions
diff --git a/docs/ecosystem/elysia.md b/docs/ecosystem/elysia.md
index b5225e6ce..60dafe981 100644
--- a/docs/ecosystem/elysia.md
+++ b/docs/ecosystem/elysia.md
@@ -1,7 +1,7 @@
[Elysia](https://elysiajs.com) is a Bun-first performance focused web framework that takes full advantage of Bun's HTTP, file system, and hot reloading APIs.
Designed with TypeScript in mind, you don't need to understand TypeScript to gain the benefit of TypeScript with Elysia. The library understands what you want and automatically infers the type from your code.
-:zap: Elysia is [one of the fastest Bun web frameworks](https://github.com/SaltyAom/bun-http-framework-benchmark)
+⚡️ Elysia is [one of the fastest Bun web frameworks](https://github.com/SaltyAom/bun-http-framework-benchmark)
```ts#server.ts
import { Elysia } from 'elysia'
@@ -9,7 +9,7 @@ import { Elysia } from 'elysia'
const app = new Elysia()
.get('/', () => 'Hello Elysia')
.listen(8080)
-
+
console.log(`🦊 Elysia is running at on port ${app.server.port}...`)
```
diff --git a/docs/ecosystem/hono.md b/docs/ecosystem/hono.md
index c89dce9f7..e96fbc5c9 100644
--- a/docs/ecosystem/hono.md
+++ b/docs/ecosystem/hono.md
@@ -1,15 +1,16 @@
[Hono](https://github.com/honojs/hono) is a lightweight ultrafast web framework designed for the edge.
```ts
-import { Hono } from 'hono'
-const app = new Hono()
+import { Hono } from "hono";
+const app = new Hono();
-app.get('/', (c) => c.text('Hono!'))
+app.get("/", c => c.text("Hono!"));
-export default app
+export default app;
```
Get started with `bun create` or follow Hono's [Bun quickstart](https://hono.dev/getting-started/bun).
+
```bash
$ bun create hono ./myapp
$ cd myapp