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

@scolup/linkdirecte

v1.1.0

Published

Your first-rate SDK for working with EcoleDirecte data.

Readme

Linkdirecte is a fast, easy-to-use, complete and fully tree-shakable TypeScript/JavaScript SDK for interacting with the private EcoleDirecte API.

Whether you are building Discord bots, native mobile apps, web apps, or others, Linkdirecte handles all the messy stuff so you can focus on building what matters.


⭐️ Key Features

  • 🌳 Tree-shakeable | Import only what you use.
  • 🚪 Fully auto auth | GTK cookies, tokens, 2FA, and token refreshes are fully managed silently.
  • 🛣️ Built-in proxy support | Perfect for running directly in browsers (bypassing CORS).
  • 🛜 Offline | Local cache and built-in offline action queues.
  • 🎓 Rich feature set | Fully supports grades, timetable, homework, messages, attendance, cloud, QCM and more. Parent account support coming this year!
  • 🌐 Available everywhere | Works flawlessly on Node.js 18+, Bun, Deno, modern browsers*, Cloudflare Workers, React Native, Capacitor, Electron, etc.
  • 🔒 Secure | Zero password stored; supports AES-GCM data encryption.

🚀 Quick Start

Get Linkdirecte up and running in under a minute!

1. Install the SDK

Using npm:

npm install @scolup/linkdirecte

Using Bun:

bun add @scolup/linkdirecte

2. Log In Easily

Let Linkdirecte log you in, handle token storage, and coordinate security questions:

import { login } from "@scolup/linkdirecte";

const result = await login("your_username", "your_password", {
  rememberMe: true, // Auto-saves session for seamless subsequent loads
  on2faRequired: async (question, choices) => {
    console.log("EcoleDirecte Security Question:", question);
    console.log("Choices:", choices);

    // Choose your answer: return either the choice index (number) or text (string)
    return 0; // Selects the first choice
  }
});

if (result.type === "success") {
  console.log(`Success! Logged in as ${result.user.prenom} ${result.user.nom}`);
}

3. Fetch Student Data

Once authenticated, call any of Linkdirecte's modular methods. You never need to handle authorization tokens manually again:

import { getGrades } from "@scolup/linkdirecte";

const gradesResult = await getGrades();

console.log(`Loaded ${gradesResult.notes.length} grades!`);
if (gradesResult.notes.length > 0) {
  console.log(`Latest grade: ${gradesResult.notes[0].valeur}/${gradesResult.notes[0].noteSur}`);
}

📖 Documentation

For full instructions, configuration guides, and references, explore the project wiki.


⚖️ License & Legal

Linkdirecte is licensed under the Affero General Public License v3 (AGPL 3.0).

This means if you utilize Linkdirecte inside a project and make it publicly available (such as an executable download, mobile application, or web/server service), you must make your project open-source under that same license.

[!TIP] For projects already under GPL 3.0, you don't have to change your license! GPL and AGPL are fully compatible. You are only required to use AGPL if you host Linkdirecte on a server.

This project is an independent third-party development and is not affiliated or sponsored in any way with Aplim or EcoleDirecte.

[!CAUTION] LINKDIRECTE MIGHT HANDLE MINORS' DATA. ALWAYS ASK FOR PARENT CONSENT BEFORE STORING ANYWHERE OR PROCESSING DATA THROUGH SERVERS.


*Chromium only works when the proxy is enabled.