Skip to content

Commit 243df3e

Browse files
authored
Merge pull request #20 from fastrepl/cursor/development-environment-setup-c3bd
Development environment setup
2 parents 4b380bc + 3ce4013 commit 243df3e

8 files changed

Lines changed: 1499 additions & 1616 deletions

File tree

AGENTS.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# AGENTS.md
2+
3+
## Cursor Cloud specific instructions
4+
5+
This is a **Svelte 4 + Vite 5 + TypeScript** client-side SPA (no backend). All data is fetched at runtime from public GitHub APIs.
6+
7+
### Running the dev server
8+
9+
```bash
10+
npm run dev
11+
```
12+
13+
The app runs on `http://localhost:5173` by default.
14+
15+
### Available scripts (see `package.json`)
16+
17+
| Command | Purpose |
18+
|---|---|
19+
| `npm run dev` | Start Vite dev server |
20+
| `npm run build` | Production build to `dist/` |
21+
| `npm run check` | Run `svelte-check` (TypeScript + Svelte diagnostics) |
22+
| `npm run format` | Run Prettier with `--write` |
23+
24+
### Known issues
25+
26+
- `npm run check` reports 9 pre-existing TypeScript errors (type-casting issues in `App.svelte`, `Providers.svelte`, `Main.svelte`). These do **not** block the build or dev server.
27+
- `npx prettier --check .` reports 10 files with formatting issues (pre-existing).
28+
29+
### Environment variables (optional)
30+
31+
- `VITE_MIXPANEL_TOKEN` — enables Mixpanel analytics. The app works fully without it.

index.html

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,21 @@
55
<link rel="icon" type="icon" href="/favicon.ico" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
77
<title>LiteLLM Providers & Models</title>
8-
<link
9-
rel="stylesheet"
10-
href="https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.min.css"
11-
/>
8+
<meta name="description" content="The most comprehensive AI model catalog. Pricing, context windows, and features for 2600+ models across 140+ providers." />
9+
<link rel="preconnect" href="https://fonts.googleapis.com" />
10+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
11+
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet" />
12+
<style>
13+
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
14+
html { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
15+
body { line-height: 1.6; }
16+
a { text-decoration: none; color: inherit; }
17+
button { font-family: inherit; cursor: pointer; }
18+
input, textarea, select { font-family: inherit; }
19+
table { border-collapse: collapse; }
20+
img { max-width: 100%; }
21+
h1, h2, h3, h4, h5, h6 { line-height: 1.2; }
22+
</style>
1223
</head>
1324
<body>
1425
<div id="app"></div>

src/App.svelte

Lines changed: 830 additions & 249 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)