# sandersn/mini-typescript

A miniature model of the Typescript compiler, intended to teach the structure of the real Typescript compiler

Repository: https://github.com/sandersn/mini-typescript
Canonical: https://ross.abutalabs.com/products/mini-typescript
Language: TypeScript
License: MIT
License Family: permissive
Last push: 2024-08-17T03:21:18+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 1917, "days_push": 746, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1208, forks 67 (observed 2026-08-28T04:03:59.626242+00:00)

## What it is
A miniature model of the TypeScript compiler written in TypeScript, containing two versions: micro-typescript (a tiny textbook-style compiler) and centi-typescript (a 1/100 scale model of the real compiler). It is intended to teach developers how the actual TypeScript compiler is structured, with exercises to practice on.

## Use cases
- learn how the typescript compiler works internally
- study compiler frontend and checker structure
- practice compiler exercises like adding statements and literals
- read a small reference implementation of a type checker
- understand how tsc parses and binds code

## When to choose
- you want to learn the architecture of the real TypeScript compiler
- you prefer learning by reading and modifying small code with exercises
- you want a simplified model of a checker without production clutter

## When to avoid
- you want a general-purpose or production TypeScript compiler
- you want to learn general compiler theory from a textbook
- you need language services, caching, or full language support

## Facets
- artifact type: learning-resource
- maturity: maintenance
- function: compiler, parser, interpreter, developer-tools
- domain: compilers, programming-languages, education, tutorials, developer-tools
- platform: cli, cross-platform
- tags: typescript-compiler, educational, compiler-internals, type-checker, code-exercises, nodejs

## Member repositories
- sandersn/mini-typescript (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:59.626242+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:18:55.910176+00:00, confidence not recorded.
  - readme: https://github.com/sandersn/mini-typescript (fetched 2026-08-28T04:03:59.626242+00:00, sha e95f31523351)
- Data as of 2026-08-30T08:39:29.467469+00:00.
