4.6 KiB
Web OSCAR Chat
A small browser chat client for 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.
What this is
- A lightweight web frontend for an Open OSCAR Server instance.
- A Node/Express app that keeps OSCAR credentials/sessions server-side and exposes a simple browser UI.
- A practical client for basic IM and group chat, including TOC-based chat invites where Web API chat is unavailable.
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
- Chat invites with Join/Ignore via TOC
- Real-time updates in the browser over Server-Sent Events (SSE)
- TOC connection status indicator
- Dark web UI with conversation tabs
What oscar-web does not support (yet)
- Offline message delivery UX / offline inbox
- 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
- Node.js 20.19+
- A running Open OSCAR Server instance
- Access to the server's Web API and/or TOC listener
Setup
-
Install dependencies:
npm install -
Create your environment file:
cp .env.example .env -
Edit
.envwith your server settings. -
Start the app:
npm run devOr for a normal run:
npm start -
Open
http://localhost:3000(or your configuredPORT).
Configuration
See .env.example for all options.
| 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 (used for user search when available) | 127.0.0.1 |
MANAGEMENT_PORT |
Management API port | 8080 |
PORT |
Port this web app listens on | 3000 |
LISTEN_HOST |
Host/interface this web app binds to | 127.0.0.1 |
DEV_ID |
Optional Web API devId/key if your server requires it | unset |
SESSION_SECRET |
Long random string for cookie signing | required |
Notes and limitations
- Group chat/invites require a working TOC connection. The UI shows a TOC status indicator.
- Server-wide user search depends on Management API access. If unavailable, you can still open a direct IM by entering a screen name.
- Sessions are stored in memory; restarting the app logs users out.
- Use HTTPS and proper deployment hardening before exposing it 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.