This is a simple example on how to stream HTML with Elysia in Bun with TailwindCSS (through twind).
This uses the latest @twind/core API.
Please suggest any speed improvements in the comments 🙏
| # If you come from bash you might have to change your $PATH. | |
| # export PATH=$HOME/bin:/usr/local/bin:$PATH | |
| # Path to your oh-my-zsh installation. | |
| export ZSH="$HOME/.oh-my-zsh" | |
| VI_MODE_RESET_PROMPT_ON_MODE_CHANGE=true | |
| VI_MODE_SET_CURSOR=true | |
| MODE_INDICATOR="%F{red}N%f" | |
| INSERT_MODE_INDICATOR="%F{green}I%f" | 
| // ON THE SERVER | |
| import { generatePresignedPost } from "./s3"; | |
| const {url, fields} = await generatePresignedPost(...); // fill with your own parameters. | |
| // send the above url, fields to the Client. | |
| // ON THE CLIENT/BROWSER | 
This is a simple example on how to stream HTML with Elysia in Bun with TailwindCSS (through twind).
This uses the latest @twind/core API.
Please suggest any speed improvements in the comments 🙏