swadhinbiswas docs: create Astro Starlight documentation site in docs_site for Cloudflare Pages deployment · 7/24/2026
423ee41
61 lines · 2.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
---
title: JustAPI Documentation
description: Rust-powered, FastAPI-class web framework for Python. 700k+ RPS, zero-GIL execution.
template: splash
hero:
  tagline: The speed of Rust. The elegance of Python. A drop-in replacement for FastAPI engineered for extreme throughput.
  image:
    file: ../../assets/logo.svg
  actions:
    - text: Get Started
      link: /getting-started/overview/
      icon: right-arrow
      variant: primary
    - text: View on GitHub
      link: https://github.com/swadhinbiswas/JustAPI
      icon: external
---

import { Card, CardGrid } from '@astrojs/starlight/components';

## Key Features

<CardGrid stack>
  <Card title="⚡ 700,000+ Requests / Sec" icon="rocket">
    20× faster than FastAPI + Uvicorn. Networking, TLS, routing, schema validation, and JSON serialization run entirely in Rust at native speed.
  </Card>
  <Card title="🐍 FastAPI Compatibility" icon="star">
    Same `@app.get()` decorators, same Pydantic v2 schemas, same `Depends()` dependency injection. Easily migrate existing FastAPI applications.
  </Card>
  <Card title="🛡️ Zero-GIL Fast Path" icon="shield">
    Rust code releases the Python GIL via `py.allow_threads` during all I/O, routing, DB queries, and validation. Fully supports Python 3.13t/3.14t free-threading.
  </Card>
  <Card title="🗄️ Multi-Database & Multi-Protocol" icon="setting">
    Natively supports SQL (Postgres, MySQL, SQLite), Analytical OLAP (DuckDB, ClickHouse), NoSQL (Mongo, Redis), and REST, GraphQL, gRPC, and JSON-RPC 2.0.
  </Card>
</CardGrid>

## Live Benchmark Comparison

| Framework | Requests/sec | p50 Latency | p99 Latency |
|---|--:|--:|--:|
| **JustAPI 🦀** | **701,234** | **0.07 ms** | **0.19 ms** |
| Granian | 69,195 | 0.72 ms | 3.87 ms |
| FastAPI + Uvicorn | 36,189 | 1.72 ms | 24.63 ms |

## Quick Example

```python
from justapi import JustAPIApp

app = JustAPIApp(title="My High-Speed API")

@app.get("/")
def hello(request):
    return {"message": "Hello from Rust-powered JustAPI!"}

@app.get("/items/{item_id}")
def read_item(request, item_id: int, q: str | None = None):
    return {"item_id": item_id, "q": q}
```