Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

TypeScript-centric app development platform: notebook and AI app builder

License

NotificationsYou must be signed in to change notification settings

srcbookdev/srcbook

Repository files navigation

Srcbook banner

npm versionApache 2.0 license

Online app builder ·Discord ·Youtube ·Hub

Srcbook

Srcbook is a TypeScript-centric app development platform, with 2 main products:

  • an AI app builder (also availablehosted online)
  • a TypeScript notebook

Srcbook is open-source (apache2) and runs locally on your machine. You'll need to bring your own API key for AI usage (we strongly recommend Anthropic withclaude-3-5-sonnet-latest).

Features

App Builder

  • AI app builder for TypeScript
  • Create, edit and run web apps
  • Use AI to generate the boilerplate, modify the code, and fix things
  • Edit the app with a hot-reloading web preview
Example Srcbook

Notebooks

  • Create, run, and share TypeScript notebooks
  • Export to valid markdown format (.src.md)
  • AI features for exploring and iterating on ideas
  • Diagraming withmermaid for rich annotations
  • Local execution with a web interface
  • Powered by Node.js
Example Srcbook

FAQ

SeeFAQ.

Getting Started

Srcbook runs locally on your machine as a CLI application with a web interface.

Requirements

  • Node 18+, we recommend usingnvm to manage local node versions
  • corepack to manage package manager versions

Installing

We recommend using npx to always run the latest version from npm

# Using npmnpx srcbook@latest start# Using your pm equivalentpnpm dlx srcbook@latest start

You can instead use a global install with<pkg manager> i -g srcbookand then directly call srcbook withsrcbook start

Using Docker

You can also run Srcbook using Docker:

# Build the Docker imagedocker build -t srcbook.# Run the container# The -p flag maps port 2150 from the container to your host machine# First -v flag mounts your local .srcbook directory to persist data# Second -v flag shares your npm cache for better performancedocker run -p 2150:2150 -v~/.srcbook:/root/.srcbook -v~/.npm:/root/.npm srcbook

Make sure to set up your API key after starting the container. You can do this through the web interface athttp://localhost:2150.

Current Commands

$ srcbook -hUsage: srcbook [options] [command]Srcbook is a interactive programming environmentfor TypeScriptOptions:  -V, --version                 output the version number  -h, --help                    displayhelpforcommandCommands:  start [options]               Start the Srcbook server  import [options]<specifier>  Import a Notebookhelp [command]                displayhelpforcommand

Uninstalling

You can remove srcbook by first removing the package, and then cleaning it's local directory on disk:

rm -rf~/.srcbook# if you configured a global installnpm uninstall -g srcbook

if you used another pm you will need to use it's specific uninstall command

Analytics and tracking

In order to improve Srcbook, we collect some behavioral analytics. We don't collect any Personal Identifiable Information (PII), our goals are simply to improve the application. The code is open source so you don't have to trust us, you can verify! You can find more information in ourprivacy policy.

If you want to disable tracking, you can run Srcbook withSRCBOOK_DISABLE_ANALYTICS=true set in the environment.

Contributing

For development instructions, seeCONTRIBUTING.md.

About

TypeScript-centric app development platform: notebook and AI app builder

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors16


[8]ページ先頭

©2009-2025 Movatter.jp