Self-host Srcbook
0.0.19TypeScript notebook with AI that runs locally
- Stars
- 3 437
- Port
- 2150 (web interface)
- Requires
- SQLite (better-sqlite3)
What is Srcbook?
Srcbook is a TypeScript notebook you run on your own machine. It provides a web-based interface where you create and execute notebooks backed by a local Node.js process, giving you full access to the file system, databases, and network. Notebooks can be exported as Markdown (.src.md) and shared. AI features assist with writing and editing code, though you must supply your own Anthropic API key. Mermaid diagramming adds visual annotations. Installation options include npx (always current), a global npm/pnpm install, or building the Docker image from source. The project uses a local SQLite database for persistence and collects optional usage analytics that can be disabled. The maintainers note the project is not under active development. Licensed Apache-2.0.
Should you self-host Srcbook?
Srcbook scores 51/100 on selfhost.directory (how scoring works) and ranks #72 of 166 in Developer Tools. It has 3 437 GitHub stars.
There was no stable release in the past 12 months, so check the repository's recent activity before you rely on it.
Setup is easy: most people get it running in one sitting. It is Apache-2.0-licensed and written mostly in Typescript.
Its closest alternative on selfhost.directory is openhands (87/100, 92 079 stars). It scores higher overall, so compare the two before you pick. See Srcbook vs openhands side by side.
Features
- AI-assisted codingRequires user-provided Anthropic API key
- Export to Markdown
- Local Node.js execution
- Mermaid diagramming
- Optional analytics opt-out
- TypeScript notebooks
Srcbook README
FAQ
Can I write React Components or other UI logic in Srcbook?
Currently no, because code runs in Node.js not the browser; UI component rendering is not supported yet but is being designed.
How is Srcbook different from Observable?
Srcbook runs code in Node.js (backend-capable) while Observable runs in the browser; Srcbook targets everyday software development (learning, exploring npm, testing APIs) while Observable targets data visualization and dashboards.
More in Notes & Editors
standalone-rpiSelf-hosted Standard Notes syncing infrastructure packaged for Raspberry Pi using Docker Compose with Caddy, MariaDB, and Redis. Open-source under MIT license.
Standard NotesOpen-source encryption app for notes. Self-hosted backend enables private secure note-taking with end-to-end encryption on your own infrastructure.
Standard NotesSelf-hosted, open-source note-taking app with end-to-end encryption, cross-platform sync on unlimited devices, extensible note types, and a plugin system.
Super ProductivityFree, open-source, local-first to-do app with timeboxing, time tracking, planner and Kanban boards; self-host the web app via Docker or SuperSync.
surfsenseSelf-hosted, open-source NotebookLM alternative: an air-gapped desktop AI agent that researches, edits and transforms your documents with any local or hosted model.
TagSpacesOpen-source, offline-first file manager for tagging, notes and search over local folders or S3 buckets, shipped as desktop apps and a self-hosted web app.
TeamMapperSelf-hosted mindmapping with real-time collaboration via WebSockets. Supports images, pictograms, import/export, QR sharing, and auto-deletion after 30 days.
textpodTextpod is a self-hosted, open-source note-taking application that stores all notes in a single Markdown file with search, filtering, and web page archiving capabilities.
ThoughtDAGThoughtDAG is an open-source, self-hostable AI chat canvas: every exchange is a graph node, and its wires decide the context your model receives next.
TinyListTinyList is a self-hosted, open-source PWA for checklists and notes that works offline, requires no registration, and syncs via your own CouchDB instance.
TracksOpen-source, self-hosted Getting Things Done web app built on Ruby on Rails with contexts, projects, tagging, stats, feeds, API and multi-user support.
Trilium NotesBuild your personal knowledge base with Trilium Notes
0 comments