The room filter, message search, and channel-search inputs had neither id nor name — browsers warn and can't autofill correctly. Give each a name + type=search + autoComplete=off. Bump SW cache v12 -> v13. |
||
|---|---|---|
| public | ||
| src | ||
| tools | ||
| .gitignore | ||
| .woodpecker.yml | ||
| CONFIG.md | ||
| deploy.sh | ||
| eslint.config.js | ||
| index.html | ||
| LICENSE | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| tsconfig.app.json | ||
| tsconfig.json | ||
| tsconfig.node.json | ||
| vite.config.ts | ||
Orbit — a modern IRCv3 web client
A bespoke, pluggable IRCv3 web client (TypeScript + React + Vite, zustand state).
Powers tchatou.fr, and re-pointable at any IRCv3 network
via config.json — no rebuild needed.
- Dev:
npm run dev· Build:npm run build(→dist/) · Preview:npm run preview - Configuration: runtime
config.json(webchat-style) — re-point/re-brand without rebuilding. See CONFIG.md for all options. - Deploy: copy
dist/*(includingconfig.json) to the web root served at/app/. To change config only, edit the deployed/app/config.jsonand reload (the service worker serves it network-first).
React + TypeScript + Vite (template notes)
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Oxc
- @vitejs/plugin-react-swc uses SWC
React Compiler
The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see this documentation.
Expanding the ESLint configuration
If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:
export default defineConfig([
globalIgnores(['dist']),
{
files: ['**/*.{ts,tsx}'],
extends: [
// Other configs...
// Remove tseslint.configs.recommended and replace with this
tseslint.configs.recommendedTypeChecked,
// Alternatively, use this for stricter rules
tseslint.configs.strictTypeChecked,
// Optionally, add this for stylistic rules
tseslint.configs.stylisticTypeChecked,
// Other configs...
],
languageOptions: {
parserOptions: {
project: ['./tsconfig.node.json', './tsconfig.app.json'],
tsconfigRootDir: import.meta.dirname,
},
// other options...
},
},
])
You can also install eslint-plugin-react-x and eslint-plugin-react-dom for React-specific lint rules:
// eslint.config.js
import reactX from 'eslint-plugin-react-x'
import reactDom from 'eslint-plugin-react-dom'
export default defineConfig([
globalIgnores(['dist']),
{
files: ['**/*.{ts,tsx}'],
extends: [
// Other configs...
// Enable lint rules for React
reactX.configs['recommended-typescript'],
// Enable lint rules for React DOM
reactDom.configs.recommended,
],
languageOptions: {
parserOptions: {
project: ['./tsconfig.node.json', './tsconfig.app.json'],
tsconfigRootDir: import.meta.dirname,
},
// other options...
},
},
])
License
Licensed under the GNU Affero General Public License v3.0 or later (AGPL-3.0). If you run a modified version of Orbit as a network service, you must make your modified source available to its users. See LICENSE.