RepositoryTypeScript
cooklang

cooklang/cooklang-ts

Lightweight Cooklang parser implemented in TypeScript

86sao
18fork
2issue
2lượt xem

🧾 Cooklang-TS: Parser TypeScript cho công thức nấu ăn

Thư viện TypeScript phân tích cú pháp Cooklang — ngôn ngữ markup cho công thức nấu ăn.

Cooklang-TS là thư viện TypeScript nhẹ lẻn dùng để phân tích và thao tác với công thức nấu ăn viết bằng Cooklang. Nó chuyển đổi văn bản công thức thành cấu trúc dữ liệu có tổ chức gồm nguyên liệu, dụng cụ, bước thực hiện và metadata.

✨ Điểm nổi bật

  • Phân tích công thức: Chuyển đổi văn bản Cooklang thành đối tượng Recipe với ingredients, cookwares, steps, metadata.
  • Truy xuất metadata: Hỗ trợ đọc thông tin như nguồn, thời gian, khẩu phần từ phần chú thích >>.
  • Hỗ trợ hình ảnh: Cung cấp hàm getImageURL để tạo tên file hình ảnh tương ứng với từng bước.
  • Kiểm thử chuẩn: Dựa trên bộ test canonical từ cooklang/spec.
  • Đóng gói npm: Được xuất bản tại @cooklang/cooklang-ts với badge trạng thái CI từ GitHub Actions.

💡 Vì sao đáng chú ý

Cooklang-TS cung cấp cách tiếp cận đơn giản bằng TypeScript để làm việc với công thức nấu ăn dưới dạng văn bản có cấu trúc. Tuy nhiên, dự án đã ngừng phát triển và khuyến nghị chuyển sang gói mới @cooklang/cooklang, được hỗ trợ bởi WASM và parser Rust chính thức, mang lại hiệu năng tốt hơn và hành vi nhất quán.


#Cooklang #TypeScript #Parser #CookingRecipes #MarkupLanguage #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryPython
cooklang/awesome-cooklang-recipes

A curated list of cookbooks and recipes involving the use of the cooklang recipe markup language

112
Oct 1, 2026
RepositoryCooklang
nicholaswilde/recipes

🥗 My collection of recipes made with cooklang 📖

51
Nov 22, 2026
RepositoryTypeScript
n8n-io/n8n

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

211.9k
Nov 23, 2026
RepositoryTypeScript
microsoft/vscode

Visual Studio Code

195.8k
Nov 22, 2026
RepositoryJavaScript
breck7/scroll

Scroll is a language for scientists of all ages. Scroll includes a command line app that builds static blogs, websites, CSVs, text files, and more.

488
Oct 3, 2026
RepositoryHTML
dg/texy

📜 Texy: a text-to-HTML engine with its own easy-to-read markup, which you can change or extend, and real typography with proper quotes, dashes and non-breaking spaces. Always valid, sanitized HTML.

159
Nov 16, 2026
RepositoryPython
alexbates/Tamari

A fully-featured recipe manager web application built using Python and the Flask Framework.

149
Nov 7, 2026
Repository
dpapathanasiou/recipes

A collection of cooking recipes in json format

147
Jun 8, 2024
RepositoryRust
Zheoni/cooklang-chef

A CLI to manage cooklang recipes

139
Nov 1, 2026