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

juno-erp-client

v1.0.1

Published

A high-level TypeScript API wrapper for the JUNO Campus ERP platform, supporting automated login and session persistence.

Readme

Juno ERP Client

npm version License: MIT

A high-level TypeScript API wrapper for the JUNO Campus ERP system (MGM University). This library simplifies programmatic access to student information, academic details, attendance, results, and fees.

Features

  • 🔐 Automated Authentication: Handles the multi-step Juno login process (including JSESSIONID acquisition and session priming).
  • 💾 Session Persistence: Built-in support for saving and loading cookies to/from a local file or external storage.
  • 📘 Type Safe: Fully written in TypeScript with comprehensive interfaces for all API responses.
  • Easy to Use: Simplified methods for common tasks like checking attendance, results, and timetables.

Installation

npm install juno-erp-client

Quick Start

Basic Login

import { JunoClient } from 'juno-erp-client';

const client = new JunoClient({ debug: true });

const success = await client.login('your_username', 'your_password');
if (success) {
    const profile = await client.getStudentProfile();
    console.log(`LoggedIn as: ${profile[0].firstName} ${profile[0].lastName}`);
}

Session Persistence (File-based)

Automatically save and reuse your session to avoid logging in every time.

const client = new JunoClient({
    sessionPath: './.session/cookies.json', // Path to save cookies
    autoSave: true // Default: true if sessionPath is provided
});

// Check if we have an active session
if (!(await client.isLoggedIn())) {
    await client.login(username, password);
}

// Now you're ready to make API calls!
const results = await client.getStudentResults({
    examScheduleId: '...',
    examSemesterId: '...',
    universitySyllabusId: 0
});

Manual Session Export/Import

Useful for serverless environments (e.g., storing session in Redis or a DB).

// Export
const sessionData = client.exportSession();

// Import on a new instance
const newClient = new JunoClient();
newClient.importSession(sessionData);

if (await newClient.isLoggedIn()) {
    console.log("Re-authenticated using exported session!");
}

API Documentation

The client provides methods for:

  • Student Information: getStudentProfile, getPersonalInformation, getAcademicInfo, getAdmissionDetails.
  • Attendance: getAttendanceDetails, getAttendanceGraph.
  • Academics: getCourses, getStudentResults, getExamDetails.
  • Finance: getFeesDetails, getStudentReceivable.
  • Schedule: getTodaySchedule, getTimetableBetweenDates.
  • Utils: search, getStudentIdFromSession.

All methods return strongly typed promises. Refer to the TypeScript definitions for detailed response structures.

Troubleshooting

Connectivity

If you encounter ECONNREFUSED or ETIMEDOUT, ensure that:

  1. The MGM University ERP (erp.mgmu.ac.in) is online.
  2. You are not blocked by a firewall or VPN.

Empty Responses

Some endpoints require specific session "priming". The library handles this during login(). If you are using session persistence, ensure the session has not expired on the server.

License

MIT © Denizuh