ActivityWatch / ActivityWatch/aw-client-js

Feature Request: Support Custom Server Configuration in aw-client-js

未关闭
#48 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
TypeScript
星标
40
派生
20
PR 合并指标
30 天内没有已合并 PR

描述

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](https://github.com/ActivityWatch/aw-client-js/blob/b2e02b3df9c398526619abc7c75507b0ab866ab3/src/aw-client.ts#L140)

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。