# sdorra/content-collections

Transform your content into type-safe data collections

Repository: https://github.com/sdorra/content-collections
Canonical: https://ross.abutalabs.com/products/content-collections
Homepage: https://content-collections.dev
Language: TypeScript
License: MIT
License Family: permissive
Topics: collections, content, content-layer, json, markdown, mdx, nextjs, nodejs, react, remix, svektekit, vite, yaml
Last push: 2026-08-10T16:36:34+00:00

## Health v2 (maintenance only)
Score: 85/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 97, release rhythm 77, longevity 72
- inputs: {"age_days": 1014, "days_push": 23, "days_rel": 78, "gap_med": 0, "n_releases_24m": 86}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1185, forks 52 (observed 2026-08-28T04:03:54.878307+00:00)

## What it is
A TypeScript library that transforms markdown, MDX, and YAML content files into type-safe, validated data collections that can be imported directly into web apps. It integrates with frameworks like Next.js, Remix, SvelteKit, and Vite via adapters, with hot reloading and build-time preprocessing.

## Use cases
- build a type-safe blog with markdown posts in Next.js
- import MDX content into SvelteKit without manual parsing
- validate frontmatter with schemas at build time
- transform and join content collections before they reach the app
- replace manual file fetching for docs or CMS content
- use markdown content in a Remix app with Vite

## When to choose
- you want type-safe access to markdown/MDX content in a JS framework
- you need build-time validation of content frontmatter
- you want hot-reloading content without restarting your dev server
- you need to preprocess or transform content before use

## When to avoid
- your content lives in a headless CMS with an API
- you need a full CMS with editing UI
- your framework has no adapter and you prefer integrated tooling
- you work outside the Node.js/JavaScript ecosystem

## Facets
- artifact type: library
- maturity: active
- function: parser, serialization, build-tool, developer-tools
- domain: web-development, frontend, developer-tools, documentation
- platform: -
- tags: markdown, mdx, type-safe, content-layer, nextjs, sveltekit, remix, vite, zod-validation, static-content, nodejs, typescript, web-server

## Member repositories
- sdorra/content-collections (main) score 85

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:54.878307+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-30T06:24:08.753090+00:00, confidence not recorded.
  - readme: https://github.com/sdorra/content-collections (fetched 2026-08-28T04:03:54.878307+00:00, sha 71723a761be8)
  - registry_npm: https://registry.npmjs.org/content-collections (fetched 2026-08-29T12:31:37.651882+00:00, sha 7db0dcdb1feb)
- Data as of 2026-08-30T08:39:29.467469+00:00.
