Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# AGENTS.md

## Cursor Cloud specific instructions

This is a **Svelte 4 + Vite 5 + TypeScript** client-side SPA (no backend). All data is fetched at runtime from public GitHub APIs.

### Running the dev server

```bash
npm run dev
```

The app runs on `http://localhost:5173` by default.

### Available scripts (see `package.json`)

| Command | Purpose |
|---|---|
| `npm run dev` | Start Vite dev server |
| `npm run build` | Production build to `dist/` |
| `npm run check` | Run `svelte-check` (TypeScript + Svelte diagnostics) |
| `npm run format` | Run Prettier with `--write` |

### Known issues

- `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.
- `npx prettier --check .` reports 10 files with formatting issues (pre-existing).

### Environment variables (optional)

- `VITE_MIXPANEL_TOKEN` — enables Mixpanel analytics. The app works fully without it.
19 changes: 15 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,21 @@
<link rel="icon" type="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>LiteLLM Providers & Models</title>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.min.css"
/>
<meta name="description" content="The most comprehensive AI model catalog. Pricing, context windows, and features for 2600+ models across 140+ providers." />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<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" />
<style>
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
body { line-height: 1.6; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }
table { border-collapse: collapse; }
img { max-width: 100%; }
h1, h2, h3, h4, h5, h6 { line-height: 1.2; }
</style>
</head>
<body>
<div id="app"></div>
Expand Down
1,079 changes: 830 additions & 249 deletions src/App.svelte

Large diffs are not rendered by default.

Loading