# developit/snarkdown

:smirk_cat: A snarky 1kb Markdown parser written in JavaScript

Repository: https://github.com/developit/snarkdown
Canonical: https://ross.abutalabs.com/products/snarkdown
Homepage: http://jsfiddle.net/developit/828w6t1x/
Language: JavaScript
License: MIT
License Family: permissive
Topics: javascript, markdown, parser
Last push: 2022-11-29T17:36:42+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4320, "days_push": 1373, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2400, forks 113 (observed 2026-08-28T04:06:43.781342+00:00)

## What it is
Snarkdown is a dead-simple 1kb Markdown parser written in JavaScript that converts a Markdown string into an HTML string. It is intentionally minimal, designed for constrained use cases where a full-featured Markdown parser would be overkill.

## Use cases
- convert markdown to html in the browser
- render user comments as html with minimal overhead
- add markdown rendering to a small web app without heavy dependencies
- parse markdown in a preact or react editor
- transform md files to html via webpack loader
- embed a tiny markdown parser in a constrained environment

## When to choose
- bundle size is critical and you only need basic markdown
- your input is trusted or sanitized elsewhere
- you need a simple string-in string-out parser with no config
- you need commonjs, umd, and es module support

## When to avoid
- you need tables or full GFM support
- you must sanitize untrusted user input against XSS
- you need extensions, plugins, or AST output
- you need spec-compliant markdown parsing

## Facets
- artifact type: library
- maturity: maintenance
- function: parser, markdown
- domain: web-development, frontend, parsers, documentation
- platform: browser, cross-platform
- tags: tiny, 1kb, markdown-to-html, zero-dependency, es-modules, nodejs

## Member repositories
- developit/snarkdown (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:43.781342+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:34:16.478929+00:00, confidence not recorded.
  - readme: https://github.com/developit/snarkdown (fetched 2026-08-28T04:06:43.781342+00:00, sha 364de2b90445)
  - homepage: http://jsfiddle.net/developit/828w6t1x/ (fetched 2026-08-29T10:14:59.708867+00:00, sha cfe103f182ff)
  - registry_npm: https://registry.npmjs.org/snarkdown (fetched 2026-08-29T10:14:59.718277+00:00, sha b80c3c9d0894)
- Data as of 2026-08-30T08:39:29.467469+00:00.
