Skip to content

Commit a2f9402

Browse files
Refactor server and client components for improved functionality and performance
- Removed unused imports and code related to Hugging Face authentication and deployment. - Updated the AI provider logic to include OpenRouter and streamline local provider settings. - Enhanced the HTML export functionality in the DeployButton component. - Simplified the App component by removing unnecessary state and API calls. - Improved UI elements and styles across various components for better user experience. - Updated default HTML template with new styles and text. - Removed deprecated SpeechPrompt component and related code. - Adjusted provider configurations to reflect current API usage and capabilities.
1 parent 6e09fbb commit a2f9402

File tree

18 files changed

+186
-899
lines changed

18 files changed

+186
-899
lines changed

.env.example

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1 @@
1-
OAUTH_CLIENT_ID=
2-
OAUTH_CLIENT_SECRET=
31
APP_PORT=5173
4-
REDIRECT_URI=http://localhost:5173/auth/login
5-
DEFAULT_HF_TOKEN=
6-
7-
# Optional
8-
# By setting this variable, you will bypass the login page + the free requests
9-
# and will use the token directly.
10-
# This is useful for testing purposes or local use.
11-
HF_TOKEN=
12-
13-
# Optional - Local AI API
14-
LOCAL_API_URL=
15-
LOCAL_API_KEY=
16-
17-
OPENAI_API_KEY=
18-
OPENAI_API_URL=

README.md

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,12 @@ git clone https://github.com/MartinsMessias/deepsite-locally.git
2020
npm install
2121
```
2222

23-
### 3. Set up your environment
24-
25-
Create a `.env` file in the project root and add your **HF_TOKEN**:
26-
27-
```
28-
HF_TOKEN=your-token-here
29-
```
30-
> The token must have **inference** permissions (and **write** permissions if you want to deploy results to Hugging Face Spaces).
31-
32-
### 4. Build the project
23+
### 3. Build the project
3324
```bash
3425
npm run build
3526
```
3627

37-
### 5. Start the server
28+
### 4. Start the server
3829
```bash
3930
npm run start
4031
```

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
<title>DeepSite | Build with AI ✨</title>
88
<meta
99
name="description"
10-
content="DeepSite is a web development tool that
10+
content="DeepSites is a web development tool that
1111
helps you build websites with AI, no code required. Let's deploy your
12-
website with DeepSite and enjoy the magic of AI."
12+
website with AI and enjoy the magic of AI."
1313
/>
1414
<link rel="preconnect" href="https://fonts.googleapis.com" />
1515
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />

localconfig.png

-12 KB
Loading

middlewares/checkUser.js

Lines changed: 0 additions & 13 deletions
This file was deleted.

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
"start": "node server.js"
1212
},
1313
"dependencies": {
14-
"@huggingface/hub": "^1.1.1",
15-
"@huggingface/inference": "^3.6.1",
1614
"@monaco-editor/react": "^4.7.0",
1715
"@tailwindcss/vite": "^4.0.15",
1816
"@xenova/transformers": "^2.17.2",

public/providers/openrouter.svg

Lines changed: 22 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)