Quickstart Guide

Description

Quickstart Guide

Your First Graph

from htmlgraph import HtmlGraph, Node

# Create a graph
graph = HtmlGraph("my-graph")

# Add a node
node = Node(
    id="task-001",
    title="My First Task",
    type="task",
    status="todo"
)

# Save to HTML file
graph.add(node)

Query Your Graph

# Find all tasks
tasks = graph.query("[data-type='task']")

# Find completed tasks
done = graph.query("[data-status='done']")

Using the SDK

from htmlgraph import SDK

sdk = SDK(directory=".", agent="my-agent")

# Create a feature
feature = sdk.features.create("Add authentication")

Next Steps