An API to show what I'm up to. https://chse.dev/now https://life-api.chse.dev/
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Chase 79133c13bf
build Details
lint Details
Merge pull request 'Update dependency express-rate-limit to v7.0.1' (#26) from renovate/express-rate-limit-7.x into main
Reviewed-on: #26
20 hours ago
.github Update '.github/workflows/linter.yml' 1 week ago
.vscode Initial Commit 1 month ago
extension-src try n yeet cors? 1 month ago
src fix empty string 1 month ago
.dockerignore Initial Commit 1 month ago
.editorconfig Initial Commit 1 month ago
.env.example Manual Addition. 1 month ago
.eslintrc.json att. to fix chrome extension? 1 month ago
.gitattributes Initial Commit 1 month ago
.gitignore Initial Commit 1 month ago
Dockerfile Initial Commit 1 month ago
LICENSE.md Initial Commit 1 month ago
Makefile Initial Commit 1 month ago
README.md feat list 1 month ago
package-lock.json Merge pull request 'Update dependency express-rate-limit to v7.0.1' (#26) from renovate/express-rate-limit-7.x into main 20 hours ago
package.json Merge pull request 'Update dependency express-rate-limit to v7.0.1' (#26) from renovate/express-rate-limit-7.x into main 20 hours ago
renovate.json Initial Commit 1 month ago

README.md

life-api
Donate

An API to show what I'm up to.

Features

  • Pulls Music from Last.fm.
  • Pulls TV/Movies from Tautulli.
  • Allows manually setting/clearing the current activity.
  • Badge endpoint for showing current activity.
  • Chrome Extension to set current activity (Reddit/Hacker News/YouTube).

Running

docker run -d \
    --name life-api \
    -p 3000:3000 \
    -e NODE_ENV=production \
    -e LASTFM_API_KEY= \
    -e LASTFM_USER= \
    -e TAUTULLI_BASEURL= \
    -e TAUTULLI_API_KEY= \
    -e TAUTULLI_USER= \
    -e API_KEY= \
    git.chse.dev/chase/life-api:latest

Endpoints

  • / - Returns a JSON object with all the data.
  • /badge - Takes current activity and returns a badge.
  • /manual [POST] - Manually set the current activity.
  • /manual/clear [POST] - Resets the current activity.

Development

git clone https://git.chse.dev/chase/life-api.git
cd life-api
npm i
cp .env.example .env # add creds.
node .