Skip to main content
Brian Sunter

Cooklang Parser

A TypeScript parser for the Cooklang recipe markup language, enabling structured recipe data extraction and manipulation.

TypeScript Vitest npm
Cover image for Cooklang Parser

Overview

A robust TypeScript implementation of a Cooklang parser that transforms recipe text files into structured data. Perfect for building recipe apps and integrating with kitchen management systems.

Features

  • Full Spec Compliance: Supports all Cooklang syntax including ingredients, cookware, and timers
  • Type-Safe: Full TypeScript definitions for parsed recipe data
  • Metadata Extraction: Parse recipe metadata like servings, prep time, and source
  • Step Parsing: Break down recipes into individual steps with linked ingredients

Use Cases

  • Recipe management applications
  • Meal planning systems
  • Grocery list generation
  • Recipe scaling and unit conversion

Technology Stack

  • TypeScript
  • Vitest for testing
  • npm package distribution