From 316c210e86c8d506b7f69844d998e92b6d32a7ef Mon Sep 17 00:00:00 2001 From: Dustin Loring Date: Sun, 15 Dec 2024 15:17:05 -0500 Subject: [PATCH 01/17] Update mkdocs.yml changed Bolt to bolt --- docs/mkdocs.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/mkdocs.yml b/docs/mkdocs.yml index 1153f8b..6b693a1 100644 --- a/docs/mkdocs.yml +++ b/docs/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Bolt.diy Docs +site_name: bolt.diy Docs site_dir: ../site theme: name: material @@ -31,7 +31,7 @@ theme: repo: fontawesome/brands/github # logo: assets/logo.png # favicon: assets/logo.png -repo_name: Bolt.diy +repo_name: bolt.diy repo_url: https://github.com/stackblitz-labs/bolt.diy edit_uri: "" @@ -40,16 +40,16 @@ extra: social: - icon: fontawesome/brands/github link: https://github.com/stackblitz-labs/bolt.diy - name: Bolt.diy + name: bolt.diy - icon: fontawesome/brands/discourse link: https://thinktank.ottomator.ai/ - name: Bolt.diy Discourse + name: bolt.diy Discourse - icon: fontawesome/brands/x-twitter link: https://x.com/bolt_diy - name: Bolt.diy on X + name: bolt.diy on X - icon: fontawesome/brands/bluesky link: https://bsky.app/profile/bolt.diy - name: Bolt.diy on Bluesky + name: bolt.diy on Bluesky From fb8191ebb0d069643442d606a1f56ca24d121912 Mon Sep 17 00:00:00 2001 From: Dustin Loring Date: Sun, 15 Dec 2024 15:20:22 -0500 Subject: [PATCH 02/17] Update vite.config.ts added v3_lazyRouteDiscovery to the fvite.config.ts without any side effects. this removes the warning in terminal --- vite.config.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vite.config.ts b/vite.config.ts index 0313812..f18b8b9 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -19,7 +19,8 @@ export default defineConfig((config) => { future: { v3_fetcherPersist: true, v3_relativeSplatPath: true, - v3_throwAbortReason: true + v3_throwAbortReason: true, + v3_lazyRouteDiscovery: true }, }), UnoCSS(), From 2819911b9627d4e26d2acbbd01f1bf60036845fe Mon Sep 17 00:00:00 2001 From: Dustin Loring Date: Sun, 15 Dec 2024 15:25:31 -0500 Subject: [PATCH 03/17] Update constants.ts fixes the 'WARN Constants Failed to get LMStudio models: fetch failed' error as the user most likely just has it active in provider --- app/utils/constants.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/utils/constants.ts b/app/utils/constants.ts index 24c8668..75f4090 100644 --- a/app/utils/constants.ts +++ b/app/utils/constants.ts @@ -499,8 +499,6 @@ async function getLMStudioModels(_apiKeys?: Record, settings?: I })); } catch (e: any) { logStore.logError('Failed to get LMStudio models', e, { baseUrl: settings?.baseUrl }); - logger.warn('Failed to get LMStudio models: ', e.message || ''); - return []; } } From 15f624e0eee5e5d61eebfc1a2444a07243c711a9 Mon Sep 17 00:00:00 2001 From: Dustin Loring Date: Sun, 15 Dec 2024 15:31:07 -0500 Subject: [PATCH 04/17] add: a fav.ico Added a fav.ico --- public/favicon.ico | Bin 0 -> 4286 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 public/favicon.ico diff --git a/public/favicon.ico b/public/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..333e9d11efe8ff015aad6ab9b3789da77a23b993 GIT binary patch literal 4286 zcmc(jT}u>E7{^cFpsTKhZo29-^hGi=B#Wqv0t?HipmHl;iYTGdFl;j_5FzY^=t7E6 z>cZ+Gh4P~JVijFmjQ%}8$DwhZ)X_7uXL)AMp4mD7=lsv}cGkId_Nl6JTwQ*>a~qs< zn@nuTZ82eduGzDVn*#|3oYNmkZ^xy!JJPOpXBL+r**sXArc=(@l-W-wA!%n@WpwC$DwSrXdxKJ4YqoyF9vthICZ?sCl9YcU?Kqbm5BLoJGW(?)q@+~;%ek9HQ4s<9O7nl1b{Bx=Id_9AMgIA?*g#e%Hj|r*$ZaVnj zl}oMhJvj0YpWf%6Qm)sZJ%Wk9o$QfLo8L#})J^IBi-q`n8~-YuxZx*0flquKFkhdv zJ)SHsl;W?&_>7Ewl$yHy_yl=se~0vPG#=}Jqazlh8m@TK!FXUU;$D*WYD_v{y2ImI zZJ#-g7^kDgZCqn7%J+xw4~GLA@}UEMf81>A!SgFj(>#X%iZB_x!)vt&KYH;wGjEW z#bQZTJ`-IBn4JAM12$eW9TIRBoo6+Du)qw@z;EWyp-IkTtHI?RFv4})`8)g{pi=k0 DfdM3B literal 0 HcmV?d00001 From 1c3582c4406ce288300f80d9dcf0c7791626eb4c Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 15 Dec 2024 20:34:30 +0000 Subject: [PATCH 05/17] chore: update commit hash to 1e7c3a4ff8f3153f53e0b0ed7cb13434825e41d9 --- app/commit.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/commit.json b/app/commit.json index f60467a..0b9ba3f 100644 --- a/app/commit.json +++ b/app/commit.json @@ -1 +1 @@ -{ "commit": "4016f54933102bf67336b8ae58e14673dfad72ee" } +{ "commit": "1e7c3a4ff8f3153f53e0b0ed7cb13434825e41d9" } From e9376db70592a7b7a4432c3c20be70e37ccfded9 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 15 Dec 2024 20:42:22 +0000 Subject: [PATCH 06/17] chore: update commit hash to d75899d737243cd7303704adef16d77290de5a0b --- app/commit.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/commit.json b/app/commit.json index 0b9ba3f..ee1a6f0 100644 --- a/app/commit.json +++ b/app/commit.json @@ -1 +1 @@ -{ "commit": "1e7c3a4ff8f3153f53e0b0ed7cb13434825e41d9" } +{ "commit": "d75899d737243cd7303704adef16d77290de5a0b" } From a340611310cc15e806d795fc5386a5151519c78e Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 15 Dec 2024 20:43:21 +0000 Subject: [PATCH 07/17] chore: update commit hash to b5867835f5da5c93bd9a8376df9e9d32b97acff5 --- app/commit.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/commit.json b/app/commit.json index ee1a6f0..e212929 100644 --- a/app/commit.json +++ b/app/commit.json @@ -1 +1 @@ -{ "commit": "d75899d737243cd7303704adef16d77290de5a0b" } +{ "commit": "b5867835f5da5c93bd9a8376df9e9d32b97acff5" } From 02621e3545511ca8bc0279b70f92083218548655 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 15 Dec 2024 20:50:39 +0000 Subject: [PATCH 08/17] chore: update commit hash to d22b32ae636b9f134cdb5f96a10e4398aa2171b7 --- app/commit.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/commit.json b/app/commit.json index e212929..d74ab42 100644 --- a/app/commit.json +++ b/app/commit.json @@ -1 +1 @@ -{ "commit": "b5867835f5da5c93bd9a8376df9e9d32b97acff5" } +{ "commit": "d22b32ae636b9f134cdb5f96a10e4398aa2171b7" } From a053bfc96fa69a4dda77b7dd2f29a05badd3daf2 Mon Sep 17 00:00:00 2001 From: Dustin Loring Date: Sun, 15 Dec 2024 16:04:32 -0500 Subject: [PATCH 09/17] doc: mkdoc consistent style used a consistent style throughout the mkdoc's when separating sections --- docs/docs/CONTRIBUTING.md | 26 ++++++++++++++++++++++++++ docs/docs/index.md | 14 ++++++++++++++ 2 files changed, 40 insertions(+) diff --git a/docs/docs/CONTRIBUTING.md b/docs/docs/CONTRIBUTING.md index ce6d9f5..226fcd0 100644 --- a/docs/docs/CONTRIBUTING.md +++ b/docs/docs/CONTRIBUTING.md @@ -8,10 +8,14 @@ - [Development Setup](#development-setup) - [Deploymnt with Docker](#docker-deployment-documentation) +--- + ## Code of Conduct This project and everyone participating in it is governed by our Code of Conduct. By participating, you are expected to uphold this code. Please report unacceptable behavior to the project maintainers. +--- + ## How Can I Contribute? ### 🐞 Reporting Bugs and Feature Requests @@ -29,6 +33,8 @@ This project and everyone participating in it is governed by our Code of Conduct ### ✨ Becoming a Core Contributor We're looking for dedicated contributors to help maintain and grow this project. If you're interested in becoming a core contributor, please fill out our [Contributor Application Form](https://forms.gle/TBSteXSDCtBDwr5m7). +--- + ## Pull Request Guidelines ### 📝 PR Checklist @@ -43,6 +49,8 @@ We're looking for dedicated contributors to help maintain and grow this project. 3. Address all review comments 4. Maintain clean commit history +--- + ## Coding Standards ### 💻 General Guidelines @@ -51,6 +59,8 @@ We're looking for dedicated contributors to help maintain and grow this project. - Keep functions focused and small - Use meaningful variable names +--- + ## Development Setup ### 🔄 Initial Setup @@ -100,6 +110,8 @@ pnpm run dev **Note**: You will need Google Chrome Canary to run this locally if you use Chrome! It's an easy install and a good browser for web development anyway. +--- + ## Testing Run the test suite with: @@ -108,6 +120,8 @@ Run the test suite with: pnpm test ``` +--- + ## Deployment To deploy the application to Cloudflare Pages: @@ -118,6 +132,8 @@ pnpm run deploy Make sure you have the necessary permissions and Wrangler is correctly configured for your Cloudflare account. +--- + # Docker Deployment Documentation This guide outlines various methods for building and deploying the application using Docker. @@ -172,6 +188,8 @@ docker run -p 5173:5173 --env-file .env.local bolt-ai:development docker run -p 5173:5173 --env-file .env.local bolt-ai:production ``` +--- + ## Deployment with Coolify [Coolify](https://github.com/coollabsio/coolify) provides a straightforward deployment process: @@ -189,6 +207,8 @@ docker run -p 5173:5173 --env-file .env.local bolt-ai:production - Adjust other environment variables as needed 7. Deploy the application +--- + ## VS Code Integration The `docker-compose.yaml` configuration is compatible with VS Code dev containers: @@ -197,6 +217,8 @@ The `docker-compose.yaml` configuration is compatible with VS Code dev container 2. Select the dev container configuration 3. Choose the "development" profile from the context menu +--- + ## Environment Files Ensure you have the appropriate `.env.local` file configured before running the containers. This file should contain: @@ -204,12 +226,16 @@ Ensure you have the appropriate `.env.local` file configured before running the - Environment-specific configurations - Other required environment variables +--- + ## DEFAULT_NUM_CTX The `DEFAULT_NUM_CTX` environment variable can be used to limit the maximum number of context values used by the qwen2.5-coder model. For example, to limit the context to 24576 values (which uses 32GB of VRAM), set `DEFAULT_NUM_CTX=24576` in your `.env.local` file. First off, thank you for considering contributing to bolt.diy! This fork aims to expand the capabilities of the original project by integrating multiple LLM providers and enhancing functionality. Every contribution helps make bolt.diy a better tool for developers worldwide. +--- + ## Notes - Port 5173 is exposed and mapped for both development and production environments diff --git a/docs/docs/index.md b/docs/docs/index.md index 029444b..ae9442f 100644 --- a/docs/docs/index.md +++ b/docs/docs/index.md @@ -9,6 +9,8 @@ https://thinktank.ottomator.ai bolt.diy is an AI-powered web development agent that allows you to prompt, run, edit, and deploy full-stack applications directly from your browser—no local setup required. If you're here to build your own AI-powered web dev agent using the Bolt open source codebase, [click here to get started!](./CONTRIBUTING.md) +--- + ## What Makes bolt.diy Different Claude, v0, etc are incredible- but you can't install packages, run backends, or edit code. That’s where bolt.diy stands out: @@ -26,6 +28,8 @@ Whether you’re an experienced developer, a PM, or a designer, bolt.diy allows For developers interested in building their own AI-powered development tools with WebContainers, check out the open-source Bolt codebase in this repo! +--- + ## Setup Many of you are new users to installing software from Github. If you have any installation troubles reach out and submit an "issue" using the links above, or feel free to enhance this documentation by forking, editing the instructions, and doing a pull request. @@ -128,6 +132,8 @@ When you run the Docker Compose command with the development profile, any change make on your machine to the code will automatically be reflected in the site running on the container (i.e. hot reloading still applies!). +--- + ## Run Without Docker 1. Install dependencies using Terminal (or CMD in Windows with admin permissions): @@ -148,6 +154,8 @@ sudo npm install -g pnpm pnpm run dev ``` +--- + ## Adding New LLMs: To make new LLMs available to use in this version of bolt.diy, head on over to `app/utils/constants.ts` and find the constant MODEL_LIST. Each element in this array is an object that has the model ID for the name (get this from the provider's API documentation), a label for the frontend model dropdown, and the provider. @@ -156,6 +164,8 @@ By default, Anthropic, OpenAI, Groq, and Ollama are implemented as providers, bu When you add a new model to the MODEL_LIST array, it will immediately be available to use when you run the app locally or reload it. For Ollama models, make sure you have the model installed already before trying to use it here! +--- + ## Available Scripts - `pnpm run dev`: Starts the development server. @@ -167,6 +177,8 @@ When you add a new model to the MODEL_LIST array, it will immediately be availab - `pnpm run typegen`: Generates TypeScript types using Wrangler. - `pnpm run deploy`: Builds the project and deploys it to Cloudflare Pages. +--- + ## Development To start the development server: @@ -177,6 +189,8 @@ pnpm run dev This will start the Remix Vite development server. You will need Google Chrome Canary to run this locally if you use Chrome! It's an easy install and a good browser for web development anyway. +--- + ## Tips and Tricks Here are some tips to get the most out of bolt.diy: From f34c173aaa8190d2285f0812b6aab2a37d072543 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 15 Dec 2024 21:37:17 +0000 Subject: [PATCH 10/17] chore: update commit hash to d9b2801434011b60dca700c19cabd0652f31f8e4 --- app/commit.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/commit.json b/app/commit.json index d74ab42..eefbf12 100644 --- a/app/commit.json +++ b/app/commit.json @@ -1 +1 @@ -{ "commit": "d22b32ae636b9f134cdb5f96a10e4398aa2171b7" } +{ "commit": "d9b2801434011b60dca700c19cabd0652f31f8e4" } From 2119a9203166e2a47b2e981f145cafe5320a7fc5 Mon Sep 17 00:00:00 2001 From: Dustin Loring Date: Sun, 15 Dec 2024 16:41:25 -0500 Subject: [PATCH 11/17] doc: new section heading small update --- docs/docs/index.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/docs/index.md b/docs/docs/index.md index ae9442f..5667273 100644 --- a/docs/docs/index.md +++ b/docs/docs/index.md @@ -1,10 +1,14 @@ # Welcome to bolt diy bolt.diy allows you to choose the LLM that you use for each prompt! Currently, you can use OpenAI, Anthropic, Ollama, OpenRouter, Gemini, LMStudio, Mistral, xAI, HuggingFace, DeepSeek, or Groq models - and it is easily extended to use any other model supported by the Vercel AI SDK! See the instructions below for running this locally and extending it to include more models. -Join the community! +--- + +## Join the community! https://thinktank.ottomator.ai +--- + ## Whats bolt.diy bolt.diy is an AI-powered web development agent that allows you to prompt, run, edit, and deploy full-stack applications directly from your browser—no local setup required. If you're here to build your own AI-powered web dev agent using the Bolt open source codebase, [click here to get started!](./CONTRIBUTING.md) From a6fa133321c2789dde0858b2e9de2ad60e444b76 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 15 Dec 2024 21:43:20 +0000 Subject: [PATCH 12/17] chore: update commit hash to 0157fddc76fd5eebc545085e2c3c4ab37d9ca925 --- app/commit.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/commit.json b/app/commit.json index eefbf12..fd6d6d2 100644 --- a/app/commit.json +++ b/app/commit.json @@ -1 +1 @@ -{ "commit": "d9b2801434011b60dca700c19cabd0652f31f8e4" } +{ "commit": "0157fddc76fd5eebc545085e2c3c4ab37d9ca925" } From 66a445d548f24b55f48961e9b4f9fb5b4d9715a7 Mon Sep 17 00:00:00 2001 From: Dustin Loring Date: Sun, 15 Dec 2024 16:50:03 -0500 Subject: [PATCH 13/17] doc: Make links clickable in docs Made links clickable in docs --- docs/docs/FAQ.md | 1 - docs/docs/index.md | 12 ++++++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/docs/docs/FAQ.md b/docs/docs/FAQ.md index 95c4c75..de1b4b1 100644 --- a/docs/docs/FAQ.md +++ b/docs/docs/FAQ.md @@ -23,7 +23,6 @@ Check out our [Contribution Guide](CONTRIBUTING.md) for more details on how to g --- - ## What are the future plans for bolt.diy? Visit our [Roadmap](https://roadmap.sh/r/ottodev-roadmap-2ovzo) for the latest updates. diff --git a/docs/docs/index.md b/docs/docs/index.md index 5667273..389e74f 100644 --- a/docs/docs/index.md +++ b/docs/docs/index.md @@ -5,7 +5,7 @@ bolt.diy allows you to choose the LLM that you use for each prompt! Currently, y ## Join the community! -https://thinktank.ottomator.ai +[Join the community!](https://thinktank.ottomator.ai) --- @@ -38,9 +38,9 @@ For developers interested in building their own AI-powered development tools wit Many of you are new users to installing software from Github. If you have any installation troubles reach out and submit an "issue" using the links above, or feel free to enhance this documentation by forking, editing the instructions, and doing a pull request. -1. Install Git from https://git-scm.com/downloads +1. [Install Git from](https://git-scm.com/downloads) -2. Install Node.js from https://nodejs.org/en/download/ +2. [Install Node.js from](https://nodejs.org/en/download/) Pay attention to the installer notes after completion. @@ -70,11 +70,11 @@ defaults write com.apple.finder AppleShowAllFiles YES **NOTE**: you only have to set the ones you want to use and Ollama doesn't need an API key because it runs locally on your computer: -Get your GROQ API Key here: https://console.groq.com/keys +[Get your GROQ API Key here](https://console.groq.com/keys) -Get your Open AI API Key by following these instructions: https://help.openai.com/en/articles/4936850-where-do-i-find-my-openai-api-key +[Get your Open AI API Key by following these instructions](https://help.openai.com/en/articles/4936850-where-do-i-find-my-openai-api-key) -Get your Anthropic API Key in your account settings: https://console.anthropic.com/settings/keys +Get your Anthropic API Key in your [account settings](https://console.anthropic.com/settings/keys) ``` GROQ_API_KEY=XXX From a69cda51236b7b71909381e441ed80696d37ffca Mon Sep 17 00:00:00 2001 From: Dustin Loring Date: Sun, 15 Dec 2024 16:52:11 -0500 Subject: [PATCH 14/17] Update CONTRIBUTING.md --- docs/docs/CONTRIBUTING.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/docs/CONTRIBUTING.md b/docs/docs/CONTRIBUTING.md index 226fcd0..7b18010 100644 --- a/docs/docs/CONTRIBUTING.md +++ b/docs/docs/CONTRIBUTING.md @@ -176,6 +176,8 @@ docker-compose --profile development up docker-compose --profile production up ``` +--- + ## Running the Application After building using any of the methods above, run the container with: From 9e1c44a8c9465fd3fb1aeb931d4c7f6ab9bbc3c6 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 15 Dec 2024 22:13:52 +0000 Subject: [PATCH 15/17] chore: update commit hash to 810cc81a16955eebec943f7d504749dbcbb85b25 --- app/commit.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/commit.json b/app/commit.json index fd6d6d2..cdc1186 100644 --- a/app/commit.json +++ b/app/commit.json @@ -1 +1 @@ -{ "commit": "0157fddc76fd5eebc545085e2c3c4ab37d9ca925" } +{ "commit": "810cc81a16955eebec943f7d504749dbcbb85b25" } From d0d0fcd88f294a96729f128e9bd202f501cda257 Mon Sep 17 00:00:00 2001 From: Dustin Loring Date: Sun, 15 Dec 2024 17:38:39 -0500 Subject: [PATCH 16/17] add: default provider icon Added and set a default provider icon --- app/components/settings/providers/ProvidersTab.tsx | 2 +- public/icons/Default.svg | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 public/icons/Default.svg diff --git a/app/components/settings/providers/ProvidersTab.tsx b/app/components/settings/providers/ProvidersTab.tsx index 1c6e87d..926a3c8 100644 --- a/app/components/settings/providers/ProvidersTab.tsx +++ b/app/components/settings/providers/ProvidersTab.tsx @@ -6,7 +6,7 @@ import type { IProviderConfig } from '~/types/model'; import { logStore } from '~/lib/stores/logs'; // Import a default fallback icon -import DefaultIcon from '/icons/Ollama.svg'; // Adjust the path as necessary +import DefaultIcon from '/icons/Default.svg'; // Adjust the path as necessary export default function ProvidersTab() { const { providers, updateProviderSettings, isLocalModel } = useSettings(); diff --git a/public/icons/Default.svg b/public/icons/Default.svg new file mode 100644 index 0000000..dd63997 --- /dev/null +++ b/public/icons/Default.svg @@ -0,0 +1,4 @@ + + + + From 960f532f8234663d0b3630d18033c959fac6882c Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 15 Dec 2024 22:52:33 +0000 Subject: [PATCH 17/17] chore: update commit hash to 6ba93974a02a98c83badf2f0002ff4812b8f75a9 --- app/commit.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/commit.json b/app/commit.json index cdc1186..d39a980 100644 --- a/app/commit.json +++ b/app/commit.json @@ -1 +1 @@ -{ "commit": "810cc81a16955eebec943f7d504749dbcbb85b25" } +{ "commit": "6ba93974a02a98c83badf2f0002ff4812b8f75a9" }