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

estudante-sei-api

v1.3.0

Published

A non-official API to interact with UniRV's SEI system, focused on student functionalities.

Downloads

16

Readme

🎓 Estudante SEI API

An unofficial, robust TypeScript library to interact with the UniRV SEI student portal.


Estudante SEI API provides a simple and type-safe way to programmatically log in and retrieve academic information from the UniRV (Universidade de Rio Verde) student portal, such as subjects, grades, and more.


✨ Features

  • 🔐 Secure Login: Authenticate with your student credentials to get a session token.
  • 📚 Fetch Subjects: Get a detailed, parsed list of your subjects for the current academic period.
  • 🗓️ Get Schedule: Retrieve your class schedule.
  • 💯 Fetch Grades: Access your grades for each subject.
  • 🛡️ Type-Safe: Written entirely in TypeScript for a better and safer developer experience.
  • 🌐 Robust Scraping: Uses modern tools to reliably parse HTML content.

🚀 Getting Started

To install and use the estudante-sei-api library in your project, run the following command:

npm install estudante-sei-api

That's it! Now you can import the functions into your project as shown in the usage example below.


💡 How to Use

Here's a quick example of how to use the library within your project.

import { Login, getCronograma, getNotas, MateriasPeriodoAtual } from 'estudante-sei-api';

async function main() {
  try {
    // 1. Authenticate to get the session token
    const loginResponse = await Login('YOUR_USERNAME', 'YOUR_PASSWORD');

    if (loginResponse.sucesso && loginResponse.token) {
      console.log('✅ Login successful!');
      const token = loginResponse.token;

      // 2. Use the token to fetch information
      const subjects = await MateriasPeriodoAtual(token);
      console.log('📚 Current Subjects:', subjects);

      const schedule = await getCronograma(token);
      console.log('🗓️ Schedule:', schedule);

      const grades = await getNotas(token);
      console.log('💯 Grades:', grades);

    } else {
      console.error('❌ Login failed:', loginResponse.error);
    }
  } catch (error) {
    console.error('🚨 An unexpected error occurred:', error);
  }
}

main();

📖 API Reference

Login(username: string, password: string): Promise<RespostaLogin>

Authenticates the user and returns a Promise that resolves to a login response object. On success, this object contains a token.

Response RespostaLogin:

type RespostaLogin = {
  sucesso: boolean;
  mensagem?: string;
  token?: string;
  error?: string;
};

MateriasPeriodoAtual(TOKEN: string): Promise<Materia[]>

Fetches the subjects for the current academic period using a valid session TOKEN.

Response Materia:

type Materia = {
  codigo?: string;
  nomeDaMateria?: string;
  professor?: string[];
  periodoEstudoInicio?: string;
  periodoEstudoFim?: string;
  turmaPratica?: string;
  turmaTeorica?: string;
  frequencia?: number;
  status?: string;
};

getCronograma(TOKEN: string): Promise<Cronograma>

Fetches the weekly class schedule using a valid session TOKEN.

Response Cronograma:

type Cronograma = {
  Segunda: Disciplina[];
  Terça: Disciplina[];
  Quarta: Disciplina[];
  Quinta: Disciplina[];
  Sexta: Disciplina[];
  Sábado: Disciplina[];
};

type Disciplina = {
  horaInicio?: string;
  horaFim?: string;
  codigo?: string;
  nome?: string;
  turma?: string;
  professor?: string;
  sala?: string;
};

getNotas(TOKEN: string): Promise<DisciplinaNota[]>

Fetches the grades for all subjects using a valid session TOKEN.

Response DisciplinaNota:

type DisciplinaNota = {
  frequencia?: string;
  mediaFinal?: string;
  situacao?: string;
  notas?: {
    av1?: number;
    av2?: number;
    av3?: number;
  };
  codigo?: string;
  nome?: string;
  turma?: string;
};

⚠️ Note: All functions that require a TOKEN will throw an Error if the HTTP request fails, the token is invalid, or if there's an issue parsing the page content.


🤝 Contributing

Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

Please read our Contributing Guidelines for details on our code of conduct and the process for submitting pull requests to us.

Don't forget to ⭐ star this repo if you found it useful!


📄 License

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