README: remove redundant sections

This commit is contained in:
Clay 2026-12-03 11:09:42 -05:00
parent 75618c185d
commit 48f8046a33

135
README.md
View file

@ -1,134 +1,57 @@
# Web OSCAR Chat # Web OSCAR Chat
A small browser chat client for [Open OSCAR Server](https://github.com/mk6i/open-oscar-server). It provides a simple web UI for signing in with an existing OSCAR screen name and using basic AIM/ICQ-style messaging through a Node.js backend. A small browser chat client for [Open OSCAR Server](https://github.com/mk6i/open-oscar-server). It’s a Node/Express app with a plain HTML/CSS/JS frontend for basic AIM/ICQ-style messaging.
## What this is ## Supported
- A lightweight web frontend for an Open OSCAR Server instance. - Sign in with an existing OSCAR screen name/password
- A Node/Express app that keeps OSCAR credentials/sessions server-side and exposes a simple browser UI. - 1:1 instant messages
- A practical client for basic IM and group chat, including TOC-based chat invites where Web API chat is unavailable. - Buddy list/presence (when provided by server/Web API)
- Add buddy
## What this isn't
- Not a full AIM/ICQ desktop client replacement.
- Not a complete implementation of the OSCAR protocol.
- Not a general-purpose chat platform; it is intended to work with Open OSCAR Server.
- Not hardened/finished production software out of the box - review security, deployment, and server configuration before exposing it publicly.
## What oscar-web supports
- Sign in with an existing OSCAR screen name and password
- One-to-one instant messages
- Buddy list display and presence updates (when provided by server/Web API)
- Add buddy (Web API path)
- Group chat join/send/leave via TOC - Group chat join/send/leave via TOC
- Chat invites with Join/Ignore via TOC - Chat invites (Join/Ignore) via TOC
- Real-time updates in the browser over Server-Sent Events (SSE) - Real-time updates via SSE
- TOC connection status indicator - TOC connection status indicator
- Dark web UI with conversation tabs
## What oscar-web does not support (yet) ## Not supported
- Offline message delivery UX / offline inbox OSCAR has many features this project does not implement yet, including: offline messages, file transfer, buddy icons, away/profile/status messages, typing notifications, blocking/warning management, chat moderation/admin, account registration, encryption, and full user directory/search.
- File transfer
- Buddy icons/avatars
- Away messages, status messages, profiles
- Typing notifications
- User blocking/warning ("evil") management
- Chat room moderation/admin features
- Account registration/management
- End-to-end encryption
- Full user directory/search across all accounts (depends on Management API availability)
- Mobile/native app
## OSCAR protocol vs oscar-web
The OSCAR protocol (used by classic AIM/ICQ clients) historically includes many capabilities beyond what this project implements. Depending on server/client support, OSCAR ecosystems may include:
- Instant messaging and group chats
- Buddy lists (feedbag/SSI), presence, and status
- Chat rooms and chat invitations
- Typing notifications
- Buddy icons, profiles, away messages
- File transfer and direct-connect features
- Warnings, blocking/privacy controls
- Directory/search and other service-specific features
**oscar-web currently implements only a small subset** focused on basic IM and chat. If you need a feature not listed under “What oscar-web supports”, assume it is not implemented yet.
## How it works
The browser talks only to this Node/Express app. The app maintains server-side sessions and connects to Open OSCAR Server using:
- **Web API** for login/session/buddy/presence where available
- **TOC (Talk to OSCAR)** for IM and group chat/invites, especially on servers where Web API chat endpoints are not available
## Requirements ## Requirements
- Node.js 20.19+ - Node.js 20.19+
- A running Open OSCAR Server instance - Running Open OSCAR Server with Web API and/or TOC access
- Access to the server's Web API and/or TOC listener
## Setup ## Setup
1. Install dependencies: ```bash
npm install
cp .env.example .env
# edit .env
npm run dev
# or: npm start
```
```bash Open `http://localhost:3000` (or your configured `PORT`).
npm install
```
2. Create your environment file:
```bash
cp .env.example .env
```
3. Edit `.env` with your server settings.
4. Start the app:
```bash
npm run dev
```
Or for a normal run:
```bash
npm start
```
5. Open `http://localhost:3000` (or your configured `PORT`).
## Configuration ## Configuration
See `.env.example` for all options.
| Variable | Description | Default | | Variable | Description | Default |
|---|---|---| |---|---|---|
| `WEBAPI_HOST` | Web API host | `127.0.0.1` | | `WEBAPI_HOST` | Web API host | `127.0.0.1` |
| `WEBAPI_PORT` | Web API port | `8081` | | `WEBAPI_PORT` | Web API port | `8081` |
| `TOC_HOST` | TOC host for IM/chat/invites | unset | | `TOC_HOST` | TOC host for IM/chat/invites | unset |
| `TOC_PORT` | TOC port | `9898` | | `TOC_PORT` | TOC port | `9898` |
| `MANAGEMENT_HOST` | Management API host (used for user search when available) | `127.0.0.1` | | `MANAGEMENT_HOST` | Management API host (optional user search) | `127.0.0.1` |
| `MANAGEMENT_PORT` | Management API port | `8080` | | `MANAGEMENT_PORT` | Management API port | `8080` |
| `PORT` | Port this web app listens on | `3000` | | `PORT` | App listen port | `3000` |
| `LISTEN_HOST` | Host/interface this web app binds to | `127.0.0.1` | | `LISTEN_HOST` | App bind host | `127.0.0.1` |
| `DEV_ID` | Optional Web API devId/key if your server requires it | unset | | `DEV_ID` | Optional Web API devId/key | unset |
| `SESSION_SECRET` | Long random string for cookie signing | required | | `SESSION_SECRET` | Cookie signing secret | required |
## Notes and limitations ## Notes
- Group chat/invites require a working TOC connection. The UI shows a TOC status indicator. - Group chat/invites require a working TOC connection.
- Server-wide user search depends on Management API access. If unavailable, you can still open a direct IM by entering a screen name. - User search needs Management API access; otherwise open IMs by screen name.
- Sessions are stored in memory; restarting the app logs users out. - Sessions are in memory (restart logs users out).
- Use HTTPS and proper deployment hardening before exposing it publicly. - Review security/hardening before exposing publicly.
## Development
- Backend: Node.js, Express, ES modules
- Frontend: plain HTML/CSS/JavaScript (no build step)
- Real-time events: SSE (`/api/events`)
## License
Add a license file if you plan to distribute this publicly.