a simple chat application written in typescript with bun
- TypeScript 79.7%
- CSS 15.1%
- Nix 4%
- HTML 1.2%
| components | ||
| css | ||
| .envrc | ||
| .gitignore | ||
| bun.lock | ||
| client.tsx | ||
| flake.lock | ||
| flake.nix | ||
| index.html | ||
| index.ts | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
bun-chat
This is a basic web chat application using Bun's WebSocket API. It's a learning project that will later be iterated upon for use in my forum as well as another planned app, expect subpar practices but please know that I am trying my best.
TODO
- Refine auto-scrolling logic so that it scrolls consistently and at any width.
- Add React to project because I am tired of handling DOM.
- Implement mobile UI.
- Make reconnection logic less opaque.
- Implement button to change username.
- Add more things to the todo list.
To install dependencies:
bun install
To run:
bun run index.ts
Alternatively, if you have Nix:
nix develop
nix-direnv should also work after running direnv allow, if you have that set up.
This project was created using bun init in bun v1.3.8. Bun is a fast all-in-one JavaScript runtime.