npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

n8n-nodes-librus-synergia

v0.2.15

Published

Librus Synergia nodes for n8n (unofficial, using librus-api)

Readme

n8n-nodes-librus-synergia

Unofficial. Uses the community librus-api (scrapes Synergia). Use according to your school/Librus ToS.

Build

npm ci
npm run build

This produces dist/ with compiled JS.

Install into n8n (Docker)

Bind-mount the folder into n8n user data and let n8n auto-load custom nodes.

Example docker-compose.override.yml next to your n8n service:

services:
  n8n:
    volumes:
      - ./n8n-nodes-librus-synergia/dist:/home/node/.n8n/custom/n8n-nodes-librus-synergia
    environment:
      - N8N_ENABLE_OPENAI_TOOLBOX=false

Restart n8n. In the Editor, search for the Librus node. Create two credentials of type Librus API (e.g., "Librus – Parent A", "Librus – Parent B"). Pick the credential per node.

Usage tips

  • To fetch for two users: duplicate the Librus node, select the other credential, and merge results.
  • Add Error Trigger or IF node to handle login errors (e.g. password change).
  • For daily digests: Cron → Librus (Grades + Messages) → Function (group by date) → OpenAI → Email/Telegram.

Operations overview

The node now provides a full facade of the librus-api package. Pick a Resource and Operation, then fill in fields shown.

  • Messages

    • List Inbox → inbox.listInbox(folderId, page?)
    • Get Message → inbox.getMessage(folderId, messageId)
    • Send Message → inbox.sendMessage(userId, title, content)
    • Delete Message → inbox.removeMessage(messageId)
    • List Receivers → inbox.listReceivers(group)
    • List Announcements → inbox.listAnnouncements()
    • Get Attachment → inbox.getFile(path)
      • Binary output property configurable via "Binary Property" (default: data)
  • Homework

    • List Subjects → homework.listSubjects()
    • List Homework → homework.listHomework(subjectId, from, to)
    • Get Homework → homework.getHomework(homeworkId)
  • Absence

    • Get Absences → absence.getAbsences()
    • Get Absence → absence.getAbsence(absenceId)
  • Calendar

    • Get Timetable → calendar.getTimetable(from, to)
    • Get Calendar → calendar.getCalendar(month, year)
    • Get Event → calendar.getEvent(eventId, isAbsence)
  • Info

    • Get Grades → info.getGrades()
    • Get Grade → info.getGrade(gradeId)
    • Get Point Grade → info.getPointGrade(gradeId)
    • Get Notifications → info.getNotifications()
    • Get Lucky Number → info.getLuckyNumber()
    • Get Account Info → info.getAccountInfo()

Binary attachments

For Messages → Get Attachment, set the exact "Attachment Path" from a message’s files list. The node outputs base64 binary under item.binary[Binary Property]. You can change "Binary Property" to match downstream expectations.

Example flows

  • Latest inbox items this week

    • Resource: Messages → List Inbox
    • Folder ID: 5 (inbox)
    • From/To: set week range
  • Download attachment from a message

    • Step 1: Messages → Get Message (folder 5, message id)
    • Step 2: Item Lists split on json.files[]
    • Step 3: Messages → Get Attachment (Attachment Path: {{$json.path}}), Binary Property: file
    • Step 4: Move Binary Data or Write Binary File

JSON Schemas

Minimal JSON schemas for outputs live in src/types/schemas.ts for documentation and future validation needs.

Data normalization (since 0.2.6)

  • Absences: Over-nested structures like [ { "0": [ { date, table, info }, ... ] } ] are converted to a single object keyed by date: { "2025-09-29 (pon.)": { table: [...], info: [...] }, ... } with null table slots removed.
  • Calendar (Get Calendar): If the API returns grouped nested arrays of events, they are flattened into a simple list (one output item per event) automatically. This removes the need for an extra Function/Code node doing items.flatMap(...).

If you need the raw shape in future, open an issue—feature flags can be added.