You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/concept/plugin.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -90,7 +90,7 @@ Config type will be inferred into `use`, generating auto completion and type str
90
90
91
91
## Plugin deduplication
92
92
93
-
By default, Elysia will register any plugin and handle type definitions which when using multiple times will results in a multiple duplication of setting value or routes.
93
+
By default, Elysia will register any plugin and handle type definitions which when using multiple times will result in a multiple duplication of setting value or routes.
94
94
95
95
This can be fixed by providing name and optional seeds to help Elysia identify instance duplication:
Copy file name to clipboardExpand all lines: docs/plugins/overview.md
+42-41Lines changed: 42 additions & 41 deletions
Original file line number
Diff line number
Diff line change
@@ -7,11 +7,11 @@ head:
7
7
8
8
- - meta
9
9
- name: 'description'
10
-
content: Elysia is designed to be modular and lightweight. That's why Elysia is creating pre-built common pattern plugin for convenient usage for developers, and thanks to community plugins for customizing Elysia even further.
10
+
content: Elysia is designed to be modular and lightweight, which is why Elysia includes pre-built plugins involving common patterns for convenient developer usage. Elysia is enhanced by community plugins which customize it even further.
11
11
12
12
- - meta
13
13
- name: 'og:description'
14
-
content: Elysia is designed to be modular and lightweight. That's why Elysia is creating pre-built common pattern plugin for convenient usage for developers, and thanks to community plugins for customizing Elysia even further.
14
+
content: Elysia is designed to be modular and lightweight, which is why Elysia includes pre-built plugins involving common patterns for convenient developer usage. Elysia is enhanced by community plugins which customize it even further.
15
15
---
16
16
17
17
# Overview
@@ -21,50 +21,51 @@ Following the same idea as Arch Linux (btw, I use Arch):
21
21
22
22
> Design decisions are made on a case-by-case basis through developer consensus
23
23
24
-
To ensure that developers endup with performant web server they intent to created.
25
-
26
-
That's why Elysia is creating pre-built common pattern plugin for convinient usage for developers:
24
+
This is to ensure developers end up with a performant web server they intend to create. By extension, Elysia includes pre-built common pattern plugins for convenient developer usage:
-[CORS](/plugins/cors) - set up [Cross-origin resource sharing (CORS)](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS)
29
+
-[Cron](/plugins/cron) - set up [cron](https://en.wikipedia.org/wiki/Cron) job
30
+
-[Eden](/plugins/eden/overview) - end-to-end type safety client for Elysia
31
+
-[GraphQL Apollo](/plugins/graphql-apollo) - run [Apollo GraphQL](https://www.apollographql.com/) on Elysia
32
+
-[GraphQL Yoga](/plugins/graphql-yoga) - run [GraphQL Yoga](https://github.com/dotansimha/graphql-yoga) on Elysia
33
+
-[HTML](/plugins/html) - handle HTML responses
34
+
-[JWT](/plugins/jwt) - authenticate with [JWTs](https://jwt.io/)
35
+
-[Server Timing](/plugins/server-timing) - audit performance bottlenecks with the [Server-Timing API](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Server-Timing)
-[tRPC](/plugins/trpc) - support [tRPC](https://trpc.io/)
40
+
-[WebSocket](/patterns/websocket) - support [WebSockets](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket)
41
41
42
42
## Community plugins:
43
-
-[Lucia Auth](https://github.com/pilcrowOnPaper/lucia) - Authentication, simple and clean
44
-
-[Elysia Clerk](https://github.com/wobsoriano/elysia-clerk) - Unofficial Clerk plugin for ElysiaJS
45
-
-[Elysia Polyfills](https://github.com/bogeychan/elysia-polyfills) - run Elysia ecosystem on Node and Deno
46
-
-[Vite](https://github.com/timnghg/elysia-vite) - Simple Elysia plugin that helps you use Vite. It serve your entry html file with Vite's scripts injected
47
-
-[Elysia Helmet](https://github.com/DevTobias/elysia-helmet) - secure Elysia apps with various HTTP headers.
48
-
-[Vite Plugin SSR](https://github.com/timnghg/elysia-vite-plugin-ssr) - Vite Plugin SSR using Elysia server
43
+
-[Lucia Auth](https://github.com/pilcrowOnPaper/lucia) - authentication, simple and clean
-[i18n](https://github.com/eelkevdbos/elysia-i18next) - [i18n](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/i18n) wrapper based on [i18next](https://www.i18next.com/)
61
+
-[Elysia Request ID](https://github.com/gtramontina/elysia-requestid) - add/forward request IDs (`X-Request-ID` or custom)
62
+
-[Elysia HTMX](https://github.com/gtramontina/elysia-htmx) - context helpers for [HTMX](https://htmx.org/)
63
+
-[Elysia HMR HTML](https://github.com/gtrabanco/elysia-hmr-html) - reload HTML files when changing any file in a directory
64
+
-[Elysia Inject HTML](https://github.com/gtrabanco/elysia-inject-html) - inject HTML code in HTML files
65
+
-[Elysia HTTP Error](https://github.com/yfrans/elysia-http-error) - return HTTP errors from Elysia handlers
66
+
-[Elysia Http Status Code](https://github.com/sylvain12/elysia-http-status-code) - integrate HTTP status codes
-[Elysia Tailwind](https://github.com/gtramontina/elysia-tailwind) - Compile [Tailwindcss](https://tailwindcss.com/) in a plugin.
68
69
69
70
---
70
71
If you have plugin written for Elysia, feels free to share your plugin by creating PR to [documentation repo](https://github.com/elysiajs/documentation).
content: Plugin for Elysia for performance audit via Server Timing API. Start by installing the plugin with "bun add @elysiajs/server-timing".
11
+
12
+
- - meta
13
+
- name: 'og:description'
14
+
content: Plugin for Elysia that add support for streaming response and Server Sent Event, eg. OpenAI integration. Start by installing the plugin with "bun add @elysiajs/server-timing".
15
+
---
16
+
17
+
# Server Timing Plugin
18
+
This plugin add support for auditing performance bottleneck with Server Timing API
0 commit comments