https://github.com/activitywatch/aw-client-js
Client library for ActivityWatch in JavaScript
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
Keywords from Contributors
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
Metadata Files
README.md
aw-client-js
Client library for ActivityWatch in TypeScript/JavaScript.
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
- Website: https://activitywatch.net
- Twitter: ActivityWatchIt
- Repositories: 57
- Profile: https://github.com/ActivityWatch
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
Top Committers
| Name | 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
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
- Homepage: https://github.com/ActivityWatch/aw-client-js
- License: MPL-2.0
-
Latest release: 0.4.1
published 12 months ago
Rankings
Maintainers (2)
npmjs.org: activity-watch-client
An ActivityWatch client library for JavaScript/NodeJS
- Homepage: http://activitywatch.github.io/
- License: UNLICENSED
-
Latest release: 0.1.0
published over 7 years ago
Rankings
Maintainers (1)
Dependencies
- 182 dependencies
- @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 *
- actions/cache v2 composite
- actions/checkout v2 composite
- actions/setup-node v1 composite