https://github.com/activitywatch/aw-client-js

Client library for ActivityWatch in JavaScript

https://github.com/activitywatch/aw-client-js

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (7.2%) to scientific vocabulary

Keywords

activitywatch javascript nodejs typescript

Keywords from Contributors

time-tracker timetracker productivity archival interactive projection sequences quantified-self afk observability
Last synced: 6 months ago · JSON representation

Repository

Client library for ActivityWatch in JavaScript

Basic Info
  • Host: GitHub
  • Owner: ActivityWatch
  • License: mit
  • Language: TypeScript
  • Default Branch: master
  • Size: 274 KB
Statistics
  • Stars: 38
  • Watchers: 4
  • Forks: 17
  • Open Issues: 5
  • Releases: 3
Topics
activitywatch javascript nodejs typescript
Created almost 10 years ago · Last pushed 12 months ago
Metadata Files
Readme License

README.md

aw-client-js

Client library for ActivityWatch in TypeScript/JavaScript.

Build Status npm Known Vulnerabilities

Install

sh npm install aw-client

Usage

The library uses Promises for almost everything, so either use .then() or async/await syntax.

The example below is written with .then() to make it easy to run in the node REPL.

```javascript const { AWClient } = require('aw-client'); const client = new AWClient('test-client')

// Get server info client.getInfo().then(console.log);

// List buckets client.getBuckets().then(console.log);

// Create bucket const bucketId = "test"; client.createBucket(bucketId, "bucket-type", "your-hostname");

// Send a heartbeat const nowStr = (new Date()).toISOString(); const heartbeat = {timestamp: nowStr, duration: 0, data: { label: "just testing!" }}; client.heartbeat(bucketId, 5, heartbeat); ```

Contribute

Setup your dev environment

sh npm install

Build the library

sh npm run compile

Run the tests

sh npm test

Owner

  • Name: ActivityWatch
  • Login: ActivityWatch
  • Kind: organization

Open source time-tracking application with a focus on extensibility and privacy.

GitHub Events

Total
  • Create event: 1
  • Release event: 1
  • Issues event: 2
  • Watch event: 6
  • Delete event: 1
  • Issue comment event: 1
  • Push event: 4
  • Pull request review event: 1
  • Pull request event: 4
  • Fork event: 3
Last Year
  • Create event: 1
  • Release event: 1
  • Issues event: 2
  • Watch event: 6
  • Delete event: 1
  • Issue comment event: 1
  • Push event: 4
  • Pull request review event: 1
  • Pull request event: 4
  • Fork event: 3

Committers

Last synced: 8 months ago

All Time
  • Total Commits: 145
  • Total Committers: 9
  • Avg Commits per committer: 16.111
  • Development Distribution Score (DDS): 0.441
Past Year
  • Commits: 6
  • Committers: 3
  • Avg Commits per committer: 2.0
  • Development Distribution Score (DDS): 0.333
Top Committers
Name Email Commits
Erik Bjäreholt e****k@b****t 81
Johan Bjäreholt j****n@b****t 29
A_A a****a@a****1 21
mathieudutour m****u@d****e 6
dependabot[bot] 4****] 4
Liam Dyer l****r@g****m 1
Bruno Parga b****a@g****m 1
Brayo v****n@g****m 1
BelKed 6****d 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 7 months ago

All Time
  • Total issues: 10
  • Total pull requests: 38
  • Average time to close issues: 8 months
  • Average time to close pull requests: 21 days
  • Total issue authors: 6
  • Total pull request authors: 9
  • Average comments per issue: 1.5
  • Average comments per pull request: 1.13
  • Merged pull requests: 31
  • Bot issues: 0
  • Bot pull requests: 9
Past Year
  • Issues: 1
  • Pull requests: 2
  • Average time to close issues: N/A
  • Average time to close pull requests: about 13 hours
  • Issue authors: 1
  • Pull request authors: 2
  • Average comments per issue: 0.0
  • Average comments per pull request: 0.0
  • Merged pull requests: 2
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • ErikBjare (3)
  • Otto-AA (2)
  • johan-bjareholt (2)
  • ozRnDs (1)
  • Francoisvt04 (1)
  • itsfolf (1)
Pull Request Authors
  • ErikBjare (13)
  • dependabot[bot] (9)
  • johan-bjareholt (8)
  • Otto-AA (3)
  • BelKed (2)
  • 0xbrayo (2)
  • Saghen (2)
  • brunoparga (1)
  • mathieudutour (1)
Top Labels
Issue Labels
Pull Request Labels
dependencies (9)

Packages

  • Total packages: 2
  • Total downloads:
    • npm 695 last-month
  • Total dependent packages: 5
    (may contain duplicates)
  • Total dependent repositories: 17
    (may contain duplicates)
  • Total versions: 13
  • Total maintainers: 3
npmjs.org: aw-client

An ActivityWatch client library for JavaScript/NodeJS

  • Versions: 12
  • Dependent Packages: 3
  • Dependent Repositories: 16
  • Downloads: 688 Last month
Rankings
Dependent repos count: 3.0%
Downloads: 5.3%
Forks count: 5.5%
Average: 6.0%
Stargazers count: 7.4%
Dependent packages count: 8.8%
Maintainers (2)
Last synced: 6 months ago
npmjs.org: activity-watch-client

An ActivityWatch client library for JavaScript/NodeJS

  • Versions: 1
  • Dependent Packages: 2
  • Dependent Repositories: 1
  • Downloads: 7 Last month
Rankings
Forks count: 5.5%
Stargazers count: 7.4%
Dependent repos count: 10.3%
Dependent packages count: 20.9%
Average: 21.8%
Downloads: 64.7%
Maintainers (1)
Last synced: 6 months ago

Dependencies

package-lock.json npm
  • 182 dependencies
package.json npm
  • @types/mocha * development
  • @types/node * development
  • @typescript-eslint/eslint-plugin ^5.21.0 development
  • @typescript-eslint/parser ^5.21.0 development
  • eslint ^8.14.0 development
  • eslint-plugin-prettier * development
  • mocha * development
  • prettier * development
  • typescript * development
  • typescript-eslint * development
  • axios *
.github/workflows/nodejs.yml actions
  • actions/cache v2 composite
  • actions/checkout v2 composite
  • actions/setup-node v1 composite