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 🙏

© 2025 – Pkg Stats / Ryan Hefner

reddy-api-srm

v1.0.1

Published

SRMIST KTR Academia portal

Downloads

109

Readme

Reddy API SRM

A robust TypeScript/JavaScript client for interacting with the SRMIST KTR Academia portal. This package provides easy-to-use functions to fetch student data including timetables, attendance, marks, user information, and course details.

Features

  • 🔐 Authentication: User verification and Password validation
  • 📅 Timetable: Get timetable data
  • 📊 Attendance: Get attendance data
  • 📈 Marks: Get marks data
  • 📚 Course Details: Get course information data
  • 🗓️ Calendar: Get academic calendar data
  • 👤 User Info: Get user information data
  • 🛡️ TypeScript Support: Full TypeScript definitions included
  • Modern ES Modules: Built with modern JavaScript standards

Installation

npm install reddy-api-srm@latest

Quick Start

import {
  verifyUser,
  verifyPassword,
  getTimetable,
  getAttendance,
  getMarks,
  getUserInfo,
  getCalendar,
  getCourse,
} from "reddy-api-srm";

Authentication


// VerifyUser

   const { data, error, errorReason} = await verifyUser("USERNAME");

        // error will be true if there is any Internal Server Error
        // errorReason will have reason if there is error
        // data provide the response data

        // Types

              data?:  {
                lookup?: {
                      identifier: string ;
                      digest: string
                         };
                    }
              status_code: number;
              message: string;;
              error?: string;
              errorReason?: unknown;


  // VerifyPassword

   const {data , error , errorReason , isAuthenticated} = await verifyPassword({
     digest: "DIGEST",
    identifier: "IDENTIFIER",
    password: "PASSWORD",
  });

        // error will be true if there is any Internal Server Error
        // errorReason will have reason if there is error
        // data provide the response data
        // isAuthenticated will be true if user has been authenticated

        // Types

                data?: {
                  cookies?: string;
                      statusCode: number;
                      message?: string;
                      captcha?: {
                        required: boolean;
                        digest: string | null | undefined;
                      };
                    };
                isAuthenticated?: boolean;
                error?: string;
                errorReason?: unknown;



 // Logout

    const {message , status } = await logoutUser("COOKIES");

        // Types

                message: string;
                status: number;

Timetable


  const { timetable, status, error } = await getTimetable('COOKIES');

          // error will be true if there is any Error with fetch or parsing or even if the cookies wrong
          // timetable provide the response data
          // status will give the response status { 200 : success , 404 : unauthorized , 500 : internal server Error}

          // Types

                timetable?: {
                  dayOrder: string;
                  class: {
                          slot: string;
                          isClass: boolean;
                          courseTitle?: string;
                          courseCode?: string;
                          courseType?: string;
                          courseCategory?: string;
                          courseRoomNo?: string;
                          time: string;
                        }[] ;
                      }[] ;
                error?: string;
                status: number;

Attendance


  const { attendance , status, error } = await getAttendance('COOKIES');

          // error will be true if there is any Error with fetch or parsing or even if the cookies wrong
          // attendance provide the response data
          // status will give the response status { 200 : success , 404 : unauthorized , 500 : internal server Error}


          // Types

                attendance?: {
                        courseCode: string;
                        courseTitle: string;
                        courseCategory: string;
                        courseFaculty: string;
                        courseSlot: string;
                        courseConducted: number;
                        courseAbsent: number;
                        courseAttendance: string;
                        }[] ;
                error?: string;
                status: number;

Marks


  const { markList , status, error } = await getMarks('COOKIES');

          // error will be true if there is any Error with fetch or parsing or even if the cookies wrong
          // markList provide the response data
          // status will give the response status { 200 : success , 404 : unauthorized , 500 : internal server Error}


          // Types

                markList?: {
                  course: string;
                  category: string;
                  marks: {
                    exam: string;
                    obtained: number;
                    maxMark: number;
                  }[] ;
                  total: { obtained: number; maxMark: number };
                }[] ;
                error?: string;
                status: number;

Course


  const { courseList , status, error } = await getCourse('COOKIES');

          // error will be true if there is any Error with fetch or parsing or even if the cookies wrong
          // courseList provide the response data
          // status will give the response status { 200 : success , 404 : unauthorized , 500 : internal server Error}


          // Types

                courseList?: {
                  courseCode: string;
                  courseTitle: string;
                  courseCredit: string;
                  courseCategory: string;
                  courseType: string;
                  courseFaculty: string;
                  courseSlot: string[];
                  courseRoomNo: string;
                }[] ;
                batch?: string;
                error?: string;
                status: number;

Calendar


  const { calendar , status, error } = await getCalendar('COOKIES');

          // error will be true if there is any Error with fetch or parsing or even if the cookies wrong
          // calendar provide the response data
          // status will give the response status { 200 : success , 404 : unauthorized , 500 : internal server Error}


          // Types

                  calendar?: {
                      month: string;
                      days: {
                          date: string;
                          day: string;
                          event: string;
                          dayOrder: string;
                      }[] ;
                  }[] ;
                  error?: string;
                  status: number;

User Info


  const { userInfo , status, error } = await getUserInfo('COOKIES');

          // error will be true if there is any Error with fetch or parsing or even if the cookies wrong
          // userInfo provide the response data
          // status will give the response status { 200 : success , 404 : unauthorized , 500 : internal server Error}


          // Types
                    userInfo?: {
                        regNumber: string;
                        name: string;
                        mobile: string;
                        section: string;
                        program: string;
                        department: string;
                        semester: string;
                        batch: string;
                    } ;
                    error?: string;
                    status: number;

Day Order


  const { dayOrder , status, error } = await getDayOrder('COOKIES');

          // error will be true if there is any Error with fetch or parsing or even if the cookies wrong
          // dayOrder provide the response data
          // status will give the response status { 200 : success , 404 : unauthorized , 500 : internal server Error}

          // Types

                dayOrder?: string;
                error?: string;
                status: number;

License

This project is licensed under the MIT License - see the LICENSE file for details.

Disclaimer

This package is not officially affiliated with SRM Institute of Science and Technology. Use responsibly and in accordance with the institution's terms of service.