Public
Edited
Dec 22, 2023
2 forks
22 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
latestValue = myStore
Insert cell
Insert cell
Inputs.button("Write by assignment", {
reduce: () => {
viewof myStore.value = Math.random();
}
})
Insert cell
Inputs.bind(
Inputs.range([0, 1], {
label: "write by syncronization"
}),
viewof myStore
)
Insert cell
Insert cell
Insert cell
viewof cloud_key = cellstore({
owner: "endpointservices",
key: "cloud_key",
writers: ["tomlarkworthy"],
readers: ["tomlarkworthy", "saneef", "pstuffa"]
})
Insert cell
Insert cell
cloud_key
Insert cell
Insert cell
Inputs.bind(
Inputs.password({
// Or use Inputs.password if you don't want the plain text revealed
label: "edit secret",
submit: true
}),
viewof cloud_key
)
Insert cell
Insert cell
viewof cache = cellstore({
owner: "endpointservices",
key: "cache_example",
writers: ["tomlarkworthy"], // Only I can update the cache!
readers: "all"
})
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
{
viewof cache.value = fetchData;
}
Insert cell
Insert cell
html`${cache.hackernews}`
Insert cell
Insert cell
Insert cell
viewof rustProgram = cellstore({
owner: "endpointservices",
key: "rust_program",
writers: "all",
readers: "all",
per_user: true,
writes_per_day: 2000
})
Insert cell
import {
CodeMirror,
esmCodeMirror,
codemirror,
myDefaultTheme
} from "@tomlarkworthy/codemirror-6"
Insert cell
Insert cell
Insert cell
// viewof editor = Inputs.bind(
CodeMirror("", {
extensions: [codemirror.basicSetup, rustPlugin.rust(), myDefaultTheme]
}),
viewof rustProgram
)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
newUserJourneyParams
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more