Feature Request: Support Custom Server Configuration in aw-client-js
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- nodejs, typescript
- Domain
- api
Research direction
Start with src/aw-client.ts around line 140 and inspect how aw-client-js currently selects its server endpoint. Determine the supported configuration behavior for a custom base URL and port, then verify that clients can target a non-default or remote ActivityWatch server; the issue does not name a test file, so completion should include coverage for the chosen configuration interface.
Written by the indexing model from the issue text.
Description
To support multi-user environments and remote server deployments, aw-client-js should allow explicit configuration of the server base_url and port.
Currently, the native Windows client achieves this via configuration files in the client's config folder, which enables users to connect to a server running on a different machine or custom port. However, aw-client-js lacks a similar mechanism, making it difficult for browser-based or custom clients to connect to non-default endpoints.
Adding support for custom server URLs in aw-client-js (e.g. via constructor options or environment variables) would bring it in line with the native clients and enable greater flexibility for advanced use cases like:
- Connecting to a centralized ActivityWatch server
- Running multiple clients across devices
- Developing third-party clients or extensions
Relevant code reference: aw-client.ts L140
- Dominant language
- TypeScript
- Stars
- 40
- Forks
- 20
- Avg merge
- 10d 20h
- Merged PRs (30d)
- 7
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ActivityWatch/aw-client-js
-
Bucket methods interpolate reserved characters as URL syntaxPossibly taken @TimeToBuildBob claimed this 26 days ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 73/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 25/100
-
Add support for pre-merge heartbeatsPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 3/5 1-2 days Newbie friendliness 35/100
All issues in ActivityWatch/aw-client-js
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 66/100
-
Difficulty 1/5 Under an hour Newbie friendliness 65/100
prometheus/docs#3198 ·
Maintainers usually reply within 3 days
-
[Bug]: OpenCode v2 skips an assistant message that gains text after an earlier capturePossibly taken @jianyx1 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
volcengine/OpenViking#8354 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
ARTPARK-SAHAI-ORG/calibrate-frontend#842 ·
Maintainers usually reply within 1 day
-
Chat: Copying a selection that includes the end of a message also copies the actions menu labelsOpen
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
suitenumerique/hub#176 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day