Skip to content

Roadmap

Milestones M0 to M8 had one aim: an HTML parser you’d pick over Lexbor on every count that matters to you. They’re done. M9 to M16 make Parsec the parsing foundation for the web, one crate per language: a JavaScript parser of our own, an XML parser, the shared plumbing under them, and every binding for each. The Road to the parsing platform board tracks who has what.

This page follows ROADMAP.md and the milestones on GitHub, adding the issues in each.

The marks are the ones used across these docs: ✅ shipped and checked by cargo test, 🚧 in progress, 📋 planned (Home has the key). M9 to M14, M16 and M17 shipped in 0.3.0, the first release with parsec-js and parsec-xml.

Milestone What it brings
✅ M0. Foundations The parser core, CI, fuzzing, the wiki. Merged in #1.
✅ M1. Proof Benchmarks against Lexbor, conformance counts from CI
✅ M2. HTML, past Lexbor Bytes, chunks, parse errors, positions, a depth limit, ids that know their node was removed
✅ M3. Selectors The pseudo-classes a static page can decide
✅ M4. Every way in C, Python and WebAssembly
✅ M5. Encoding The WHATWG Encoding Standard
✅ M6. URL WHATWG URL
✅ M7. CSS A CSS parser and computed values
✅ M8. XPath XPath 1.0
✅ 0.1.0 The first release, then 0.2.0 with security fixes, and 0.3.0 with JavaScript and XML
🚧 M15. One toolkit, in pieces The shared foundation (input, positions, diagnostics, limits), a CI check that each crate pulls in only what it needs, the architecture written down, and Parsec described as what it now is
✅ M9. JavaScript tokens parsec-js begins
✅ M10. JavaScript syntax tree Every script and module ECMAScript 2025 allows, parsed to an arena AST with spans, written out as ESTree JSON, passing test262’s syntax tests, and benchmarked on real bundles
✅ M11. JavaScript scope and modules Scopes and bindings, the spec’s early errors, and import and export records, so tools can ask what a name refers to without running anything
🚧 M12. Data from scripts The state pages ship inside <script>, turned into JSON without executing a line
✅ M14. XML parsec-xml
✅ M16. Every language, every way in JavaScript and XML through the C API, Python and WebAssembly, the way HTML is today, plus a native Node
✅ M13. JavaScript diagnostics and incremental parsing Errors with codes, labels and code frames; comments kept for tools; reparsing only what an edit touched

The milestones run in order, and the release doesn’t wait for all of them:

Parsec's milestones in order: M0 Foundations to M8 XPath, with 0.1.0 after M4; then M15 One toolkit, the JavaScript milestones M9 to M13, M14 XML and M16 Every binding.

Milestone. The repository, CI on Linux, macOS and Windows, the shared parser core and the check that keeps it in step with Netweir, fuzzing, the wiki, and the roadmap. It all merged in #1.

Milestone. Before Parsec claims to be faster than Lexbor, a harness has to show it, and the conformance counts should come from CI rather than from prose.

  • ✅ #2 Benchmark Parsec against Lexbor’s own C in one process: merged in #69, results on Benchmarks
  • ✅ #3 Benchmark selector matching against Lexbor: merged in #73, results on Benchmarks
  • ✅ #4 Publish conformance counts from CI: merged in #70, described on Conformance

M1 is done. The parser and selector results have replaced the borrowed numbers on Benchmarks and in the README, and every CI run now writes the conformance counts into its summary.

Milestone. Everything Lexbor’s HTML module does that Parsec doesn’t yet, and the things Lexbor’s users have asked it for.

  • ✅ #5 Parse bytes, sniffing the encoding as browsers do: merged in #79, described on Encoding
  • ✅ #6 Chunked input that builds exactly the same tree: merged in #114
  • ✅ #7 Report parse errors with their spec names, line and column: merged in #106
  • ✅ #8 Source positions on every node and attribute: merged in #102
  • ✅ #9 Pretty-printed and html5lib-format serialization: merged in #93
  • ✅ #10 A depth limit alongside the time budget: merged in #70
  • ✅ #11 Documents that are Send and Sync, checked at compile time: merged in Netweir and synced in #65
  • ✅ #12 Node handles that know when their node was removed: merged in Netweir and synced in #121
  • ✅ #36 Editing: attributes, kinds and templates edge cases: merged in Netweir and synced in #70
  • ✅ #38 Small API gaps: BOM, html_alone(root), a budget for fragments: merged in Netweir and synced in #70

M3. Selectors that match what a page can decide

Section titled “M3. Selectors that match what a page can decide”

Milestone. Close the list of pseudo-classes Lexbor parses and never matches, wherever a static document has the answer.

  • #13 Match :blank and :defined
  • ✅ #14 Match :lang() and :dir(): merged in #70
  • ✅ #15 Match the form pseudo-classes Lexbor can’t: merged in Netweir and synced in #65
  • ✅ #16 Match :target and :local-link given a URL: merged in #70
  • ✅ #17 Namespace prefixes, the column combinator and :nth-col()
  • ✅ #18 Lazy queries that stop at the first match (and specificity): merged in Netweir and synced in #70
  • ✅ #19 Run the web-platform-tests selector cases that don’t need layout: merged in #105, every runnable case passing

Milestone. How Lexbor’s users, and the bindings built on it, can switch.

  • ✅ #20 A C API with a generated header: see C API
  • ✅ #21 Prebuilt C libraries for Linux, macOS and Windows: built by release-capi.yml for each release
  • ✅ #22 A guide for moving from Lexbor: Moving from Lexbor
  • ✅ #23 A Python package: bindings/python, with XPath, positions and parse errors, which the C API and WebAssembly got too; merged in #108; wheels on PyPI since 0.1.0
  • ✅ #24 WebAssembly for npm: bindings/wasm, merged in #97

Milestone. The WHATWG Encoding Standard’s 40 encodings, decoding and encoding, streaming into the parser, with the WPT encoding cases in CI.

  • ✅ #25 The WHATWG Encoding Standard: merged in #79, and bytes streamed into the chunked parser with ByteParser in #115 (Encoding)

Milestone. WHATWG URL, URLSearchParams, IDNA, Punycode and Unicode normalization, with the WPT URL pass counts published, then a benchmark against Lexbor’s URL parser and Ada.

  • ✅ #26 WHATWG URL with published WPT pass counts: crates/parsec-url (URL)
  • ✅ #27 Benchmark URL parsing against Lexbor and Ada (Benchmarks)
  • ✅ Unicode normalization: NFC and NFD as parsec_url::normalize, passing all of NormalizationTest. Merged in #86
  • ✅ #82 A URL parser of Parsec’s own, behind the same API: all 4,565 WPT cases pass, and it’s 1.33 times as fast as Ada on real links. Merged in #86

Milestone. The CSS Syntax parser, passing css-parsing-tests with positions on every rule; then the CSS Object Model, every property in the spec’s index, custom properties and var(), calc(), media queries evaluated against an environment you give, and computed values with inheritance.

  • ✅ #28 A CSS Syntax parser that passes css-parsing-tests: merged in #87, described on CSS
  • ✅ #88 Parse a whole stylesheet at least as fast as Servo’s cssparser: merged in #89, 211 MB/s to its 196
  • ✅ #29 Custom properties, var(), calc() and every longhand: merged in #91, described on CSS values
  • ✅ #30 Media queries and computed values: merged in #94, described on Cascade

Milestone. XPath 1.0 over Parsec’s tree, shared with Netweir.

  • ✅ #31 XPath 1.0 over Parsec’s tree: merged in #104, described on XPath

Milestone. The first release went to crates.io, PyPI and npm as parsec-html on 20 November 2026, once M1 to M4 were done and the benchmarks showed Parsec ahead on every page in the corpus. 0.2.0 followed on 21 November with security fixes.

  • ✅ #32 Release 0.1.0

Milestone · epic #140. The shared foundation (input, positions, diagnostics, limits), a CI check that each crate pulls in only what it needs, the architecture written down, and Parsec described as what it now is.

  • ✅ #141 Describe Parsec as a modular parsing toolkit
  • ✅ #142 Write down the architecture: separate trees over shared plumbing
  • ✅ #143 A shared foundation crate: input, positions, diagnostics, limits
  • 📋 #144 CI check: each crate pulls in only what it needs
  • ✅ #145 Pinned dashboards on the issues page

Milestone · epic #146. parsec-js begins: the whole ECMAScript lexical grammar, regex and template goals included, with test262 in CI and a lexer bench against oxc and swc.

  • ✅ #147 parsec-js: the ECMAScript lexical grammar
  • ✅ #148 test262 in CI
  • 📋 #149 Lexer bench against oxc and swc
  • ✅ #150 Fuzz the JavaScript lexer

Milestone · epic #151. Every script and module ECMAScript 2025 allows, parsed to an arena AST with spans, written out as ESTree JSON, passing test262’s syntax tests, and benchmarked on real bundles.

  • 🚧 #152 The AST: arena nodes, spans, ESTree JSON out
  • ✅ #153 Scripts: statements, expressions and ASI
  • 📋 #154 Modules: import, export and import attributes
  • 📋 #155 Limits: depth, step budget, no stack overflow
  • 📋 #156 Parse bench against oxc and swc on real bundles

Milestone · epic #157. Scopes and bindings, the spec’s early errors, and import and export records, so tools can ask what a name refers to without running anything.

  • 📋 #158 Scope and binding analysis
  • 📋 #159 The spec’s early errors
  • 📋 #160 Import and export records

Milestone · epic #161. The state pages ship inside <script>, turned into JSON without executing a line: literals, JSON.parse strings, Next.js and Nuxt payloads. Netweir is the first user.

  • 📋 #162 Literals to JSON without running code
  • 📋 #163 Recognize the common page-state shapes
  • 📋 #164 Netweir reads page state through parsec-js

Milestone · epic #168. parsec-xml: XML 1.0 and Namespaces with XML’s own rules, not HTML’s recovery. Non-validating, entity expansion capped, nothing fetched. W3C conformance suite in CI, XPath over it, benched against libxml2.

  • ✅ #169 parsec-xml: XML 1.0 and Namespaces
  • ✅ #170 The W3C XML conformance suite in CI
  • 📋 #171 Serialize XML, and XPath over it
  • ✅ #172 XML bench against libxml2, quick-xml and roxmltree

Milestone · epic #173. JavaScript and XML through the C API, Python and WebAssembly, the way HTML is today, plus a native Node.js package.

  • 📋 #174 JavaScript and XML in the C API
  • 📋 #175 JavaScript and XML in Python
  • 📋 #176 JavaScript and XML in WebAssembly
  • ✅ #177 A native Node.js package

M13. JavaScript diagnostics and incremental parsing

Section titled “M13. JavaScript diagnostics and incremental parsing”

Milestone · epic #165. Errors with codes, labels and code frames; comments kept for tools; reparsing only what an edit touched.

  • 📋 #166 Diagnostics with codes, labels and code frames
  • 📋 #167 Incremental reparsing

Proof comes first because nothing else should be claimed without it. HTML and selectors come next because they’re what almost every Lexbor binding uses: parse, select, read text, serialize, edit a little. The ways in (C, Python, WebAssembly) follow, since that’s how most of Lexbor’s users would actually switch. Encoding comes before URL, and URL before CSS: parsing real pages from bytes needs the encodings, and the bindings need that before the larger modules.

Want something sooner, or something that isn’t here? Say so in Discussions. The order is set by what people need.