Skip to content
This repository was archived by the owner on Feb 17, 2026. It is now read-only.

Repository files navigation

metaforiq-node

  1. auth using local db based on username and password

  2. aka Libowski-bot, automating a couple frequent activities:

    • looking for items recently ordered by the library to be first to reserve for a shorter wait once the library gets the item
    • checking for "best seller" aka "new release" items currently on the shelf

Getting Started

  1. Install

    npm install
  2. Start

    npm start
  3. Once started, cron jobs will run periodically, or you can test for a response:

    curl localhost:8008

Tech Stack

  1. nodejs - js runtime
  2. dotenv
  3. express - http server
  4. lowdb - database
  5. pino - logger
  6. node-fetch - request lib
  7. cheerio - html parser
  8. node-cron - cron scheduler
  9. discord.js - discord api library

Primary Capabilities

Find On-Order Blurays in past 7 days

  1. Scape items from newly acquired page
  2. Send notification at noon and 6pm with all on order items, if there are any new ones
  3. manually invoke with this endpoint /on-order

Check for Now Available New Release Blurays

  1. Scrape ids from now available page
  2. Scrape availability of wish list items for local branches
  3. Send notification indicating which local branches have item on shelf now, if any
  4. manually invoke with this endpoint /available-now

Wish List

  1. manage wish list of keywords through these endpoints
    • /wish-list
    • /add-to-wish-list/:keywords
    • /remove-from-wish-list/:keywords
  2. responses from available now scraping will be filtered by the wish list keyword(s) in the item titles

Scheduled Runs

  1. using node-cron to periodically scrape library items
  2. send notifications if wish list items are available now or send all on order items

About

a Node.js project with custom modules for authentication, automating local county library look ups for new items, discord server posting and webhook interactions, and other data processing.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Used by

Contributors

Languages