A JavaScript/TypeScript API wrapper for MonLycée.net, the digital platform dedicated to high school students in Île-de-France.
This library is in its alpha stage and under active development. Expect breaking API changes, bugs, and incomplete features.
MonLycée.net is the Digital Workspace (ENT - Espace Numérique de Travail) deployed for public high schools in the Île-de-France region (which includes Paris).
- It serves 470 public high schools across the region (Academies of Créteil, Paris, and Versailles).
- It is accessible to over 650,000 users: high school students, parents, teachers, and non-teaching staff.
npm add monlycee.js
# or
pnpm add monlycee.js
# or
yarn add monlycee.js
# or
bun add monlycee.jsimport { MonLyceeClient } from "monlycee.js";
const client = new MonLyceeClient();
await client.login({
username: "YOUR_USERNAME_HERE",
password: "YOUR_PASSWORD_HERE",
});const userInfo = await client.getUserInfo();
console.log(userInfo);const profile = await client.getProfile();
console.log(profile);Fetch mails from inbox with default settings (30 per page, sorted by newest first):
const mails = await client.getMails();
console.log(mails);Customize folder, pagination, and sorting:
const mails = await client.getMails({
folder: "SF_OUTBOX", // Folder to fetch mails from
page: 2, // Page number (1-based, default: 1)
perPage: 50, // Items per page (default: 30, no limit)
sortBy: "dateAsc", // Sort order (default: "dateDesc")
});
console.log(mails);| Folder | Description |
|---|---|
SF_INBOX |
Inbox (default) |
SF_DRAFT |
Drafts |
SF_OUTBOX |
Sent messages |
SF_JUNK |
Spam/Junk |
SF_TRASH |
Trash |
VF_flagged |
Flagged messages |
VF_attachments |
Messages with attachments |
VF_unread |
Unread messages |
| Option | Description |
|---|---|
dateDesc |
Newest first (default) |
dateAsc |
Oldest first |
MIT License - see LICENSE file for details.