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

suap-sdk

v2.3.0-beta.1

Published

[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/) [![CI tests status](https://img.shields.io/github/workflow/status/save-labs/suap-sdk-javascript/ci)](https://github.com/save-la

Readme

SDK (não oficial) do SUAP para Javascript

Commitizen friendly CI tests status NPM downloads

Esse SDK fornece uma interface para acessar os recursos da SUAP (alguns até mesmo não disponíveis na API) de forma simplificada.

Instalação

npm install suap-sdk # ou "yarn add suap-sdk" ou "pnpm add suap-sdk" ou qualquer outro gerenciador de pacotes

Como usar

Fora do IFRN

Se você utilizar uma instância do SUAP diferente de "https://suap.ifrn.edu.br", você precisa defini-la.

import { ClienteSuap } from "suap-sdk"

const cliente = new ClienteSuap({ urlBase: "https://suap.ifbaiano.edu.br" }) // ou a URL do SUAP do seu estado

Fazer login com matrícula e senha

import { ClienteSuap } from "suap-sdk"

const cliente = new ClienteSuap()

await cliente.login("<matricula>", "<senha>")

Acessar apenas métodos da API

O SDK fonece metodos que não estão disponíveis na API, como detalhesDaNota e obterDocumentos. Para isso, é utilizada uma técnica de "web scraping" para acessar essas informações. Nãé utilizado um navegador, apenas um parser de HTML. Mas se você não quiser utilizar esses métodos, você pode desabilitar o web scraping.

const cliente = new ClienteSuap({ usarApenasApi: true })

Acessar com usuário já logado

Uma vez feito o login, você pode salvar os tokens de acesso e acessar a SUAP como esse usuário sem precisar fazer login novamente.

const credenciais = cliente.obterCredenciais() // retorna um objeto. Você pode por exemplo salvar em um arquivo JSON

await client.entrarComCredenciais(credenciais)

Obter informações pessoais

const informaçõesPessoas = await cliente.obterInformaçõesPessoais()

Obter períodos letivos

const períodosLetivos = await cliente.obterPeríodosLetivos()

Obter turmas virtuais

const turmasVirtuais = await cliente.obterTurmasVirtuais()

Obter os detalhes de uma turma virtual

const detalhesDaTurmaVirtual = await cliente.obterDetalhesTurmaVirtual("<código diário>")

Obter boletim

const notas = await cliente.obterNotas(<ano letivo>, <período letivo>)

Detalhar notas

const detalhesDaNota = await cliente.obterInformaçõesPessoais("<código diário>")

Obter documentos

const documentos = await cliente.obterDocumentos()

Baixar um documento

// buffer
const documento = await cliente.baixarDocumento("<link do documento>")

// stream
const documento = await cliente.baixarDocumentoStream("<link do documento>")