susiai/susi_builder_web
소개
SUSI Builder is an open-source workstation for agentic coding in the browser. The coding agent, console, and app preview share a virtual file system (VFS) backed by the browser’s IndexedDB, with optional S3 bucket mounts.
개발 도구측정된 스타 증가
- in 24h
- 0
- in 7 days
- +1
- in 15 days
- +2
- in 1 month
- +1
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalSUSI Builder
SUSI Builder is an open-source workstation for agentic coding in the browser. The coding agent, console, and app preview share a virtual file system (VFS) backed by the browser’s IndexedDB, with optional S3 bucket mounts.
Get started
- Open
docs/index.htmldirectly in your browser. - Open Chat and send a message. Chat defaults to LFM3 1.7B on both WebGPU and WebGL2. If both GPU backends are unavailable, it uses LFM2.5 350M on WASM by default. Chat downloads models as needed. You can send a message while the model loads, and each model works offline once its files have downloaded.
- Use Apps → New App or Create App to start another app. Describe what it should do in Chat, then open the result with View.
In Configuration → Models, choose a primary WebGPU model and a WASM fallback (text chat tries your selected WebGL2 model second), or select a model from an
OpenAI-compatible API endpoint such as Ollama. Use Test model to try your selection before saving it for Chat.
The primary model is saved for the current device category in /config.json under chatLocalPrimaryDesktop or
chatLocalPrimaryMobile.
Speech-to-text and speech output are off until you configure them there.
Build and edit apps
- Apps lets you open your apps in Chat, preview them with View, or download them as ZIPs. New apps have an
index.htmlunder/Apps/<name>/. Unpack an exported app to publish it on a static web host. - Create App combines designs, layouts, components, and bundled libraries. Build a dashboard, chat app, notebook, data workspace, or game from a starter with a live preview. Template guide
- Chat streams replies and gives the agent tools to read, search, and edit files in the selected app.
The agent can call
run_pythonwith the path to a saved Python script in the active project. It can also callrun_javascriptwith the path to a saved JavaScript module. The isolated runtime supports local imports,consoleoutput, andreadFile,writeFile,mkdir,readdir, andunlinkfromnode:fs/promises. JavaScript paths resolve from the project root at/workspace. Successful runs save their file changes together. Paste or attach images and use Qwen3.5 4B, Gemma 4 E2B Instruct, or Gemma 4 E4B Instruct on WebGPU. Vision-capable API models also accept images. Attach text, PDF, XLSX, DOCX, PPTX, or audio files. Audio attachments use the selected speech-to-text model. Browser chat models run offline once downloaded to/Models/Chat/. Qwen3.5 0.8B and LFM2.5 350M support WebGPU and WebGL2 for text chat, and can also run on WASM. LFM2.5 1.2B Instruct uses WebGPU. LFM3 1.7B supports WebGPU and WebGL2. Llama 3.2 1B Instruct provides browser text chat on WebGPU and WebGL2 under the Llama 3.2 Community License. Gemma 4 12B Instruct provides WebGPU text chat. The AMINOXDEV Q4F16 build downloads about 7.5 GB and calls for about 10 GB of free GPU memory. - Linux Terminal opens Debian Bash in
~/susi. The complete workspace is mounted there and SUSI’s/binis also mounted at~/.local/bin. The first start downloads the current verified Unkernel SDK, kernel and Debian image over HTTPS. Browsers with JSPI use the native kernel. Browsers without JSPI can use the Asyncify kernel with WebAssembly multi-memory. Openingbuild_unkernel-linux-bash.htmlfrom disk uses the same downloads fromsusi.ai. Debian boots on the first shell or Builder Chatrun_bashrequest. Each boot checks for an update and can use the cached release offline. Typeexitand choose Open Bash to open a fresh shell on the running system. Hosted Builder tabs can share it through a SharedWorker. Browsers that block this worker, including for local files, keep Linux in the requesting page. Builder Chat mounts only the selected project. Commands in one agent run reuse its kernel. Switching between the terminal and a project waits for active shells or commands to finish, then boots with the appropriate permissions. Packages and native files persist on the same Debian disk across these switches.
Builder Chat’s run_python tool loads Pyodide from jsDelivr on demand, including Pyodide packages imported directly by the script. Scripts see
workspace files under /workspace and use standard Python file operations. Changes are saved back when execution
finishes. An interrupted run discards pending writes.
In Linux Terminal, list the five examples with ls ~/susi/bin/python_example_*.py.
To try one with Builder Chat, copy python_example_csv.py into your project and ask Chat to run it.
Each example creates sample input and writes results under python-examples/ in the current directory. Edit the
sample input and rerun the script to see different results.
How the preview runs without a server
Preview runs app files from the VFS in a sandbox, including when SUSI Builder is opened from disk. Apps can use
window.susi.files.readFile and writeFile to work with live files in their own folder.
Add &menu=false to a view.html?path=… link to open the app without the SUSI Builder menu.
A generated chat app has its own Configuration page for its API host and model. Preview allows API calls, including to Ollama on localhost, when the endpoint permits them.
In Create App, choose Workbench Chat to build a standalone app with the same searchable timeline, saved conversations, and file attachments as Builder’s Chat. Download the app from Apps to share it. Each user has their own browser history and can transfer a conversation using Export JSON and Import JSON.
Tools and integrations
- Browser shares screenshots or a participating app with Chat. Interactive actions require approval in Browser.
- Write a skill under Skills in Library Editor, or generate one in Skill Creator. Check the saved file in Library Editor to enable it. Run
python3 tools/serve-webstation.pyfor rendered page reading on localhost. On macOS, you can also use Start Skill Creator.command with a workspace opened from disk. - Tools lets you edit tool descriptions and set the maximum tool calls per reply.
- Chat can use enabled MCP functions from connectors saved in the workspace configuration.
- In Models, choose local Whisper or a transcription API for audio attachments and dictation in Chat. Read completed Chat replies aloud with local Chatterbox or the OpenAI Realtime API. The selected API receives the audio or text it processes. API keys stay in the browser tab's session storage.
S3 filesystem mounts
Use Configuration → S3 to mount buckets at /mnt/<bucket>/ in Builder and ~/susi/mnt/<bucket>/ in the Linux Terminal. To expose an existing local folder, use the Bash and PowerShell launchers.
Workspace storage and backups
Workspace backs up apps, settings, conversations, and run activity in unencrypted ZIP files. It can also restore
older encrypted .wsbackup files using their original passphrase.
Browser storage is tied to the address you open. Use a workspace backup to move between a local file and a hosted copy.
After const vfs = await vfsReady, call vfs.archive.exportFolder(path) to get a ZIP { name, blob }
or vfs.archive.importFolder(file) to extract a ZIP and get its new folder path. For full workspace
backups, vfs.archive.encodeBackup(snapshot) and vfs.archive.decodeBackup(file, passphrase) use the
workspace manifest. Decoding a backup lets the caller inspect it before restoring it.
Reset Default Files restores the bundled files from vfs-preload/, including config.json, and keeps other
workspace files. Clear Everything (File System, Linux System, Downloaded Models) deletes the workspace database
with its downloaded models, the Linux system disk and cached Linux images. It also clears saved conversations,
console history and session credentials. Workspace opens without loading defaults. Opening a page such as Apps starts a
fresh workspace if the database is empty.
Reusing the virtual file system
Load docs/js/vfs.js as a classic script in a page or worker. Each call to
VirtualFileSystem.open() returns a connection. Choose a database name to keep an application's
files separate from the workstation's vfs database.
const notes = await VirtualFileSystem.open({ databaseName: "notes" });
try {
await notes.fileSystem.write("/draft.txt", "First draft");
const text = await notes.get("/draft.txt");
} finally {
notes.close();
}
A named database starts empty. To seed it, pass a loadDefaults function that returns an array
of { path, value } entries or a promise for that array. resetToDefaults() replaces the contents
and emits a reset event on open connections to that database. Reopen it to write again.
Folder and backup ZIPs use the instance's archive API. To use ZIPs in another project, also copy
vendor/zip-2.25.0.min.js and its license beside the script in the same vendor/ layout.
Reusing the project catalog
Load docs/js/vfs.js and docs/js/project-catalog.js as classic scripts. A catalog uses the
VFS connection passed to it. listPaths() discovers apps by their index.html. Calling list() also
returns each app's manifest, pin state, and available artwork.
const catalog = new ProjectCatalog(await vfsReady);
const path = await catalog.create("Notes", { indexHtml: "<title>Notes</title>" });
await catalog.setPinned(path, true);
const pinnedApps = (await catalog.list()).filter(app => app.pinned);
setPinned() preserves custom manifest fields. If another writer changes or creates the manifest
between the read and the write, the operation rejects and preserves the other writer's version.
Sharing a JSON settings file
Load docs/js/workspace-config-store.js and pass a storage adapter to WorkspaceConfigStore.
The default path is /config.json. Pass a second argument to use a different file.
const settings = new WorkspaceConfigStore(await vfsReady, "/my-app/settings.json");
await settings.update(current => ({ ...current, theme: "dark" }));
const { theme } = await settings.read();
The adapter supplies getasync(path) and an atomic update(path, transform) that returns the saved text.
A missing file reads as an empty object. Each update receives the latest document, so features can
merge their own changes in a synchronous callback. Returning undefined keeps the existing text.
Reusing the workspace editor
Code Studio and Library Editor use the same shell, controller, and styles. To add an editor page,
use docs/library_editor.html as its entry point. Set the title, navigation target, and
data-studio-root on the body to an absolute VFS directory ending in /.
The tree and its labels start at that directory. Links use the full VFS address in ?file=.
Tabs and drafts are stored per root. Code Studio retains its existing session at config.codeStudio.
All features are enabled by default. A page can set data-studio-disabled-features to a
space-separated list of file-chat, dictation, project-preview, and table-editor.
For example, data-studio-disabled-features="dictation project-preview" hides the microphone
and website preview controls while leaving the other editor actions available.
Library file activation
Load vfs.js and workspace-config-store.js, then use new LibraryFileActivation(vfs).
readEnabled() returns a set of full VFS file paths. setEnabled(path, boolean) changes one
selection atomically and returns the updated set. Pass any file under /Library/, including nested files.
The Library Editor opts into the shared checkbox with data-studio-library-switches.
Manual, Notebook, and Archive files are enabled by default. Per-file overrides live in
pages.library.enabled and pages.library.disabled in /config.json. Legacy pages.skills.enabled
entries are read relative to /Library/Skills/ and converted on the first selection change.
Shelf-specific tools use the entries in their own folder. Skill search also filters for Markdown.
Reusing the skill library
Load docs/js/vfs.js, docs/js/workspace-config-store.js, and docs/js/skills.js as classic
scripts. Pass a VFS connection to SkillLibrary. Its methods use Markdown paths relative to
/Library/Skills/, including subfolders.
const vfs = await VirtualFileSystem.open({ databaseName: "my-app" });
try {
const skills = new SkillLibrary(vfs);
const path = await skills.create("Review a draft", "Check each citation against its source.");
await skills.setEnabled(path, true);
const { matches } = await skills.search("citation");
await skills.delete(path);
} finally {
vfs.close();
}
create() rejects an existing filename. Deleting a skill also removes its approval.
Given a VFS with a loadDefaults function, installDefaults() restores missing bundled
Markdown files and returns the number added. Restored skills start disabled. Existing files
keep their content and approval.
Reusing the workspace run store
Load docs/js/vfs.js and docs/js/workstation-state.js as classic scripts. Each
WorkspaceRunStore instance owns the runs it starts. Pass its fence to a project write to have
the VFS verify ownership and lease expiry inside the write transaction.
const vfs = await vfsReady;
const runs = new WorkspaceRunStore(vfs);
const run = await runs.start({ project: "/Notes/", profile: "builder", prompt: "Save a draft" });
await vfs.put("/Notes/draft.md", "# Draft", { guard: runs.fence(run.id) });
await runs.finish(run.id, "completed", "Saved draft.md");
Use heartbeat(id) to renew a running lease and recover() to mark expired runs and their
latest tasks interrupted. Restoring a backup interrupts historical executions before their
files become writable. The store defaults to /.webstation/workspace.json and accepts a custom
index path as its second argument. For older backups with an unmarked custom index, pass its
absolute path in the runStorePaths option to vfs.recovery.restore().
Reusing conversation history
Load docs/js/conversation-store.js as a classic script. Give each editor its own store.
Use ConversationStore.forBrowser() for local storage or ConversationStore.forProject(vfs)
for files in a workspace. Both use the same keys and saved turns.
const history = ConversationStore.forProject(await vfsReady);
const key = ConversationStore.key({ chatProvider: "browser" }, "/Notes/");
const turns = await history.read(key);
turns.push({ prompt: "First question", messages: [] });
await history.save(key, turns);
Reading a saved streaming turn recovers its partial assistant reply in memory. Saving compares
the stored contents with the editor's last read or successful save. A stale save rejects with
code === "EEXIST" and leaves the newer conversation available to read. An explicit clear(key)
can replace a malformed conversation after a read attempt and performs the same conflict check.
The browser adapter coordinates simultaneous writers with Web Locks or an IndexedDB transaction.
A custom adapter can supply read(key), returning saved text or null, and
replace(key, expected, text), which must compare and replace atomically.
Running an agent with custom tools
Load docs/js/llm-client.js, docs/js/tool-registry.js, and docs/js/agent-runtime.js
as classic scripts. Each registry starts empty. Register a function definition and a handler
that receives the parsed arguments and the call context, including its cancellation signal.
const registry = new ToolRegistry();
registry.register({
type: "function",
function: {
name: "word_count",
description: "Count the words in a string.",
parameters: { type: "object", properties: { text: { type: "string" } }, required: ["text"] }
}
}, ({ text }) => text.trim().split(/\s+/).filter(Boolean).length);
const reply = await runAgent({
client: new LlmClient(), registry,
config: { chatProvider: "api", apihost: "http://localhost:11434", model: "your-model" },
messages: [{ role: "user", content: "Count the words in 'Welcome home'." }],
maxToolCalls: 1, signal: new AbortController().signal
});
registry.listTools(descriptions) returns the schemas with optional description overrides.
Pass a subset as tools to restrict a run. A refreshTools callback can narrow that subset
before each model request. The loop dispatches only the tool names advertised for that round.
Chat and the Tools settings page use docs/js/workstation-tools.js for the built-in catalog.
Editing a workbook outside the Table page
Load the bundled LosslessJSON script followed by table-formats.js, table-formulas.js,
table-charts.js, and workbook.js from docs/js/. A Workbook operates on the
same worksheets used by the XLSX reader and writer. Row and column indices start at zero.
const data = Workbook.createSheet("Data", 2, 1);
const summary = Workbook.createSheet("Summary", 1, 1);
const book = new Workbook([data, summary]);
book.editCells([{row: 1, column: 0, value: 7}]);
book.selectSheet(summary);
book.editCells([{row: 0, column: 0, value: new tableCalc.Formula("=Data!A2")}]);
book.selectSheet(data);
book.insertRows(1);
summary.rows[0][0].expression; // "=Data!A3"
book.calculator(summary, 0, 0); // 7
book.undo(); // Restores the row and "=Data!A2"
Structural edits update formulas across sheets and chart ranges on the edited sheet in one
history entry. undo() and redo() select the affected worksheet. markSaved() records
a checkpoint. dirty includes formatting changes, while dataDirty tracks edits to the data.
Development checks
Serve the repository root with a static server to open the relevant browser checks in tests/.
Open tests/vfs-instance.html to check database isolation, reset handling, and the Explorer and project write policies.
Open tests/project-catalog.html to check app discovery, pinning, and concurrent manifest edits.
Open tests/conversation-store.html to check saved replies, interrupted streams, and competing edits on both storage backends.
Open tests/workspace-run-store.html to check run ownership, rollback at lease expiry, and restore across workspaces.
Run node --test tools/test-library-activation.cjs to check skill search and activation.
The browser loads its default workspace from docs/vfs-preload.js, including when GitHub Pages publishes docs/.
Run python3 tools/sync-vfs-preload.py when bundled files change. It also records manual revisions so existing
workspaces can update unchanged chapters and keep local edits. When the manual edition changes, run
python3 tools/sync-chat-assets.py to refresh the bundled VFS script. To read the raw files when serving the repository root, set globalThis.VFS_PRELOAD_URL to
../vfs-preload.json before loading docs/js/vfs.js.
SUSI Builder is distributed under the MIT license. The VFS source, bundled libraries, and fonts carry their own license notices. License
관련 프로젝트 살펴보기
불러오는 중…