Getting Started
What is framejs.io?
framejs.io aims to be a user-centric web primitive.
Run arbitrary javascript directly in the browser, with all code embedded in the URL. There is no server-side storage: the URL is the program.
It is designed for embedding code safely anywhere, creating custom, editable dashboards, widgets, notebook components, shareable visualizations, editable apps, and more.
framejs.io pages can combine and connect into metapages, where inputs and outputs can flow between, or be embedded in jupyter notebook code.
See examples
Quickstart
- Go to framejs.io
- Write JavaScript in the editor or edit with AI
- The code runs immediately — the URL updates to contain your code
- Share the URL with anyone
JavaScript overview
- Code is an ES6 module
- Top-level
awaitis supported - Export
onInputsto listen to inputs from connected metaframes - Send outputs with
setOutput/setOutputs - Export
onResizeto handle window/div resizes - Use ES6 module imports, or add CSS / npm modules — everything is embedded in the URL
See the full JavaScript API for details.