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

examark

v0.6.6

Published

Create exams from Markdown and export to Canvas QTI format

Readme

Examark

Examark Hero

npm version CI Docs License Node

Write exams in Markdown. Export to Canvas in seconds.

Documentation · Getting Started · Report Bug


Why Examark?

Stop clicking through Canvas forms. Write once, export anywhere.

┌─────────────────┐      ┌──────────┐      ┌─────────────────┐
│   quiz.md       │ ───▶ │ examark  │ ───▶ │  quiz.qti.zip   │
│   (Markdown)    │      │          │      │  (Canvas-ready) │
└─────────────────┘      └──────────┘      └─────────────────┘
                              │
                              ▼
                    ┌─────────────────┐
                    │   quiz.txt      │
                    │   (Printable)   │
                    └─────────────────┘

Perfect for: Instructors, TAs, and course developers who want version-controlled, portable exam files.


Quick Start

No installation needed — try it now:

npx examark quiz.md -o quiz.qti.zip

Write Your Exam

# Statistics Midterm

1. [MC] What is the mean of 2, 4, 6? [2pts]
a) Three
b) Four [x]
c) Five

2. [TF] Variance can be negative. [1pt]
a) True
b) False [x]

3. [Essay, 10pts] Explain the Central Limit Theorem.

Convert & Import

examark midterm.md -o midterm.qti.zip    # For Canvas
examark midterm.md -f text                # For printing

Then: Canvas → Settings → Import Content → QTI .zip


Features

📝 Clean Syntax

Write questions naturally without complex markup.

1. [MC] Question here [2pts]
a) Wrong
b) Right [x]

🧮 LaTeX Math

Full equation support, auto-converted for Canvas.

Find $\bar{x}$ given:
$$\bar{x} = \frac{\sum x_i}{n}$$

📦 8 Question Types

  • Multiple Choice ([MC])
  • True/False ([TF])
  • Multiple Answer ([MA])
  • Short Answer ([Short])
  • Numeric ([Numeric])
  • Essay ([Essay])
  • Matching ([Match])
  • Fill-in-Blanks ([FMB])

🔧 Powerful CLI

examark *.md -o output/       # Batch convert
examark quiz.md -f text       # Paper exams
examark verify pkg --strict   # New Quizzes check
examark check quiz.md         # Lint syntax

🖼️ Image Bundling

Local images automatically packaged into QTI.

![Graph](assets/chart.png)

🔬 Quarto Integration

Dynamic questions with R/Python.

format:
  exam-qti: default
  exam-pdf: default

Installation

Option 1: No Installation (Recommended for beginners)

Run directly without installing anything (requires Node.js):

npx examark quiz.md -o quiz.qti.zip

This downloads and runs examark automatically. Perfect for trying it out!


Option 2: Install Globally

For frequent use, install once and run anytime:

Mac (Homebrew):

brew tap data-wise/tap
brew install examark

Windows / Mac / Linux (npm):

npm install -g examark

After installing, just run:

examark quiz.md -o quiz.qti.zip

First Time on Windows?

If you've never used Node.js before:

  1. Download Node.js from nodejs.org — click the big green "LTS" button
  2. Run the installer — accept all defaults, click Next through everything
  3. Open Command Prompt or PowerShell (search "cmd" in Start menu)
  4. Verify it worked: node --version (should show a version number)
  5. Run examark: npx examark quiz.md -o quiz.qti.zip

That's it! No complicated setup needed.

git clone https://github.com/Data-Wise/examark.git
cd examark && npm install && npm run build && npm link

Commands

| Command | Description | |---------|-------------| | examark <file.md> | Convert to QTI (default: file.qti.zip) | | examark <file.md> -f text | Export as printable plain text | | examark *.md -o output/ | Batch convert multiple files | | examark verify <pkg> | Validate QTI package | | examark verify <pkg> --strict | Strict validation for New Quizzes | | examark emulate-canvas <pkg> | Simulate Canvas import | | examark check <file.md> | Lint markdown for errors | | examark --preview | Preview parsed questions (JSON) |

Options: -o <output> · -p <points> · -t <title> · --no-answers · -v · --strict


Configuration

Create .examarkrc.json for project defaults:

{
  "defaultPoints": 2,
  "outputDir": "output",
  "validate": true
}

Templates

Markdown (no Quarto needed):

| Template | Description | |----------|-------------| | minimal.md | 3 questions — quickest start | | starter-exam-md.md | One of each question type | | statistics-exam.md | Real exam with LaTeX math | | canvas-ready.md | Comprehensive — 21 questions |

Quarto (for R/Python users):

| Template | Description | |----------|-------------| | minimal.qmd | Simplest Quarto template | | starter-exam.qmd | Full-featured starter | | dynamic-questions.qmd | Randomized questions with R |


For Quarto Users

Generate dynamic, randomized questions with R or Python:

quarto add Data-Wise/examark

📖 Quarto Extension Guide →


Documentation

| | | |---|---| | 📚 Full Docs | Complete reference | | 🚀 Getting Started | Install + first quiz | | 📝 Input Formats | Question syntax | | ⚙️ Configuration | Project settings | | 🎓 Tutorials | R/Quarto, VS Code |


Get Started →

Made with ❤️ by Data-Wise · MIT License