oscar-web/README.md
2026-12-03 11:09:42 -05:00

57 lines
No EOL
1.8 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Web OSCAR Chat
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.
## Supported
- Sign in with an existing OSCAR screen name/password
- 1:1 instant messages
- Buddy list/presence (when provided by server/Web API)
- Add buddy
- Group chat join/send/leave via TOC
- Chat invites (Join/Ignore) via TOC
- Real-time updates via SSE
- TOC connection status indicator
## Not supported
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.
## Requirements
- Node.js 20.19+
- Running Open OSCAR Server with Web API and/or TOC access
## Setup
```bash
npm install
cp .env.example .env
# edit .env
npm run dev
# or: npm start
```
Open `http://localhost:3000` (or your configured `PORT`).
## Configuration
| Variable | Description | Default |
|---|---|---|
| `WEBAPI_HOST` | Web API host | `127.0.0.1` |
| `WEBAPI_PORT` | Web API port | `8081` |
| `TOC_HOST` | TOC host for IM/chat/invites | unset |
| `TOC_PORT` | TOC port | `9898` |
| `MANAGEMENT_HOST` | Management API host (optional user search) | `127.0.0.1` |
| `MANAGEMENT_PORT` | Management API port | `8080` |
| `PORT` | App listen port | `3000` |
| `LISTEN_HOST` | App bind host | `127.0.0.1` |
| `DEV_ID` | Optional Web API devId/key | unset |
| `SESSION_SECRET` | Cookie signing secret | required |
## Notes
- Group chat/invites require a working TOC connection.
- User search needs Management API access; otherwise open IMs by screen name.
- Sessions are in memory (restart logs users out).
- Review security/hardening before exposing publicly.