generated from stackblitz-labs/bolt.diy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 6d7296f
Showing
227 changed files
with
31,636 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Ignore Git and GitHub files | ||
.git | ||
.github/ | ||
|
||
# Ignore Husky configuration files | ||
.husky/ | ||
|
||
# Ignore documentation and metadata files | ||
CONTRIBUTING.md | ||
LICENSE | ||
README.md | ||
|
||
# Ignore environment examples and sensitive info | ||
.env | ||
*.local | ||
*.example | ||
|
||
# Ignore node modules, logs and cache files | ||
**/*.log | ||
**/node_modules | ||
**/dist | ||
**/build | ||
**/.cache | ||
logs | ||
dist-ssr | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
max_line_length = 120 | ||
indent_size = 2 | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
# Rename this file to .env once you have filled in the below environment variables! | ||
|
||
# Get your GROQ API Key here - | ||
# https://console.groq.com/keys | ||
# You only need this environment variable set if you want to use Groq models | ||
GROQ_API_KEY= | ||
|
||
# Get your HuggingFace API Key here - | ||
# https://huggingface.co/settings/tokens | ||
# You only need this environment variable set if you want to use HuggingFace models | ||
HuggingFace_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 | ||
# You only need this environment variable set if you want to use GPT models | ||
OPENAI_API_KEY= | ||
|
||
# Get your Anthropic API Key in your account settings - | ||
# https://console.anthropic.com/settings/keys | ||
# You only need this environment variable set if you want to use Claude models | ||
ANTHROPIC_API_KEY= | ||
|
||
# Get your OpenRouter API Key in your account settings - | ||
# https://openrouter.ai/settings/keys | ||
# You only need this environment variable set if you want to use OpenRouter models | ||
OPEN_ROUTER_API_KEY= | ||
|
||
# Get your Google Generative AI API Key by following these instructions - | ||
# https://console.cloud.google.com/apis/credentials | ||
# You only need this environment variable set if you want to use Google Generative AI models | ||
GOOGLE_GENERATIVE_AI_API_KEY= | ||
|
||
# You only need this environment variable set if you want to use oLLAMA models | ||
# EXAMPLE http://localhost:11434 | ||
OLLAMA_API_BASE_URL= | ||
|
||
# You only need this environment variable set if you want to use OpenAI Like models | ||
OPENAI_LIKE_API_BASE_URL= | ||
|
||
# You only need this environment variable set if you want to use Together AI models | ||
TOGETHER_API_BASE_URL= | ||
|
||
# You only need this environment variable set if you want to use DeepSeek models through their API | ||
DEEPSEEK_API_KEY= | ||
|
||
# Get your OpenAI Like API Key | ||
OPENAI_LIKE_API_KEY= | ||
|
||
# Get your Together API Key | ||
TOGETHER_API_KEY= | ||
|
||
# Get your Mistral API Key by following these instructions - | ||
# https://console.mistral.ai/api-keys/ | ||
# You only need this environment variable set if you want to use Mistral models | ||
MISTRAL_API_KEY= | ||
|
||
# Get the Cohere Api key by following these instructions - | ||
# https://dashboard.cohere.com/api-keys | ||
# You only need this environment variable set if you want to use Cohere models | ||
COHERE_API_KEY= | ||
|
||
# Get LMStudio Base URL from LM Studio Developer Console | ||
# Make sure to enable CORS | ||
# Example: http://localhost:1234 | ||
LMSTUDIO_API_BASE_URL= | ||
|
||
# Get your xAI API key | ||
# https://x.ai/api | ||
# You only need this environment variable set if you want to use xAI models | ||
XAI_API_KEY= | ||
|
||
# Get your Perplexity API Key here - | ||
# https://www.perplexity.ai/settings/api | ||
# You only need this environment variable set if you want to use Perplexity models | ||
PERPLEXITY_API_KEY= | ||
|
||
# Include this environment variable if you want more logging for debugging locally | ||
VITE_LOG_LEVEL=debug | ||
|
||
# Example Context Values for qwen2.5-coder:32b | ||
# | ||
# DEFAULT_NUM_CTX=32768 # Consumes 36GB of VRAM | ||
# DEFAULT_NUM_CTX=24576 # Consumes 32GB of VRAM | ||
# DEFAULT_NUM_CTX=12288 # Consumes 26GB of VRAM | ||
# DEFAULT_NUM_CTX=6144 # Consumes 24GB of VRAM | ||
DEFAULT_NUM_CTX= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
name: "Bug report" | ||
description: Create a report to help us improve | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Thank you for reporting an issue :pray:. | ||
This issue tracker is for bugs and issues found with [Bolt.new](https://bolt.new). | ||
If you experience issues related to WebContainer, please file an issue in our [WebContainer repo](https://github.com/stackblitz/webcontainer-core), or file an issue in our [StackBlitz core repo](https://github.com/stackblitz/core) for issues with StackBlitz. | ||
The more information you fill in, the better we can help you. | ||
- type: textarea | ||
id: description | ||
attributes: | ||
label: Describe the bug | ||
description: Provide a clear and concise description of what you're running into. | ||
validations: | ||
required: true | ||
- type: input | ||
id: link | ||
attributes: | ||
label: Link to the Bolt URL that caused the error | ||
description: Please do not delete it after reporting! | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: steps | ||
attributes: | ||
label: Steps to reproduce | ||
description: Describe the steps we have to take to reproduce the behavior. | ||
placeholder: | | ||
1. Go to '...' | ||
2. Click on '....' | ||
3. Scroll down to '....' | ||
4. See error | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: expected | ||
attributes: | ||
label: Expected behavior | ||
description: Provide a clear and concise description of what you expected to happen. | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: screenshots | ||
attributes: | ||
label: Screen Recording / Screenshot | ||
description: If applicable, **please include a screen recording** (preferably) or screenshot showcasing the issue. This will assist us in resolving your issue <u>quickly</u>. | ||
- type: textarea | ||
id: platform | ||
attributes: | ||
label: Platform | ||
value: | | ||
- OS: [e.g. macOS, Windows, Linux] | ||
- Browser: [e.g. Chrome, Safari, Firefox] | ||
- Version: [e.g. 91.1] | ||
- type: input | ||
id: provider | ||
attributes: | ||
label: Provider Used | ||
description: Tell us the provider you are using. | ||
- type: input | ||
id: model | ||
attributes: | ||
label: Model Used | ||
description: Tell us the model you are using. | ||
- type: textarea | ||
id: additional | ||
attributes: | ||
label: Additional context | ||
description: Add any other context about the problem here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
blank_issues_enabled: false | ||
contact_links: | ||
- name: Bolt.new related issues | ||
url: https://github.com/stackblitz/bolt.new/issues/new/choose | ||
about: Report issues related to Bolt.new (not Bolt.diy) | ||
- name: Chat | ||
url: https://thinktank.ottomator.ai | ||
about: Ask questions and discuss with other Bolt.diy users. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
--- | ||
|
||
**Is your feature request related to a problem? Please describe:** | ||
|
||
<!-- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] --> | ||
|
||
**Describe the solution you'd like:** | ||
|
||
<!-- A clear and concise description of what you want to happen. --> | ||
|
||
**Describe alternatives you've considered:** | ||
|
||
<!-- A clear and concise description of any alternative solutions or features you've considered. --> | ||
|
||
**Additional context:** | ||
|
||
<!-- Add any other context or screenshots about the feature request here. --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Setup and Build | ||
description: Generic setup action | ||
inputs: | ||
pnpm-version: | ||
required: false | ||
type: string | ||
default: '9.4.0' | ||
node-version: | ||
required: false | ||
type: string | ||
default: '20.15.1' | ||
|
||
runs: | ||
using: composite | ||
|
||
steps: | ||
- uses: pnpm/action-setup@v4 | ||
with: | ||
version: ${{ inputs.pnpm-version }} | ||
run_install: false | ||
|
||
- name: Set Node.js version to ${{ inputs.node-version }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ inputs.node-version }} | ||
cache: pnpm | ||
|
||
- name: Install dependencies and build project | ||
shell: bash | ||
run: | | ||
pnpm install | ||
pnpm run build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: CI/CD | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
|
||
jobs: | ||
test: | ||
name: Test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup and Build | ||
uses: ./.github/actions/setup-and-build | ||
|
||
- name: Run type check | ||
run: pnpm run typecheck | ||
|
||
# - name: Run ESLint | ||
# run: pnpm run lint | ||
|
||
- name: Run tests | ||
run: pnpm run test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Update Commit Hash File | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
update-commit: | ||
if: contains(github.event.head_commit.message, '#release') != true | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout the code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20' | ||
- name: Get the latest commit hash | ||
run: | | ||
echo "COMMIT_HASH=$(git rev-parse HEAD)" >> $GITHUB_ENV | ||
echo "CURRENT_VERSION=$(node -p "require('./package.json').version")" >> $GITHUB_ENV | ||
- name: Update commit file | ||
run: | | ||
echo "{ \"commit\": \"$COMMIT_HASH\", \"version\": \"$CURRENT_VERSION\" }" > app/commit.json | ||
- name: Commit and push the update | ||
run: | | ||
git config --global user.name "github-actions[bot]" | ||
git config --global user.email "github-actions[bot]@users.noreply.github.com" | ||
git add app/commit.json | ||
git commit -m "chore: update commit hash to $COMMIT_HASH" | ||
git push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Docs CI/CD | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
permissions: | ||
contents: write | ||
jobs: | ||
build_docs: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: ./docs | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Configure Git Credentials | ||
run: | | ||
git config user.name github-actions[bot] | ||
git config user.email 41898282+github-actions[bot]@users.noreply.github.com | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.x | ||
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV | ||
- uses: actions/cache@v4 | ||
with: | ||
key: mkdocs-material-${{ env.cache_id }} | ||
path: .cache | ||
restore-keys: | | ||
mkdocs-material- | ||
- run: pip install mkdocs-material | ||
- run: mkdocs gh-deploy --force |
Oops, something went wrong.