MCPcopy Index your code
hub / github.com/starfederation/datastar

github.com/starfederation/datastar @v1.0.2 sqlite

repository ↗ · DeepWiki ↗ · release v1.0.2 ↗
481 symbols 1,343 edges 47 files 11 documented · 2%
README

Version License Stars

Datastar

The hypermedia framework.

Datastar is a lightweight framework for building everything from simple sites to real-time collaborative web applications.

Getting started is as easy as adding a single 11.75 KiB script tag to your HTML.

<script type="module" src="https://cdn.jsdelivr.net/gh/starfederation/datastar@v1.0.2/bundles/datastar.js"></script>

Then start adding frontend reactivity using declarative data-* attributes.

<input data-bind:title />





<button data-on:click="@post('/endpoint')">Save</button>

Visit the Datastar Website »

Watch the Videos »

Join the Discord Server »

Getting Started

Read the Getting Started Guide »

Contributing

Read the Contribution Guidelines »

Star History Chart

Extension points exported contracts — how you extend this code

EventSourceMessage (Interface)
* Represents a message sent in an event stream * https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Us
library/src/plugins/actions/fetch.ts
ReactiveNode (Interface)
(no doc)
library/src/engine/signals.ts
Link (Interface)
(no doc)
library/src/engine/signals.ts
Stack (Interface)
(no doc)
library/src/engine/signals.ts
AlienEffect (Interface)
(no doc)
library/src/engine/signals.ts

Core symbols most depended-on inside this repo

x
called by 26
bundles/datastar-core.js
attribute
called by 17
library/src/engine/engine.ts
p
called by 17
bundles/datastar-aliased.js
p
called by 17
bundles/datastar.js
error
called by 16
library/src/engine/engine.ts
n
called by 16
bundles/datastar-aliased.js
n
called by 16
bundles/datastar.js
R
called by 13
bundles/datastar.js

Shape

Function 464
Interface 7
Method 5
Struct 3
Enum 2

Languages

TypeScript95%
Go5%

Modules by API surface

bundles/datastar.js116 symbols
bundles/datastar-aliased.js116 symbols
bundles/datastar-core.js59 symbols
library/src/engine/signals.ts47 symbols
library/src/plugins/actions/fetch.ts19 symbols
library/src/engine/engine.ts16 symbols
sdk/tests/testdata.go15 symbols
library/src/plugins/watchers/patchElements.ts15 symbols
library/src/utils/text.ts9 symbols
sdk/tests/runner.go8 symbols
library/src/plugins/attributes/bind.ts6 symbols
tools/vscode-extension/src/extension.js5 symbols

Dependencies from manifests, versioned

github.com/pmezard/go-difflibv1.0.0 · 1×
golang.org/x/netv0.38.0 · 1×
gopkg.in/yaml.v3v3.0.1 · 1×
@vscode/vsce3.7.1 · 1×

For agents

$ claude mcp add datastar \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact