mirror of
https://github.com/harivansh-afk/asap.it.git
synced 2026-04-16 07:04:25 +00:00
feat: increase icon size and fix linting
This commit is contained in:
parent
eef7a6557f
commit
62b995490e
21 changed files with 166 additions and 139 deletions
|
|
@ -7,6 +7,7 @@ The `DEFAULT_NUM_CTX` environment variable can be used to limit the maximum numb
|
|||
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.
|
||||
|
||||
## 📋 Table of Contents
|
||||
|
||||
- [Code of Conduct](#code-of-conduct)
|
||||
- [How Can I Contribute?](#how-can-i-contribute)
|
||||
- [Pull Request Guidelines](#pull-request-guidelines)
|
||||
|
|
@ -21,29 +22,34 @@ This project and everyone participating in it is governed by our Code of Conduct
|
|||
## How Can I Contribute?
|
||||
|
||||
### 🐞 Reporting Bugs and Feature Requests
|
||||
|
||||
- Check the issue tracker to avoid duplicates
|
||||
- Use the issue templates when available
|
||||
- Include as much relevant information as possible
|
||||
- For bugs, add steps to reproduce the issue
|
||||
|
||||
### 🔧 Code Contributions
|
||||
|
||||
1. Fork the repository
|
||||
2. Create a new branch for your feature/fix
|
||||
3. Write your code
|
||||
4. Submit a pull request
|
||||
|
||||
### ✨ 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
|
||||
|
||||
- [ ] Branch from the main branch
|
||||
- [ ] Update documentation if needed
|
||||
- [ ] Manually verify all new functionality works as expected
|
||||
- [ ] Keep PRs focused and atomic
|
||||
|
||||
### 👀 Review Process
|
||||
|
||||
1. Manually test the changes
|
||||
2. At least one maintainer review required
|
||||
3. Address all review comments
|
||||
|
|
@ -52,6 +58,7 @@ We're looking for dedicated contributors to help maintain and grow this project.
|
|||
## Coding Standards
|
||||
|
||||
### 💻 General Guidelines
|
||||
|
||||
- Follow existing code style
|
||||
- Comment complex logic
|
||||
- Keep functions focused and small
|
||||
|
|
@ -60,12 +67,15 @@ We're looking for dedicated contributors to help maintain and grow this project.
|
|||
## Development Setup
|
||||
|
||||
### 🔄 Initial Setup
|
||||
|
||||
1. Clone the repository:
|
||||
|
||||
```bash
|
||||
git clone https://github.com/stackblitz-labs/bolt.diy.git
|
||||
```
|
||||
|
||||
2. Install dependencies:
|
||||
|
||||
```bash
|
||||
pnpm install
|
||||
```
|
||||
|
|
@ -73,6 +83,7 @@ pnpm install
|
|||
3. Set up environment variables:
|
||||
- Rename `.env.example` to `.env.local`
|
||||
- Add your LLM API keys (only set the ones you plan to use):
|
||||
|
||||
```bash
|
||||
GROQ_API_KEY=XXX
|
||||
HuggingFace_API_KEY=XXX
|
||||
|
|
@ -80,26 +91,30 @@ OPENAI_API_KEY=XXX
|
|||
ANTHROPIC_API_KEY=XXX
|
||||
...
|
||||
```
|
||||
- Optionally set debug level:
|
||||
|
||||
- Optionally set debug level:
|
||||
|
||||
```bash
|
||||
VITE_LOG_LEVEL=debug
|
||||
```
|
||||
|
||||
- Optionally set context size:
|
||||
- Optionally set context size:
|
||||
|
||||
```bash
|
||||
DEFAULT_NUM_CTX=32768
|
||||
```
|
||||
|
||||
Some Example Context Values for the qwen2.5-coder:32b models are.
|
||||
|
||||
* 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=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
|
||||
|
||||
**Important**: Never commit your `.env.local` file to version control. It's already included in .gitignore.
|
||||
|
||||
### 🚀 Running the Development Server
|
||||
|
||||
```bash
|
||||
pnpm run dev
|
||||
```
|
||||
|
|
@ -206,6 +221,7 @@ The `docker-compose.yaml` configuration is compatible with VS Code dev container
|
|||
## Environment Files
|
||||
|
||||
Ensure you have the appropriate `.env.local` file configured before running the containers. This file should contain:
|
||||
|
||||
- API keys
|
||||
- Environment-specific configurations
|
||||
- Other required environment variables
|
||||
|
|
|
|||
|
|
@ -6,14 +6,14 @@
|
|||
Mention the frameworks or libraries you want to use (e.g., Astro, Tailwind, ShadCN) in your initial prompt. This ensures that Bolt.diy scaffolds the project according to your preferences.
|
||||
|
||||
- **Use the enhance prompt icon**:
|
||||
Before sending your prompt, click the *enhance* icon to let the AI refine your prompt. You can edit the suggested improvements before submitting.
|
||||
Before sending your prompt, click the _enhance_ icon to let the AI refine your prompt. You can edit the suggested improvements before submitting.
|
||||
|
||||
- **Scaffold the basics first, then add features**:
|
||||
Ensure the foundational structure of your application is in place before introducing advanced functionality. This helps Bolt.diy establish a solid base to build on.
|
||||
|
||||
- **Batch simple instructions**:
|
||||
Combine simple tasks into a single prompt to save time and reduce API credit consumption. For example:
|
||||
*"Change the color scheme, add mobile responsiveness, and restart the dev server."*
|
||||
_"Change the color scheme, add mobile responsiveness, and restart the dev server."_
|
||||
|
||||
---
|
||||
|
||||
|
|
@ -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.
|
||||
|
|
@ -33,7 +32,7 @@ New features and improvements are on the way!
|
|||
|
||||
## Why are there so many open issues/pull requests?
|
||||
|
||||
Bolt.diy began as a small showcase project on @ColeMedin's YouTube channel to explore editing open-source projects with local LLMs. However, it quickly grew into a massive community effort!
|
||||
Bolt.diy began as a small showcase project on @ColeMedin's YouTube channel to explore editing open-source projects with local LLMs. However, it quickly grew into a massive community effort!
|
||||
|
||||
We’re forming a team of maintainers to manage demand and streamline issue resolution. The maintainers are rockstars, and we’re also exploring partnerships to help the project thrive.
|
||||
|
||||
|
|
@ -48,29 +47,35 @@ While local LLMs are improving rapidly, larger models like GPT-4o, Claude 3.5 So
|
|||
## Common Errors and Troubleshooting
|
||||
|
||||
### **"There was an error processing this request"**
|
||||
|
||||
This generic error message means something went wrong. Check both:
|
||||
|
||||
- The terminal (if you started the app with Docker or `pnpm`).
|
||||
- The developer console in your browser (press `F12` or right-click > *Inspect*, then go to the *Console* tab).
|
||||
- The developer console in your browser (press `F12` or right-click > _Inspect_, then go to the _Console_ tab).
|
||||
|
||||
---
|
||||
|
||||
### **"x-api-key header missing"**
|
||||
|
||||
This error is sometimes resolved by restarting the Docker container.
|
||||
If that doesn’t work, try switching from Docker to `pnpm` or vice versa. We’re actively investigating this issue.
|
||||
|
||||
---
|
||||
|
||||
### **Blank preview when running the app**
|
||||
|
||||
A blank preview often occurs due to hallucinated bad code or incorrect commands.
|
||||
To troubleshoot:
|
||||
|
||||
- Check the developer console for errors.
|
||||
- Remember, previews are core functionality, so the app isn’t broken! We’re working on making these errors more transparent.
|
||||
|
||||
---
|
||||
|
||||
### **"Everything works, but the results are bad"**
|
||||
|
||||
Local LLMs like Qwen-2.5-Coder are powerful for small applications but still experimental for larger projects. For better results, consider using larger models like GPT-4o, Claude 3.5 Sonnet, or DeepSeek Coder V2 236b.
|
||||
|
||||
---
|
||||
|
||||
Got more questions? Feel free to reach out or open an issue in our GitHub repo!
|
||||
Got more questions? Feel free to reach out or open an issue in our GitHub repo!
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
# 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!
|
||||
|
|
@ -14,13 +15,14 @@ Bolt.diy is an AI-powered web development agent that allows you to prompt, run,
|
|||
Claude, v0, etc are incredible- but you can't install packages, run backends, or edit code. That’s where Bolt.diy stands out:
|
||||
|
||||
- **Full-Stack in the Browser**: Bolt.diy integrates cutting-edge AI models with an in-browser development environment powered by **StackBlitz’s WebContainers**. This allows you to:
|
||||
|
||||
- Install and run npm tools and libraries (like Vite, Next.js, and more)
|
||||
- Run Node.js servers
|
||||
- Interact with third-party APIs
|
||||
- Deploy to production from chat
|
||||
- Share your work via a URL
|
||||
|
||||
- **AI with Environment Control**: Unlike traditional dev environments where the AI can only assist in code generation, Bolt.diy gives AI models **complete control** over the entire environment including the filesystem, node server, package manager, terminal, and browser console. This empowers AI agents to handle the whole app lifecycle—from creation to deployment.
|
||||
- **AI with Environment Control**: Unlike traditional dev environments where the AI can only assist in code generation, Bolt.diy gives AI models **complete control** over the entire environment including the filesystem, node server, package manager, terminal, and browser console. This empowers AI agents to handle the whole app lifecycle—from creation to deployment.
|
||||
|
||||
Whether you’re an experienced developer, a PM, or a designer, Bolt.diy allows you to easily build production-grade full-stack applications.
|
||||
|
||||
|
|
@ -32,9 +34,9 @@ Many of you are new users to installing software from Github. If you have any in
|
|||
|
||||
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.
|
||||
Pay attention to the installer notes after completion.
|
||||
|
||||
On all operating systems, the path to Node.js should automatically be added to your system path. But you can check your path if you want to be sure. On Windows, you can search for "edit the system environment variables" in your system, select "Environment Variables..." once you are in the system properties, and then check for a path to Node in your "Path" system variable. On a Mac or Linux machine, it will tell you to check if /usr/local/bin is in your $PATH. To determine if usr/local/bin is included in $PATH open your Terminal and run:
|
||||
|
||||
|
|
@ -150,7 +152,7 @@ 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.
|
||||
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.
|
||||
|
||||
By default, Anthropic, OpenAI, Groq, and Ollama are implemented as providers, but the YouTube video for this repo covers how to extend this to work with more providers if you wish!
|
||||
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ theme:
|
|||
# favicon: assets/logo.png
|
||||
repo_name: Bolt.diy
|
||||
repo_url: https://github.com/stackblitz-labs/bolt.diy
|
||||
edit_uri: ""
|
||||
edit_uri: ''
|
||||
|
||||
extra:
|
||||
generator: false
|
||||
|
|
@ -51,9 +51,6 @@ extra:
|
|||
link: https://bsky.app/profile/bolt.diy
|
||||
name: Bolt.diy on Bluesky
|
||||
|
||||
|
||||
|
||||
|
||||
markdown_extensions:
|
||||
- pymdownx.highlight:
|
||||
anchor_linenums: true
|
||||
|
|
@ -65,4 +62,4 @@ markdown_extensions:
|
|||
- pymdownx.details
|
||||
- pymdownx.superfences
|
||||
- pymdownx.mark
|
||||
- attr_list
|
||||
- attr_list
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue