Skip to content

Getting Started

Welcome to Speculator! This guide will help you get up and running with the core packages.

You can install the core packages using your favorite package manager.

Terminal window
pnpm add @openuji/speculator

To start using Speculator, you’ll typically initialize a pipeline and process some documents.

import { SpeculatorPipeline } from "@openuji/speculator";
const pipeline = new SpeculatorPipeline();
const result = await pipeline.process("path/to/spec.md");
console.log(result.ast);

Check out the API Reference for more detailed information on each package.