Skip to main content
Home

unofficial art soft and more Elternportal-API

This package works with Node.js, Deno, BunIt is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
JSR Score
76%
Published
4 months ago (2.11.0)

ElternPortal API Client ๐Ÿ“š

This library provides an easy-to-use interface for interacting with the ElternPortal system, a platform for school-parent communication in Germany.

Features ๐ŸŒŸ

  • Authentication: Securely log in to the ElternPortal system
  • Kid Management: Set and retrieve information about children linked to the account
  • School Information: Fetch various details about the school
  • Announcements: Get updates from the school's bulletin board (Schwarzes Brett)
  • Calendar: Retrieve school events and schedules
  • Parent Letters: Access and download parent letters (Elternbriefe)
  • Lost and Found: View items in the lost and found section

Installation ๐Ÿ’ป

pnpm i @philippdormann/elternportal-api

Usage ๐Ÿš€

Initializing the Client

import { getElternportalClient } from "@philippdormann/elternportal-api";

const client = await getElternportalClient({
  short: "schoolcode",
  username: "your_username",
  password: "your_password",
  kidId: 0, // Optional
});

Available Methods

Get Kids ๐Ÿ‘จโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ฆ

const kids = await client.getKids();

Get School Information ๐Ÿซ

const schoolInfo = await client.getSchoolInfos();

Get Bulletin Board (Schwarzes Brett) ๐Ÿ“Œ

const posts = await client.getSchwarzesBrett(includeArchived);

Get School Calendar (Termine) ๐Ÿ“…

const events = await client.getTermine(fromDate, toDate);

Get Timetable ๐Ÿ•’

const timetable = await client.getStundenplan();

Get Lost and Found Items ๐Ÿงฆ

const lostItems = await client.getFundsachen();

Get Parent Letters ๐Ÿ“ฌ

const letters = await client.getElternbriefe();

Download Files ๐Ÿ“

const bulletinFile = await client.getSchwarzesBrettFile(fileId);
const letterFile = await client.getElternbrief(letterId);

Get exam schedule

const examSchedule = await client.getSchulaufgabenplan();

Types ๐Ÿ“

The library includes TypeScript definitions for various data structures:

  • SchoolInfo
  • Termin (Calendar Event)
  • Elternbrief (Parent Letter)
  • SchwarzesBrettBox (Bulletin Board Item)
  • ElternportalFile

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@philippdormann/elternportal-api

Import symbol

import * as elternportal_api from "@philippdormann/elternportal-api";
or

Import directly with a jsr specifier

import * as elternportal_api from "jsr:@philippdormann/elternportal-api";

Add Package

pnpm i jsr:@philippdormann/elternportal-api
or (using pnpm 10.8 or older)
pnpm dlx jsr add @philippdormann/elternportal-api

Import symbol

import * as elternportal_api from "@philippdormann/elternportal-api";

Add Package

yarn add jsr:@philippdormann/elternportal-api
or (using Yarn 4.8 or older)
yarn dlx jsr add @philippdormann/elternportal-api

Import symbol

import * as elternportal_api from "@philippdormann/elternportal-api";

Add Package

vlt install jsr:@philippdormann/elternportal-api

Import symbol

import * as elternportal_api from "@philippdormann/elternportal-api";

Add Package

npx jsr add @philippdormann/elternportal-api

Import symbol

import * as elternportal_api from "@philippdormann/elternportal-api";

Add Package

bunx jsr add @philippdormann/elternportal-api

Import symbol

import * as elternportal_api from "@philippdormann/elternportal-api";