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

@precisa-saude/medbench-dataset

v1.4.0

Published

Dataset estruturado de questões de provas médicas brasileiras (Revalida)

Readme

@precisa-saude/medbench-dataset

Dataset estruturado de questões de provas médicas brasileiras (Revalida e ENAMED).


Sobre

Questões extraídas dos cadernos oficiais publicados pelo INEP, com gabarito definitivo pós-recurso, classificação por especialidade e metadados de edição (nota de corte, taxa de aprovação, data de publicação). Distribuído em JSON, tipado em TypeScript, consumível em Node e no bundler de qualquer site estático.

É o dataset por trás do leaderboard em medbench-brasil.ia.br e do harness @precisa-saude/medbench-harness.

Instalação

pnpm add @precisa-saude/medbench-dataset
# ou
npm install @precisa-saude/medbench-dataset

Requer Node ≥ 20.

Uso

import {
  listEditions,
  loadEdition,
  loadAll,
  getModelContaminationRisk,
} from '@precisa-saude/medbench-dataset';
import type { Edition, Question } from '@precisa-saude/medbench-dataset';

// Listar todas as edições disponíveis
const ids = listEditions();
// → ['revalida-2024-1', 'revalida-2024-2', 'revalida-2025-1', 'enamed-2025']

// Carregar uma edição específica
const edition: Edition = loadEdition('revalida-2025-1');
console.log(edition.questions.length); // 100
console.log(edition.cutoffScore); // 0.6
console.log(edition.passRate); // 0.18

// Carregar todas de uma vez
const all: Edition[] = loadAll();

// Classificar risco de contaminação por par (edição × modelo)
const risk = getModelContaminationRisk(edition, '2024-10-01');
// → 'likely-clean' | 'likely-contaminated' | 'unknown'

API

Funções

| Export | Assinatura | | ----------------------------- | ----------------------------------------------------------------------- | | listEditions() | () => EditionId[] | | loadEdition(id) | (id: EditionId) => Edition | | loadAll() | () => Edition[] | | getModelContaminationRisk() | (edition: Edition, modelTrainingCutoff?: string) => ContaminationRisk | | examFamilyOf(id) | (id: EditionId) => 'revalida' \| 'enamed' |

Constantes

  • SPECIALTIES — lista de especialidades válidas ('cirurgia', 'clinica-medica', 'ginecologia-obstetricia', 'medicina-familia-comunidade', 'pediatria', 'saude-publica').

Tipos

  • Edition, EditionId, Question, QuestionOption ('A' | 'B' | 'C' | 'D'), Specialty, ExamFamily, ContaminationRisk.

Formato dos dados

Cada edição é um JSON com o seguinte shape (trecho real de revalida-2025-1):

{
  "id": "revalida-2025-1",
  "year": 2025,
  "publishedAt": "2025-04-14",
  "cutoffScore": 0.6,
  "passRate": 0.18,
  "source": "https://www.gov.br/inep/pt-br/areas-de-atuacao/avaliacao-e-exames-educacionais/revalida/provas-e-gabaritos",
  "questions": [
    {
      "id": "revalida-2025-1-q02",
      "number": 2,
      "editionId": "revalida-2025-1",
      "stem": "Homem de 42 anos, em uso crônico de anti-inflamatório…",
      "options": {
        "A": "Úlcera gástrica perfurada.",
        "B": "Pancreatite aguda.",
        "C": "Colecistite aguda.",
        "D": "Diverticulite aguda."
      },
      "correct": "A",
      "specialty": ["cirurgia"],
      "annulled": false,
      "hasImage": false,
      "hasTable": true
    }
  ]
}

Os arquivos ficam em data/revalida/<ano>-<N>.json e data/enamed/<ano>.json e são incluídos no tarball publicado no npm (files: ["dist", "data"]).

Edições disponíveis

| Edição | Questões | Publicação INEP | | ----------------- | -------- | --------------- | | revalida-2024-1 | 100 | 2024-03-17 | | revalida-2024-2 | 100 | 2024-08-25 | | revalida-2025-1 | 100 | 2025-04-14 | | enamed-2025 | 100 | 2025-10-26 |

Novas edições são incorporadas conforme o INEP publica os gabaritos definitivos pós-recurso. Edições anteriores (Revalida 2011–2023) estão no roadmap.

Integridade dos dados

  • Fonte única: portal oficial do INEP. Nenhum dado é importado de terceiros, transcrições informais ou bancos de questões privados.
  • Gabarito definitivo: alterações pós-recurso (marcadas em azul pelo INEP) prevalecem sobre o gabarito preliminar.
  • Questões com imagem, tabela ou anuladas ficam marcadas por hasImage, hasTable e annulled, mas não são excluídas do JSON — a exclusão é decisão do consumidor (o harness, por padrão, exclui imagens e tabelas).
  • Detalhes do pipeline e política editorial em CLAUDE.md e nos ADRs em docs/development/adr/.

Licença

Apache-2.0.

Links