CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-slate-hyperscript

A hyperscript helper for creating Slate documents with JSX-like syntax.

90

1.15x
Overview
Eval results
Files

Evaluation results

96%

1%

Document Structure Builder

Element and text attributes

Criteria
Without context
With context

Uses jsx function

100%

100%

Creates editor tag

100%

100%

Element type attributes

100%

100%

Custom element properties

100%

100%

Text formatting attributes

100%

100%

Plain string handling

50%

60%

Dynamic attribute spreading

100%

100%

65%

5%

Editor State Builder

Basic JSX tag creation (editor, element, text, fragment, selection, anchor, focus, cursor)

Criteria
Without context
With context

Uses jsx function

100%

100%

Creates editor tag

100%

100%

Creates element tags

100%

100%

Handles plain text

33%

66%

Uses cursor token

0%

0%

Uses anchor/focus tokens

0%

0%

Applies text attributes

100%

100%

95%

-5%

Document Structure Factory

Priority-based creator system (defaults, shorthands, custom)

Criteria
Without context
With context

Import createHyperscript

100%

100%

Use elements option

100%

100%

Use creators option

100%

100%

Proper precedence

100%

100%

Return JSX function

100%

50%

Handle children properly

100%

100%

55%

-30%

Nested Document Builder

Nested document structures

Criteria
Without context
With context

JSX Factory Import

100%

0%

Editor Tag Usage

100%

0%

Element Tag Nesting

100%

33%

Element Type Properties

100%

100%

Element ID Attributes

100%

100%

Text Content Handling

100%

100%

Cursor Tag Usage

0%

0%

Complex List Nesting

100%

100%

Custom List Attributes

100%

100%

100%

Custom Editor Factory Integration

Integration with custom editor factories

Criteria
Without context
With context

createHyperscript usage

100%

100%

Custom editor creator

100%

100%

Editor metadata

100%

100%

ID counter logic

100%

100%

Validation logic

100%

100%

Element shortcuts

100%

100%

JSX export

100%

100%

100%

67%

Slate Editor Test Fixture Builder

Token resolution across complex document structures

Criteria
Without context
With context

JSX function import

100%

100%

Editor tag usage

0%

100%

Element tag usage

93%

100%

Cursor token usage

0%

100%

Anchor/focus token usage

0%

100%

Token placement accuracy

0%

100%

Nesting depth handling

90%

100%

100%

9%

Text Selection Test Fixture Generator

Inline selection markers with token system (cursor, anchor/focus)

Criteria
Without context
With context

Imports jsx function

100%

100%

Uses cursor token

86%

100%

Uses anchor/focus tokens

88%

100%

Uses editor tag

100%

100%

Uses element tag

100%

100%

Inline marker placement

86%

100%

100%

7%

Document Builder Utility

Automatic string-to-text node conversion

Criteria
Without context
With context

Uses jsx function

66%

100%

String-to-text conversion

100%

100%

Adjacent string merging

100%

100%

Cursor token usage

90%

100%

Element tag usage

100%

100%

100%

70%

Selection Test Fixture Generator

Explicit selection with path and offset attributes

Criteria
Without context
With context

Import slate-hyperscript

100%

100%

Use <editor> tag

100%

100%

Use <selection> tag

0%

100%

Use <anchor> with path

0%

100%

Use <anchor> with offset

0%

100%

Use <focus> with path

0%

100%

Use <focus> with offset

0%

100%

Handle collapsed selections

100%

100%

Handle range selections

100%

100%

85%

-5%

Test Fixture Builder

Text node merging logic with WeakSet tracking

Criteria
Without context
With context

Uses jsx function

33%

0%

String-to-text conversion

100%

100%

Adjacent string merging

100%

100%

Explicit text separation

100%

100%

WeakSet tracking

100%

100%

Install with Tessl CLI

npx tessl i tessl/npm-slate-hyperscript
Evaluated
Agent
Codex

Table of Contents