@shapeshift-labs/frontier-playwright
v0.1.5
Published
Playwright telemetry and timeline helpers for Frontier state and DOM inspection.
Maintainers
Readme
@shapeshift-labs/frontier-playwright
Playwright and headless-browser telemetry helpers for Frontier state, DOM, and devtools timelines.
This package is intentionally separate from @shapeshift-labs/frontier-dom: Playwright is a Node/headless automation concern, while DOM rendering and browser devtools should stay runtime-light. The package talks to Playwright through a structural Page interface and installs a small browser-side probe that can sample arbitrary state expressions, DOM selectors, and Frontier DOM devtools globals over time.
- npm:
@shapeshift-labs/frontier-playwright - source:
siliconjungle/-shapeshift-labs-frontier-playwright - license: MIT
Related Packages
The published Frontier package family is generated from one shared package catalog so READMEs stay in sync across packages:
@shapeshift-labs/frontier: Core JSON diff/apply, compact patch tuples, JSON Pointer, equality, clone, validation, Unicode helpers, and tiny dependency-free runtime budget/scheduler primitives.@shapeshift-labs/frontier-query: Shared query-key, selector path, condition, entity identity, and table-shape primitives.@shapeshift-labs/frontier-codec: Patch serialization, binary frames, canonical JSON, and patch-history codecs.@shapeshift-labs/frontier-engine: Stateful planned diff engine, adaptive profiles, schema plans, and engine-level history helpers.@shapeshift-labs/frontier-state: Patch-routed app-state subscriptions, owned commits, maintained views, and path mapping.@shapeshift-labs/frontier-dataflow: Serializable incremental dataflow and materialized-view graphs for Frontier apps, including selectors, dependency DAGs, filters, joins, aggregations, stale paths, recompute budgets, output patches, provenance records, and proof of why derived views changed.@shapeshift-labs/frontier-state-cache: Normalized query-result cache with entity/query watchers, persistence, change logs, optimistic layers, scheduled persistence, and mutation bridge.@shapeshift-labs/frontier-state-cache-idb: IndexedDB persistence adapter for Frontier state-cache snapshots and durable change logs.@shapeshift-labs/frontier-state-cache-file: Structured file persistence adapter for Frontier state-cache snapshots and change logs.@shapeshift-labs/frontier-state-cache-sql: SQL persistence adapter for Frontier state-cache snapshots and change logs.@shapeshift-labs/frontier-schema: JSON Schema validation, Frontier profile generation, CloudEvent envelopes, and query/table schema helpers.@shapeshift-labs/frontier-migrations: Boundary-first data migrations, import normalization, plugin/API version mapping, versioned envelopes, graph diagnostics, patch path rewrites, dry-run reports, and current-shape rehydration.@shapeshift-labs/frontier-event-log: Bounded event logs, replay cursors, consumer acknowledgements, keyed compaction, checkpoints, and Frontier patch event records.@shapeshift-labs/frontier-run: Append-only distributed run graphs, causal event DAGs, evidence nodes, lanes, leases, refs, segments, dashboard projections, and admission decision records for Frontier agent work.@shapeshift-labs/frontier-lease: Runtime-neutral semantic, file, package, and repository lease claims with fencing tokens, expiry, conflict checks, apply validation, and replayable evidence for Frontier collaboration.@shapeshift-labs/frontier-inspect: Cross-package inspection/evidence bundles, registry graph snapshots, feature/resource impact reports, timeline/event normalization, redaction, JSONL import/export, and AI-readable app feature maps.@shapeshift-labs/frontier-scheduler: Deterministic work scheduling, lanes, cancellation, backpressure, frame policies, replay snapshots, and work graphs.@shapeshift-labs/frontier-logging: Opt-in structured logging, browser telemetry, scheduled sinks, file sinks, exporters, benchmark traces, and Frontier patch/update summaries.@shapeshift-labs/frontier-mutation: Explicit mutation and selector plans compiled to Frontier patches or CRDT operations.@shapeshift-labs/frontier-effects: Serializable effect descriptors and resource graphs for Frontier apps, including fetch, storage, timers, navigation, workers, clipboard, broadcast, WebSocket, stream, policy metadata, runtime records, redaction, JSONL, proof helpers, and registry graph output.@shapeshift-labs/frontier-auth: Frontier-native auth contracts for providers, sessions, profile completeness, route and resource gates, account-linking policy, token issue/verify plans, runtime grants, audit events, registry graphs, lint resources, and auth evidence without owning app secrets, crypto, storage, or provider SDKs.@shapeshift-labs/frontier-policy: Serializable policy and capability decisions for Frontier apps, effects, views, sync, routes, traces, and AI tools.@shapeshift-labs/frontier-flags: Patchable policy-aware feature flag state for Frontier apps, including targeting, deterministic rollouts, experiment variants, kill switches, exposure records, audit logs, and replay evidence.@shapeshift-labs/frontier-tools: Serializable app action/tool manifests for AI-operable Frontier apps, including availability, validation, dry-run plans, patch previews, effect/tool constraints, execution records, rollback links, and registry graph output.@shapeshift-labs/frontier-sandbox: Runtime-agnostic sandbox contracts for Frontier patch-producing actions, including manifests, declared reads/writes/capabilities, host-validated patch/effect/event/log results, dynamic source modules, source event replay, and structural runtime adapters.@shapeshift-labs/frontier-sandbox-quickjs: QuickJS/WebAssembly runtime adapter for Frontier sandbox actions, including invocation/runtime isolation modes, deadline and memory limits, dynamic source execution, and patch/effect result normalization.@shapeshift-labs/frontier-workflow: Serializable durable workflow/process manifests for Frontier apps, including steps, waits, approvals, timers, retries, expected patches, compensation, records, timelines, and registry graph output.@shapeshift-labs/frontier-worker: Serializable worker and edge task descriptors for Frontier apps, including queues, idempotency keys, retry and timeout policy, declared reads/writes/effects, snapshots, patch outputs, produced assets, execution records, logs, trace links, proof hashes, dedupe indexes, and registry graph output.@shapeshift-labs/frontier-queue: Serializable durable queue state, leases, retries, dedupe keys, patch-carrying jobs, dead-letter records, replay evidence, and queue inspection for Frontier apps.@shapeshift-labs/frontier-swarm: Hierarchical swarm plans, lanes, compute profiles, ownership policy, semantic ownership regions, task queues, event streams, run records, merge bundles, merge indexes, queue overlays, merge admission, coordinator dashboards, changed-path checks, and proof artifacts for Frontier agent work.@shapeshift-labs/frontier-swarm-git: Node Git, workspace, patch, changed-path, write-fence, package-link repair, patch check, HEAD read, blob hash, and apply-ledger adapter for Frontier swarm runners.@shapeshift-labs/frontier-swarm-codex: Node Codex CLI adapter for Frontier swarm plans, including prompt rendering, worktree and snapshot workspaces, Codex argument compatibility, browser resource allocation, JSONL capture, verification commands, pid-backed stop, collect/apply workflows, merge indexes, queue overlays, merge bundles, normalized job evidence, coordinator query artifacts, result artifacts, and run-log sync adapters.@shapeshift-labs/frontier-loom-ui: Read-only Loom and Frontier operator dashboard for workspace-lifetime progress, active agents, queue state, evidence/admission status, run events, run-log sync projections, semantic leases, gate executions, git apply/workspace evidence, and coordinator steering intent files.@shapeshift-labs/frontier-lang-kernel: Runtime-neutral semantic source graph, type/lattice/extern declarations, patch bundles, replay, hashing, evidence records, and merge-admission kernel for Frontier Lang.@shapeshift-labs/frontier-lang-parser: Dependency-light Frontier Lang parser for modules, entities, state, actions, effects, types, externs, targets, and lattice declarations.@shapeshift-labs/frontier-lang-checker: Checker and diagnostics for Frontier Lang semantic documents, including type symbols, effects, regions, lattice laws, CRDT metadata, and patch evidence.@shapeshift-labs/frontier-lang-typescript: TypeScript projection adapter for Frontier Lang semantic documents, including type/entity/state/action/extern declarations and CRDT lattice descriptors.@shapeshift-labs/frontier-lang-javascript: JavaScript projection adapter for Frontier Lang semantic documents, including ESM action stubs and schema/lattice descriptors.@shapeshift-labs/frontier-lang-html: HTML semantic merge evidence and projection adapter for Frontier Lang semantic documents, including element tree identity, attributes, text/comment spans, source maps, and fail-closed browser/runtime proof gaps.@shapeshift-labs/frontier-lang-css: CSS semantic merge evidence and projection adapter for Frontier Lang semantic documents, including selector specificity, declaration/cascade keys, custom properties,@propertyand@pagedescriptor evidence, CSS Modules/ICSS export and composition evidence, source maps, and fail-closed browser cascade/render proof gaps.@shapeshift-labs/frontier-lang-rust: Rust projection adapter for Frontier Lang semantic documents, including structs, aliases, and action stubs.@shapeshift-labs/frontier-lang-python: Python projection adapter for Frontier Lang semantic documents, including dataclasses, typed patch records, and action stubs.@shapeshift-labs/frontier-lang-c: C header projection adapter for Frontier Lang semantic documents, including structs and action prototypes.@shapeshift-labs/frontier-lang-compiler: Compiler facade for Frontier Lang source documents, including parse, check, hash, diagnostics, universal AST envelopes, proof/paradigm semantic summaries, projection to TypeScript, JavaScript, HTML, CSS, Rust, Python, and C, and native source-import adapters for semantic merge evidence.@shapeshift-labs/frontier-lang-swift: Swift source-language importer package for Frontier Lang semantic documents, including package-level metadata, SwiftSyntax adapter helpers, native import results, and semantic sidecar generation for SwiftSyntax/SwiftParser-shaped syntax trees.@shapeshift-labs/frontier-lang-kotlin: Kotlin PSI source-language importer package for Frontier Lang semantic documents, including package-level metadata, Kotlin PSI adapter helpers, native import results, and semantic sidecar generation for Kotlin PSI/KtFile-shaped syntax trees.@shapeshift-labs/frontier-lang-java: Java source-language importer package for Frontier Lang semantic documents, including package-level metadata, Java AST adapter helpers, native import results, and semantic sidecar generation for javac/JDT/JavaParser-shaped ASTs.@shapeshift-labs/frontier-lang-go: Go source-language importer package for Frontier Lang semantic documents, including package-level metadata, Go AST adapter helpers, native import results, and semantic sidecar generation for go/ast File or Package trees.@shapeshift-labs/frontier-lang-csharp: C# Roslyn source-language importer package for Frontier Lang semantic documents, including package-level metadata, Roslyn adapter helpers, native import results, and semantic sidecar generation for SyntaxTree/SyntaxNode-shaped ASTs.@shapeshift-labs/frontier-lang-clang: Clang AST source-language importer package for Frontier Lang semantic documents, including package-level metadata, Clang AST JSON adapter helpers, native import results, and semantic sidecar generation for C/C++ translation units.@shapeshift-labs/frontier-lang-cli: Command line interface for parsing, checking, hashing, emitting, native source import/projection, semantic slicing, and corpus roundtrip evidence for Frontier Lang projects.@shapeshift-labs/frontier-lang: Umbrella package for Frontier Lang kernel, parser, checker, compiler facade, universal AST helpers, projection adapters, HTML/CSS semantic merge evidence adapters, and source-language importer adapters.@shapeshift-labs/frontier-kv: Serializable in-memory key/value state for Frontier apps, including TTL, versioned compare-and-set, batched patch mutations, scans, watchers, snapshots, JSONL event evidence, and replay verification.@shapeshift-labs/frontier-kv-locks: Lease-style lock records on top of Frontier KV, including acquire, renew, release, fencing tokens, expiration, owner evidence, and replayable lock events.@shapeshift-labs/frontier-kv-rate-limit: Patch-native rate limit buckets for Frontier KV, including fixed windows, sliding windows, token buckets, deterministic refill, consume evidence, and reset records.@shapeshift-labs/frontier-kv-file: Node file persistence adapter for Frontier KV snapshots and append-only JSONL event logs, including atomic writes, compaction, replay loading, and adapter evidence.@shapeshift-labs/frontier-kv-idb: IndexedDB persistence adapter for Frontier KV snapshots and event logs, with structural IDB interfaces, upgrade planning, compact event storage, and replay loading.@shapeshift-labs/frontier-kv-redis: Redis-compatible command planning and structural client adapter for Frontier KV operations, including key mapping, TTL commands, optimistic CAS scripts, and replay evidence without bundling Redis drivers.@shapeshift-labs/frontier-kv-server: Small Node HTTP server adapter for Frontier KV, including request planning, JSON endpoints for get/set/delete/scan/batch, optional rate-limit hooks, and replayable response evidence.@shapeshift-labs/frontier-assets: Serializable asset and content provenance graphs for Frontier apps, including source files, generated variants, thumbnails, LOD chunks, shader/material dependencies, transforms, hashes, owners, runtime consumers, review plans, registry graph output, and impact queries.@shapeshift-labs/frontier-blueprint: Serializable Blueprint/Prefab flyweight templates for Frontier apps, including parameterized instantiation, deterministic ID/path remapping, compact overrides, variants, effective-state materialization, scene/state patch emission, dependency metadata, and registry graph output.@shapeshift-labs/frontier-triggers: Capability-gated event trigger registry, scoped event envelopes, listener/reaction rules, structured rejection, deterministic event-to-action scheduling, replay/provenance records, and registry graph output.@shapeshift-labs/frontier-virtual: DOM-neutral virtualization, layout providers, range materialization, grids, spatial/frustum indexes, patch invalidation, camera anchors, and serializable layout state.@shapeshift-labs/frontier-table: Renderer-neutral data grid and table primitives for Frontier apps, including stable row identity, sorting, filtering, selection, virtual ranges, patch-driven edits, cache/dataflow descriptors, and CRDT-compatible row and cell operation frames.@shapeshift-labs/frontier-scene: Patch-native 2D/3D scene graph, transform propagation, bounds queries, virtual/culling adapters, spatial invalidation, and camera/frustum materialization.@shapeshift-labs/frontier-pathfinding: Patch-native grid pathfinding, typed-array A*/Dijkstra search, flow fields, connected components, line-of-sight smoothing, dirty-cell invalidation, and scheduler-friendly path jobs.@shapeshift-labs/frontier-lod: Patch-native level-of-detail and significance selection for rendering and computation workloads, compact typed hot paths, multi-observer selection, budget degradation, materialization frames, and scheduler work plans.@shapeshift-labs/frontier-route: DOM-neutral app/game route resources, route and scene manifests, match/resolve/transition planning, dependency metadata, sessions, registry graph output, and impact queries.@shapeshift-labs/frontier-trace: Serializable traces, spans, events, causal links, W3C trace context helpers, timeline/resource/path queries, critical-path analysis, registry graph output, JSONL/proof helpers, Chrome trace export, and redaction for app-wide feature observability.@shapeshift-labs/frontier-manifest: Build/static feature manifests for owners, routes, actions, states, migrations, tests, source files, assets, resources, tasks, dependency metadata, registry graph output, feature maps, JSONL export, and impact queries.@shapeshift-labs/frontier-view: Renderer-neutral view manifests, type defaults, validation frames, action bindings, visual channels, virtual/LOD hints, and data-to-representation mapping for Frontier apps.@shapeshift-labs/frontier-icons: Renderer-neutral icon records, icon sets, lookup aliases, SVG frames, string rendering, and registry evidence for Frontier apps.@shapeshift-labs/frontier-design: Renderer-neutral design-system tokens, semantic roles, recipes, target style frames, CSS variable output, and registry graph evidence for Frontier apps.@shapeshift-labs/frontier-canvas: Renderer-neutral infinite canvas surfaces for Frontier apps, including camera and viewport math, pan/zoom plans, grid materialization, snapping, hit testing, selection handles, extensible tool dispatch, frame records, registry graph output, and impact/proof helpers.@shapeshift-labs/frontier-canvas-tools: Renderer-neutral editor tools, state machines, transform handles, permissions, async records, and AI action bridges for Frontier canvas surfaces.@shapeshift-labs/frontier-dnd: Renderer-neutral drag-and-drop sessions, sensor descriptors, collision ranking, drop planning, reorder patches, state partitioning, and registry evidence for Frontier apps.@shapeshift-labs/frontier-dom: Patch-native DOM and host renderer bindings, manifest hydration, JSX runtime/compiler helpers, SSR, devtools, and logging bridges.@shapeshift-labs/frontier-test: Serializable test/spec evidence manifests for Frontier apps, including fixtures, commands, expected patches/effects/routes/policies, coverage declarations, run plans, run records, report adapters, replay proofs, fuzzers, benchmarks, registry graph output, and impact queries.@shapeshift-labs/frontier-fixtures: Deterministic fixture and scenario generation for Frontier apps, including schema-valid sample state, related entity collections, actor personas, route states, replay-verified patch streams, event records, JSONL bundles, and evidence summaries.@shapeshift-labs/frontier-component-preview: Frontier-native component preview books, generated preview manifests, stateful variants, Vite virtual modules, standalone browser preview shells, inspector bridges, and preview harness evidence for Frontier apps.@shapeshift-labs/frontier-documentation: Frontier-native documentation manifests, generated documentation books, package/API/source discovery, Vite virtual modules, standalone browser docs shells, inspector bridges, search indexes, and documentation harness evidence for Frontier apps and packages.@shapeshift-labs/frontier-ast-walk: Dependency-light source graph, import/export/declaration/call analysis, Frontier package-use discovery, and business-logic placement findings for Frontier tools, apps, docs, fuzzers, benchmarks, and agent evidence.@shapeshift-labs/frontier-history: Serializable temporal explanation and causality records for Frontier apps, including field-change explanations, action/workflow/policy/effect/trace/test provenance, audit windows, undo planning, registry/provenance graph output, JSONL replay bundles, and proof hashes.@shapeshift-labs/frontier-application: Serializable whole-application graph and impact queries for Frontier apps, including features, owners, packages, routes, views, actions, mutations, state paths, effects, workers, assets, tests, traces, policies, workflows, migrations, benchmarks, registry graph output, feature maps, JSONL bundles, and proof hashes.@shapeshift-labs/frontier-linter: Serializable Frontier lint rules, diagnostics, fixes, reports, and fast rule execution for package catalogs, registry graphs, application maps, manifests, traces, policies, workflows, workers, assets, tests, benchmarks, and source snippets.@shapeshift-labs/frontier-framework: High-level app framework package for Frontier applications, including configuration, CLI scaffolding, Vite builds, monorepo layout, TSX route builds, split frontend/backend deploy artifacts, backend-neutral Fetch handler and sync transport contracts, runtime data-source migrations, devtools, harness gates, agent MCP/tool manifests, CI evidence gates, workflow manifests, SARIF/linter output, replay scripts, and evidence manifest output.@shapeshift-labs/frontier-crdt: Native CRDT documents, update tooling, awareness, branches, conflict introspection, version frames, and undo.@shapeshift-labs/frontier-crdt-sync: CRDT sync endpoints, repo/storage/provider contracts, scheduled sync work, document URLs, local networks, model checking, forensics, and text binding contracts.@shapeshift-labs/frontier-crdt-websocket: WebSocket client/server transports for Frontier CRDT sync providers.@shapeshift-labs/frontier-react: React external-store hooks and adapters for Frontier state, cache, and CRDT surfaces.@shapeshift-labs/frontier-richtext: Rich text Delta normalization/application, marks, embeds, ranges, and cursor/selection transforms for local editor integrations.@shapeshift-labs/frontier-realtime: Shared realtime command, tick, snapshot, prediction, reconciliation, interpolation, rollback, message, and delta primitives.@shapeshift-labs/frontier-realtime-server: Authoritative realtime room, tick, command validation, rate-limit, session, and snapshot-history runtime.@shapeshift-labs/frontier-realtime-websocket: WebSocket client, wire, and Node room-server transport for Frontier realtime.@shapeshift-labs/frontier-game: Game-facing entity, component, player, room, ownership, spatial interest, rollback, physics, and replication helpers above realtime.@shapeshift-labs/loom: Repo-level semantic collaboration CLI for .loom workspaces, including init, scan, status, graph snapshots, projection plans, Frontier Lang delegation, Frontier Swarm delegation, run-log sync command delegation, and Frontier Framework delegation.
Package source repositories:
siliconjungle/-shapeshift-labs-frontiersiliconjungle/-shapeshift-labs-frontier-querysiliconjungle/-shapeshift-labs-frontier-codecsiliconjungle/-shapeshift-labs-frontier-enginesiliconjungle/-shapeshift-labs-frontier-statesiliconjungle/-shapeshift-labs-frontier-dataflowsiliconjungle/-shapeshift-labs-frontier-state-cachesiliconjungle/-shapeshift-labs-frontier-state-cache-idbsiliconjungle/-shapeshift-labs-frontier-state-cache-filesiliconjungle/-shapeshift-labs-frontier-state-cache-sqlsiliconjungle/-shapeshift-labs-frontier-schemasiliconjungle/-shapeshift-labs-frontier-migrationssiliconjungle/-shapeshift-labs-frontier-event-logsiliconjungle/-shapeshift-labs-frontier-runsiliconjungle/-shapeshift-labs-frontier-leasesiliconjungle/-shapeshift-labs-frontier-inspectsiliconjungle/-shapeshift-labs-frontier-schedulersiliconjungle/-shapeshift-labs-frontier-loggingsiliconjungle/-shapeshift-labs-frontier-mutationsiliconjungle/-shapeshift-labs-frontier-effectssiliconjungle/-shapeshift-labs-frontier-authsiliconjungle/-shapeshift-labs-frontier-policysiliconjungle/-shapeshift-labs-frontier-flagssiliconjungle/-shapeshift-labs-frontier-toolssiliconjungle/-shapeshift-labs-frontier-sandboxsiliconjungle/-shapeshift-labs-frontier-sandbox-quickjssiliconjungle/-shapeshift-labs-frontier-workflowsiliconjungle/-shapeshift-labs-frontier-workersiliconjungle/-shapeshift-labs-frontier-queuesiliconjungle/-shapeshift-labs-frontier-swarmsiliconjungle/-shapeshift-labs-frontier-swarm-gitsiliconjungle/-shapeshift-labs-frontier-swarm-codexsiliconjungle/frontier-loom-uisiliconjungle/-shapeshift-labs-frontier-lang-kernelsiliconjungle/-shapeshift-labs-frontier-lang-parsersiliconjungle/-shapeshift-labs-frontier-lang-checkersiliconjungle/-shapeshift-labs-frontier-lang-typescriptsiliconjungle/-shapeshift-labs-frontier-lang-javascriptsiliconjungle/-shapeshift-labs-frontier-lang-htmlsiliconjungle/-shapeshift-labs-frontier-lang-csssiliconjungle/-shapeshift-labs-frontier-lang-rustsiliconjungle/-shapeshift-labs-frontier-lang-pythonsiliconjungle/-shapeshift-labs-frontier-lang-csiliconjungle/-shapeshift-labs-frontier-lang-compilersiliconjungle/-shapeshift-labs-frontier-lang-swiftsiliconjungle/-shapeshift-labs-frontier-lang-kotlinsiliconjungle/-shapeshift-labs-frontier-lang-javasiliconjungle/-shapeshift-labs-frontier-lang-gosiliconjungle/-shapeshift-labs-frontier-lang-csharpsiliconjungle/-shapeshift-labs-frontier-lang-clangsiliconjungle/-shapeshift-labs-frontier-lang-clisiliconjungle/-shapeshift-labs-frontier-langsiliconjungle/-shapeshift-labs-frontier-kvsiliconjungle/-shapeshift-labs-frontier-kv-lockssiliconjungle/-shapeshift-labs-frontier-kv-rate-limitsiliconjungle/-shapeshift-labs-frontier-kv-filesiliconjungle/-shapeshift-labs-frontier-kv-idbsiliconjungle/-shapeshift-labs-frontier-kv-redissiliconjungle/-shapeshift-labs-frontier-kv-serversiliconjungle/-shapeshift-labs-frontier-assetssiliconjungle/-shapeshift-labs-frontier-blueprintsiliconjungle/-shapeshift-labs-frontier-triggerssiliconjungle/-shapeshift-labs-frontier-virtualsiliconjungle/-shapeshift-labs-frontier-tablesiliconjungle/-shapeshift-labs-frontier-scenesiliconjungle/-shapeshift-labs-frontier-pathfindingsiliconjungle/-shapeshift-labs-frontier-lodsiliconjungle/-shapeshift-labs-frontier-routesiliconjungle/-shapeshift-labs-frontier-tracesiliconjungle/-shapeshift-labs-frontier-manifestsiliconjungle/-shapeshift-labs-frontier-viewsiliconjungle/-shapeshift-labs-frontier-iconssiliconjungle/-shapeshift-labs-frontier-designsiliconjungle/-shapeshift-labs-frontier-canvassiliconjungle/-shapeshift-labs-frontier-canvas-toolssiliconjungle/-shapeshift-labs-frontier-dndsiliconjungle/-shapeshift-labs-frontier-domsiliconjungle/-shapeshift-labs-frontier-playwrightsiliconjungle/-shapeshift-labs-frontier-testsiliconjungle/-shapeshift-labs-frontier-fixturessiliconjungle/-shapeshift-labs-frontier-component-previewsiliconjungle/-shapeshift-labs-frontier-documentationsiliconjungle/-shapeshift-labs-frontier-ast-walksiliconjungle/-shapeshift-labs-frontier-historysiliconjungle/-shapeshift-labs-frontier-applicationsiliconjungle/-shapeshift-labs-frontier-lintersiliconjungle/-shapeshift-labs-frontier-frameworksiliconjungle/-shapeshift-labs-frontier-crdtsiliconjungle/-shapeshift-labs-frontier-crdt-syncsiliconjungle/-shapeshift-labs-frontier-crdt-websocketsiliconjungle/-shapeshift-labs-frontier-reactsiliconjungle/-shapeshift-labs-frontier-richtextsiliconjungle/-shapeshift-labs-frontier-realtimesiliconjungle/-shapeshift-labs-frontier-realtime-serversiliconjungle/-shapeshift-labs-frontier-realtime-websocketsiliconjungle/-shapeshift-labs-frontier-gamesiliconjungle/-shapeshift-labs-loom
Install
npm install @shapeshift-labs/frontier-playwright playwrightCurrent Surface
import { test } from '@playwright/test';
import {
createFrontierPlaywrightProbe,
domProbe,
frontierDomDevtoolsProbe,
stateProbe
} from '@shapeshift-labs/frontier-playwright';
test('state and DOM stay in sync', async ({ page }) => {
const frontier = await createFrontierPlaywrightProbe(page, {
state: [
stateProbe('app', 'window.appState.get()', {
paths: ['/todos/0/text', '/todos/0/done']
})
],
dom: [
domProbe('todos', '[data-todo]', {
include: ['text', 'attributes'],
attributes: ['data-id', 'data-done']
})
],
devtools: [
frontierDomDevtoolsProbe('dom', '__FRONTIER_DOM__', {
includeStateSnapshot: true
})
]
});
await page.goto('http://localhost:3000');
await frontier.sample('loaded');
await page.getByRole('checkbox', { name: 'Alpha' }).click();
await frontier.sample('after-toggle');
const stateChanges = await frontier.query({
source: 'state',
id: 'app',
path: '/todos/0/done',
changed: true
});
const dirtyDomWrites = await frontier.query({
source: 'devtools',
id: 'dom',
changed: true
});
});The browser-side probe stores a bounded timeline in window.__FRONTIER_PLAYWRIGHT__. It can sample:
- state via
expression,globalName, and JSON Pointer paths - DOM via selectors, text, attributes, dataset, value, checked state, geometry, and selected properties
- Frontier DOM devtools via
snapshot()orinspect()globals such as__FRONTIER_DOM__ - explicit marks for AI/test-script milestones
Timeline queries run in Node, so AI scripts can ask for "what changed at /todos/0/done after the click" without writing page-specific diff code.
AI Session Harness
For agent-authored scripts, use the session wrapper. It records step boundaries, samples before and after actions, waits for state or DOM changes, and can export compact evidence for another model or a log sink.
import {
createFrontierAiSession,
domProbe,
stateProbe
} from '@shapeshift-labs/frontier-playwright';
const frontier = await createFrontierAiSession(page, {
runId: 'checkout-debug',
state: [
stateProbe('cart', 'window.store.getState()', {
paths: ['/cart/total', '/checkout/status']
})
],
dom: [
domProbe('checkout', '[data-frontier-checkout]', {
include: ['text', 'attributes', 'value'],
attributes: ['data-state', 'aria-invalid']
})
],
defaultStep: {
timeoutMs: 2000,
intervalMs: 25
}
});
await frontier.step('submit checkout', async () => {
await page.getByRole('button', { name: 'Pay now' }).click();
}, {
waitFor: [
{ source: 'state', id: 'cart', path: '/checkout/status', changed: true },
{ source: 'dom', id: 'checkout', textIncludes: 'Processing' }
]
});
const evidence = await frontier.evidence([
{
id: 'checkout-status-changes',
query: { source: 'state', id: 'cart', path: '/checkout/status', changed: true },
limit: 8
},
{
id: 'checkout-dom',
query: { source: 'dom', id: 'checkout' },
limit: 8
}
], {
includeJsonl: true,
includeLogRecords: true,
redactKeys: ['token', 'authorization', 'password']
});
console.log(evidence.report.summary);
await uploadEvidence(evidence.jsonl);
await writeLogs(evidence.logRecords);The harness intentionally returns plain JSON-shaped evidence. frontier.evidence(...) reads the browser timeline once, then produces the report, optional JSONL export, and optional structural log records from that same snapshot. frontierTimelineReportToLogRecords(...) remains available when you already have a report and want to bridge into Frontier logging sinks without importing @shapeshift-labs/frontier-logging.
Runtime Proof Evidence
For semantic-merge admission, runFrontierPlaywrightRuntimeProof(...) wraps the session harness and returns browser evidence plus proof-builder fields. The helper does not import HTML or CSS packages and does not claim semantic equivalence; language validators still decide admission.
import {
createFrontierPlaywrightRuntimeProofArtifact,
domProbe,
runFrontierPlaywrightSourceRuntimeProof,
stringifyFrontierPlaywrightRuntimeProofArtifact,
stateProbe
} from '@shapeshift-labs/frontier-playwright';
import { createHtmlRuntimeProof } from '@shapeshift-labs/frontier-lang-html';
const run = await runFrontierPlaywrightSourceRuntimeProof(page, {
runId: 'html-runtime-proof',
sourcePath: 'view.html',
reasonCode: 'script-runtime-boundary',
side: 'worker',
recordKey: 'text#script[1]/#text[1]',
base,
worker,
head,
output,
state: [stateProbe('app', 'window.appState', { paths: ['/ready'] })],
dom: [domProbe('root', '[data-frontier-root]', { include: ['text'] })],
command: 'playwright test html-runtime.spec.ts',
probeId: 'html:script-runtime-boundary',
runtimeSignals: ['html-script-runtime'],
queries: [
{ id: 'ready-state', query: { source: 'state', id: 'app', path: '/ready', changed: true } }
],
action: async () => {
await page.getByRole('button', { name: 'Run' }).click();
},
stepOptions: {
waitFor: { source: 'state', id: 'app', path: '/ready', changed: true }
}
});
const proof = createHtmlRuntimeProof(run.proofBuilderInput);
const artifact = createFrontierPlaywrightRuntimeProofArtifact(run);
console.log(run.runtimeEvidence.runtimeEvidenceBound);
console.log(proof.browserRuntimeEquivalenceClaim);
console.log(stringifyFrontierPlaywrightRuntimeProofArtifact(artifact));runtimeEvidenceBound only becomes true for passed runs with command, probe id, evidence hash, and runtime signals. The builder fields keep browser/runtime/cascade/render/semantic/auto-merge claims false until the owning language package admits the proof against exact source bindings.
When the proof should be bound to concrete browser assertions, use runFrontierPlaywrightAssertionRuntimeProof(...) with dom-text, dom-attribute, or computed-style assertions. Failed assertions return failed runtime evidence instead of a merge-admissible proof.
Benchmarks
These are Frontier-only package measurements, not competitor comparisons.
Run package-local measurements:
npm run benchThe benchmark covers timeline state-change queries, DOM text queries, AI reports, AI evidence bundles, JSONL export, and timeline summaries over synthetic Playwright samples.
Latest local package benchmark on Node v26.1.0, darwin arm64, 1000 samples and 80 rounds:
| Fixture | Median | p95 |
| --- | ---: | ---: |
| query-state-changes-1000 | 138.67 us | 297.54 us |
| query-dom-text-1000 | 162.25 us | 331.79 us |
| summarize-timeline-1000 | 15.04 us | 65.42 us |
| create-ai-report-1000 | 266.17 us | 364.08 us |
| create-ai-evidence-1000 | 824.71 us | 987.71 us |
| encode-jsonl-1000 | 546.79 us | 605.42 us |
