reinhardt-web 0.1.2

A full-stack API framework for Rust, inspired by Django and Django REST Framework
Documentation
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
<div align="center">
  <img src="branding/logo.png" alt="Reinhardt Logo" width="200"/>

  <h1>Reinhardt</h1>

  <h3>πŸ¦€ Django's productivity, Rust's performance</h3>

  <p><strong>A composable, batteries-included web framework for Rust</strong></p>
  <p>Build with the integrated experience of Django/DRF,<br/>
  or compose only the pieces you need.</p>

[![Crates.io](https://img.shields.io/crates/v/reinhardt-web.svg)](https://crates.io/crates/reinhardt-web)
[![Documentation](https://docs.rs/reinhardt-web/badge.svg)](https://docs.rs/reinhardt-web)
[![License](https://img.shields.io/badge/license-BSD--3--Clause-blue.svg)](LICENSE)
[![codecov](https://codecov.io/gh/kent8192/reinhardt-web/graph/badge.svg)](https://codecov.io/gh/kent8192/reinhardt-web)
[![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/kent8192/reinhardt-web)

</div>

---

## Quick Navigation

- [Who is Reinhardt For?]#who-is-reinhardt-for
- [Quick Start]#quick-start
- [Why Reinhardt?]#why-reinhardt
- [Key Features]#key-features
- [Installation]#installation
- [Getting Started Guide]#getting-started-guide
- [Available Components]#available-components
- [Ecosystem]#ecosystem
- [API Stability]#api-stability

## Who is Reinhardt For?

Reinhardt is designed for developers who:

- **Know Django/DRF** and want the same productivity in Rust
- **Use Axum/Actix** but miss Django's batteries (ORM, admin, auth, DI)
- **Want an integrated Rust web stack** without assembling everything from scratch
- **Want incremental adoption** -- start with just DI or ORM, grow into a full stack later

If you have written `ModelSerializer` or `Depends()` before, Reinhardt will feel like home.

## Quick Start

<!-- reinhardt-version-sync -->
```bash
# Currently a pre-release: --version is required. Once 0.1.2 stable ships,
# --version becomes optional (and acts as an opt-in reproducibility pin).
cargo install reinhardt-admin-cli --version "0.1.0-rc.30"

reinhardt-admin startproject my-api && cd my-api
cargo run --bin manage runserver  # Visit http://127.0.0.1:8000
```

For a full walkthrough, see the [Getting Started Guide](#getting-started-guide).

New to Reinhardt? Start with the default setup first. You can adopt a smaller custom stack later if needed.

## Why Reinhardt?

Rust web development is powerful, but it often starts with choosing and wiring together many separate libraries.

Reinhardt takes a different approach: integrated batteries when you want them, composable parts when you don't.

We call this **polylithic**: many building blocks that still feel like one coherent framework.

Reinhardt brings together the best of four worlds:

| Inspiration        | What We Borrowed                        | What We Improved                           |
|--------------------|-----------------------------------------|--------------------------------------------|
| 🐍 **Django**      | Batteries-included, ORM, admin          | Composable feature flags, type safety      |
| 🎯 **Django REST** | Serializers, ViewSets, permissions      | Compile-time validation, zero-cost         |
| ⚑ **FastAPI**      | DI system, auto OpenAPI                 | Native performance, no runtime overhead    |
| πŸ—„οΈ **SQLAlchemy** | QuerySet patterns, relationships        | Type-safe queries, compile-time checks     |

**Result**: A framework that's familiar to Python developers, but with Rust's performance and safety guarantees.

## ✨ Key Features

- **Type-Safe ORM** with compile-time validation (reinhardt-query)
- **Powerful Serializers** with automatic validation (serde + built-in validation)
- **FastAPI-Style DI** with type-safe dependency injection and caching
- **ViewSets** for rapid CRUD API development
- **Multi-Auth** (JWT, Token, Session, Basic) with BaseUser/FullUser traits
- **Admin Panel** with auto-generated model management interface
- **Management Commands** for migrations, static files, and more
- **GraphQL & WebSocket** support for real-time applications
- **Pagination, Filtering, Rate Limiting** built-in
- **Signals** for event-driven architecture

See [Available Components](#available-components) for complete list and [Getting Started](https://reinhardt-web.dev/quickstart/getting-started/) for examples.

## API Stability

Reinhardt follows a **three-phase lifecycle** for every crate:

| Phase | What to Expect |
|-------|---------------|
| **Alpha** (`0.x.0-alpha.N`) | APIs may change freely. Early adopters welcome. |
| **RC** (`0.x.0-rc.N`) | API frozen. Bug fixes only. Safe to build against. |
| **Stable** (`0.x.0`) | Full SemVer 2.0 guarantees. |

<!-- reinhardt-version-sync -->
**Current status:** Reinhardt is at `0.1.2`. From `0.1.0` onward, all
public APIs follow SemVer 2.0; breaking changes ship in a future
`0.2.0-rc.N` series coordinated through the `develop/0.2.0` branch.

For per-release detail (changelog summary, upgrade notes, known issues),
see the [Release category in GitHub Discussions](https://github.com/kent8192/reinhardt-web/discussions/categories/release).
The full lifecycle policy lives in
[Stability Policy](instructions/STABILITY_POLICY.md).

## Installation

Reinhardt is a modular framework. Choose your starting point:

> **New here?** Start with the default standard setup. Use `full` if you need all features, or `minimal` for lightweight APIs.

### Default: Standard Setup (Balanced) ⚠️ Default Preset

Get a well-balanced feature set with zero configuration:

<!-- reinhardt-version-sync -->
```toml
[dependencies]
# Import as 'reinhardt', published as 'reinhardt-web'
# Default enables the "standard" preset (balanced feature set)
reinhardt = { version = "0.1.2", package = "reinhardt-web" }
```

**Includes:** Core, Database (PostgreSQL), REST API (serializers, parsers, pagination, filters, throttling, versioning, metadata, content negotiation), Auth, Middleware (sessions), Pages (WASM Frontend with SSR), Signals

**Binary**: ~20-30 MB | **Compile**: Medium

Then use in your code:
```rust
use reinhardt::prelude::*;
use reinhardt::{Request, Response, StatusCode};
```

### Option 1: Full-Featured (All Batteries Included)

For projects that need every available component:

<!-- reinhardt-version-sync -->
```toml
[dependencies]
reinhardt = { version = "0.1.2", package = "reinhardt-web", default-features = false, features = ["full"] }
```

**Includes:** Everything in Standard, plus Admin, GraphQL, WebSockets, Cache, i18n, Mail, Static Files, Storage, and more

**Binary**: ~50+ MB | **Compile**: Slower, but everything works out of the box

### Option 2: Microservices (Minimal Setup)

Lightweight and fast, perfect for simple APIs:

<!-- reinhardt-version-sync -->
```toml
[dependencies]
reinhardt = { version = "0.1.2", package = "reinhardt-web", default-features = false, features = ["minimal"] }
```

**Includes:** HTTP, routing, DI, parameter extraction, server

**Binary**: ~5-10 MB | **Compile**: Very fast

### Option 3: Build Your Custom Stack

Install only the components you need:

<!-- reinhardt-version-sync:8 -->
```toml
[dependencies]
# Core components
reinhardt-http = "0.1.2"
reinhardt-urls = "0.1.2"

# Optional: Database
reinhardt-db = "0.1.2"

# Optional: Authentication
reinhardt-auth = "0.1.2"

# Optional: REST API features
reinhardt-rest = "0.1.2"

# Optional: Admin panel
reinhardt-admin = "0.1.2"

# Optional: Advanced features
reinhardt-graphql = "0.1.2"
reinhardt-websockets = "0.1.2"
```

**Note on Crate Naming:**
The main Reinhardt crate is published on crates.io as `reinhardt-web`, but you import it as `reinhardt` in your code using the `package` attribute.

**πŸ“– For a complete list of available crates and feature flags, see the [Feature Flags Guide](https://reinhardt-web.dev/docs/feature-flags/).**

## Getting Started Guide

### 1. Install Reinhardt Admin Tool

While Reinhardt is on a pre-release (`-rc.*` / `-alpha.*`), `cargo install`
requires an explicit `--version` because pre-releases are not selected by
default. Once `0.1.0` stable ships, omit `--version` to pull the latest
stable (or keep `--version` as an opt-in reproducibility pin). The literal
below is auto-bumped by release-plz on each release.

<!-- reinhardt-version-sync -->
```bash
cargo install reinhardt-admin-cli --version "0.1.2"
```

### 2. Create a New Project

```bash
# Create a RESTful API project (default)
reinhardt-admin startproject my-api
cd my-api
```

This generates a complete project structure:

```
my-api/
β”œβ”€β”€ Cargo.toml
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ lib.rs
β”‚   β”œβ”€β”€ config.rs
β”‚   β”œβ”€β”€ apps.rs
β”‚   β”œβ”€β”€ config/
β”‚   β”‚   β”œβ”€β”€ settings.rs
β”‚   β”‚   β”œβ”€β”€ settings/
β”‚   β”‚   β”‚   β”œβ”€β”€ base.rs
β”‚   β”‚   β”‚   β”œβ”€β”€ local.rs
β”‚   β”‚   β”‚   β”œβ”€β”€ staging.rs
β”‚   β”‚   β”‚   └── production.rs
β”‚   β”‚   β”œβ”€β”€ urls.rs
β”‚   β”‚   └── apps.rs
β”‚   └── bin/
β”‚       └── manage.rs
└── README.md
```

**Alternative: Create a reinhardt-pages Project (WASM + SSR)**

For a modern WASM-based frontend with SSR:

```bash
# Create a pages project
reinhardt-admin startproject my-app --template pages
cd my-app

# Install WASM build tools (first time only)
cargo make install-wasm-tools

# Build WASM and start development server
cargo make dev
# Visit http://127.0.0.1:8000/
```

### 3. Run the Development Server

```bash
# Using the manage command
cargo run --bin manage runserver

# Server will start at http://127.0.0.1:8000
```

**Auto-Reload Support:**

The development server reloads automatically on file changes:

```bash
cargo run --bin manage -- runserver --with-pages
```

Edit any Rust source file (server-side or wasm-side) and the bundle
plus the server are rebuilt in place. Pass `--noreload` to disable
auto-reload entirely, or `--no-wasm-rebuild` to keep server reload
but manage the wasm build yourself.

### 4. Create Your First App

```bash
# Create a RESTful API app (default)
reinhardt-admin startapp users

# Or explicitly specify type
reinhardt-admin startapp users --with-rest

# Create a Pages app (WASM + SSR)
reinhardt-admin startapp dashboard --with-pages
```

This creates an app structure β€” the layout depends on the template:

**RESTful app** (`--with-rest`, default):

```
users/
β”œβ”€β”€ lib.rs
β”œβ”€β”€ models.rs
β”œβ”€β”€ models/
β”œβ”€β”€ views.rs
β”œβ”€β”€ views/
β”œβ”€β”€ serializers.rs
β”œβ”€β”€ serializers/
β”œβ”€β”€ admin.rs
β”œβ”€β”€ admin/
β”œβ”€β”€ urls.rs
β”œβ”€β”€ tests.rs
└── tests/
```

**Pages app** (`--with-pages`, WASM + SSR):

Each app owns its server-side and client-side code under `src/apps/<app>/`.
Per Rust 2024 edition module conventions, the entry point for an app is a
sibling `<app>.rs` file next to the `<app>/` directory β€” there is no inner
`lib.rs`. The same pattern applies to nested aggregators (`client.rs` is
the sibling of `client/`, `urls.rs` is the sibling of `urls/`).

```
src/
β”œβ”€β”€ apps.rs                       # aggregator: pub mod polls; #[cfg(server)] pub use polls::PollsConfig;
β”œβ”€β”€ apps/
β”‚   β”œβ”€β”€ polls.rs                  # per-app entry (sibling of polls/)
β”‚   └── polls/
β”‚       β”œβ”€β”€ admin.rs              # #[cfg(server)] admin registration
β”‚       β”œβ”€β”€ client.rs             # #[cfg(client)] aggregator: pub mod components; pub mod pages;
β”‚       β”œβ”€β”€ client/
β”‚       β”‚   β”œβ”€β”€ components.rs     # per-app UI (placeholder() returning Page)
β”‚       β”‚   └── pages.rs          # per-app pages (placeholder_page wraps with_nav)
β”‚       β”œβ”€β”€ models.rs             # #[cfg(server)] models
β”‚       β”œβ”€β”€ models/               # (.gitkeep β€” user adds submodules here)
β”‚       β”œβ”€β”€ serializers.rs        # #[cfg(server)] serializers
β”‚       β”œβ”€β”€ serializers/          # (.gitkeep)
β”‚       β”œβ”€β”€ server_fn.rs          # bi-target #[server_fn] handlers (placeholder)
β”‚       β”œβ”€β”€ tests/                # (.gitkeep)
β”‚       β”œβ”€β”€ urls.rs               # urls aggregator (cfg-gated submodules)
β”‚       β”œβ”€β”€ urls/
β”‚       β”‚   β”œβ”€β”€ server_urls.rs    # #[url_patterns(InstalledApp::polls, mode = server)]
β”‚       β”‚   └── client_router.rs  # #[url_patterns(InstalledApp::polls, mode = client)]
β”‚       └── views.rs              # #[cfg(server)] views
β”œβ”€β”€ bin/
β”‚   └── manage.rs                 # native-only management CLI entry
β”œβ”€β”€ client.rs                     # #[cfg(client)] aggregator: pub mod lib; pub mod components;
β”œβ”€β”€ client/
β”‚   β”œβ”€β”€ components.rs             # cross-app shell: pub mod nav;
β”‚   β”œβ”€β”€ components/
β”‚   β”‚   └── nav.rs                # with_nav(body: Page) -> Page helper
β”‚   └── lib.rs                    # #[wasm_bindgen(start)] -> ClientLauncher::router_client(...)
β”œβ”€β”€ config.rs                     # cfg-gated config aggregator
β”œβ”€β”€ config/
β”‚   β”œβ”€β”€ apps.rs                   # installed_apps! { polls: "polls" }
β”‚   β”œβ”€β”€ settings.rs               # #[cfg(server)] settings
β”‚   β”œβ”€β”€ urls.rs                   # #[routes(standalone)] entry
β”‚   └── wasm.rs                   # #[cfg(server)] wasm tooling config
β”œβ”€β”€ lib.rs                        # crate root (`pub mod apps;` is un-gated)
β”œβ”€β”€ shared.rs                     # bi-target shared module
└── shared/
    β”œβ”€β”€ forms.rs                  # shared form definitions
    └── types.rs                  # DTOs exchanged between WASM and server
```

### 5. Register Routes

Edit your app's `urls.rs`. **`urls.rs` plays two roles**: it **declares the URL
submodules** of the app (via `pub mod ...;`) and **aggregates** them into a
single `url_patterns` (or `server_url_patterns` / `unified_url_patterns`) entry
point that `src/config/urls.rs` mounts:

```rust
// users/urls.rs
//
// 1. Module declarations for sub-URL files (optional, for larger apps):
pub mod api;
pub mod views;

// 2. Aggregator β€” the single entry point mounted from src/config/urls.rs.
use reinhardt::url_patterns;
use reinhardt::ServerRouter;

use crate::config::apps::InstalledApp;

#[url_patterns(InstalledApp::users, mode = server)]
pub fn server_url_patterns() -> ServerRouter {
	ServerRouter::new()
		.endpoint(views::list_users)
		.endpoint(views::get_user)
		.endpoint(views::create_user)
		.mount("/api/v1/", api::routes())
}
```

The `#[url_patterns]` attribute registers this router with the framework for
automatic discovery. For Pages apps, use `mode = unified` and return
`UnifiedRouter` instead (see the generated `urls/{server,client,ws}_urls.rs`
submodules).

Include in `src/config/urls.rs`:

```rust
// src/config/urls.rs
use reinhardt::prelude::*;
use reinhardt::routes;

#[routes]
pub fn routes() -> ServerRouter {
	ServerRouter::new()
		.mount("/api/", users::urls::url_patterns())
}
```

The `#[routes]` attribute macro automatically registers this function with the
framework for discovery via the `inventory` crate.

**Note:** The `reinhardt::prelude` includes commonly used types. Key exports include:

**Always Available:**
- Core routing and views: `Router`, `DefaultRouter`, `ServerRouter`, `View`, `ListView`, `DetailView`
- ViewSets: `ViewSet`, `ModelViewSet`, `ReadOnlyModelViewSet`
- HTTP: `StatusCode`

**Feature-Dependent:**
- **`core` feature**: `Request`, `Response`, `Handler`, `Middleware`, Signals (`post_save`, `pre_save`, etc.)
- **`database` feature**: `Model`, `DatabaseConnection`, `F`, `Q`, `Transaction`, `atomic`, Database functions (`Concat`, `Upper`, `Lower`, `Now`, `CurrentDate`), Window functions (`Window`, `RowNumber`, `Rank`, `DenseRank`), Constraints (`UniqueConstraint`, `CheckConstraint`, `ForeignKeyConstraint`)
- **`auth` feature**: `BaseUser`, `FullUser`, `PermissionsMixin`, `BaseUserManager`, `Argon2Hasher`, `GroupManager`, `CreateGroupData`, `Permission`, `ObjectPermission`, `ObjectPermissionManager`
- **`minimal`, `standard`, or `di` features**: `Body`, `Cookie`, `Header`, `Json`, `Path`, `Query`
- **`rest` feature**: Serializers, Parsers, Pagination, Throttling, Versioning
- **`admin` feature**: Admin panel components
- **`cache` feature**: `Cache`, `InMemoryCache`
- **`sessions` feature**: `Session`, `AuthenticationMiddleware`

For a complete list, see [Feature Flags Guide](https://reinhardt-web.dev/docs/feature-flags/).

For a complete step-by-step guide, see [Getting Started](https://reinhardt-web.dev/quickstart/getting-started/).

## πŸŽ“ Learn by Example

### With Database

Configure database in `settings/base.toml`:

```toml
debug = true
secret_key = "your-secret-key-for-development"

[database]
engine = "postgresql"
host = "localhost"
port = 5432
name = "mydb"
user = "postgres"
password = "postgres"
```

Settings are automatically loaded in `src/config/settings.rs`:

```rust
// src/config/settings.rs
use reinhardt::prelude::*;

// Compose built-in settings fragments with | β€” field names are inferred from type names
// (e.g., CoreSettings β†’ core, AuthSettings β†’ auth, DatabaseSettings β†’ database)
#[settings(CoreSettings | AuthSettings | DatabaseSettings)]
pub struct ProjectSettings;
```

The `|` syntax composes settings fragments into `ProjectSettings`. Each type must be a `#[settings(fragment = true, ...)]` struct. Built-in fragments:
- **`CoreSettings`** β€” `debug`, `secret_key`, `language_code`, `time_zone`, `allowed_hosts`
- **`AuthSettings`** β€” `jwt_secret`, `token_expiry`, `password_hashers`
- **`DatabaseSettings`** β€” `engine`, `host`, `port`, `name`, `user`, `password`

Add project-specific fragments with explicit field names using `key: Type` syntax:

```rust
#[settings(CoreSettings | AuthSettings | DatabaseSettings | mail: MailSettings)]
pub struct ProjectSettings;
```

See [Settings Documentation](https://reinhardt-web.dev/docs/settings/) for more details.

**Defining a User Model:**

Define your own user model with `#[user(...)]` + `#[model(...)]`. These two
attribute macros cooperate: `#[user]` implements the auth traits (`BaseUser`,
`PermissionsMixin`, `AuthIdentity`, and optionally `FullUser`) on top of a
normal Reinhardt model:

```rust
// users/models.rs
use reinhardt::prelude::*;
use reinhardt::auth::Argon2Hasher;

#[user(hasher = Argon2Hasher, username_field = "username", full = true)]
#[model(app_label = "users", table_name = "users")]
pub struct User {
	#[field(primary_key = true)]
	pub id: Uuid,

	#[field(max_length = 100)]
	pub username: String,

	#[field(max_length = 255)]
	pub email: String,

	pub password_hash: Option<String>,

	#[field(max_length = 150)]
	pub first_name: String,

	#[field(max_length = 150)]
	pub last_name: String,

	#[field(default = true)]
	pub is_active: bool,

	#[field(default = false)]
	pub is_staff: bool,

	#[field(default = false)]
	pub is_superuser: bool,

	pub last_login: Option<DateTime<Utc>>,

	#[field(auto_now_add = true)]
	pub date_joined: DateTime<Utc>,

	// Add custom fields as needed:
	#[field(max_length = 50, null = true)]
	pub phone_number: Option<String>,
}
```

`#[user]` arguments:
- `hasher` (required) β€” password hasher type (e.g., `Argon2Hasher`)
- `username_field` (required) β€” name of the field used as the username
- `full = true` (optional) β€” also implement `FullUser` (email, first_name, last_name, is_staff, date_joined)

**Model Attribute Macro:**

The `#[model(...)]` attribute automatically generates:
- Implementation of the `Model` trait (includes `#[derive(Model)]` functionality)
- Type-safe field accessors: `User::field_email()`, `User::field_username()`, etc.
- Global model registry registration
- Support for composite primary keys

**Note:** When using `#[model(...)]`, you do NOT need to add `#[derive(Model)]` separately,
as it is automatically applied by the `#[model(...)]` attribute.

**Field Attributes:**
- `#[field(primary_key = true)]` - Mark as primary key
- `#[field(max_length = 255)]` - Set maximum length for string fields
- `#[field(default = value)]` - Set default value
- `#[field(auto_now_add = true)]` - Auto-populate timestamp on creation
- `#[field(auto_now = true)]` - Auto-update timestamp on save
- `#[field(null = true)]` - Allow NULL values
- `#[field(unique = true)]` - Enforce uniqueness constraint

For a complete list of field attributes, see the [Field Attributes Guide](https://reinhardt-web.dev/docs/field-attributes/).

The generated field accessors enable type-safe field references in queries:

```rust
// Generated by #[model(...)] for the User struct above:
impl User {
	pub const fn field_id() -> FieldRef<User, Uuid> { FieldRef::new("id") }
	pub const fn field_username() -> FieldRef<User, String> { FieldRef::new("username") }
	pub const fn field_email() -> FieldRef<User, String> { FieldRef::new("email") }
	pub const fn field_is_active() -> FieldRef<User, bool> { FieldRef::new("is_active") }
	pub const fn field_is_staff() -> FieldRef<User, bool> { FieldRef::new("is_staff") }
	pub const fn field_date_joined() -> FieldRef<User, DateTime<Utc>> { FieldRef::new("date_joined") }
	// ... other fields
}
```

**Advanced Query Examples:**

```rust
use reinhardt::prelude::*;
use crate::models::User;

// Django-style F/Q object queries with type-safe field references
async fn complex_user_query() -> Result<Vec<User>, Box<dyn std::error::Error>> {
	// Q objects for building complex conditions
	let active_query = Q::new("is_active", "=", "true")
		.and(Q::new("date_joined", ">=", "NOW()"));

	// Database functions with type-safe field references
	let email_lower = Lower::new(User::field_email().into());
	let username_upper = Upper::new(User::field_username().into());

	// Aggregations using field accessors
	let user_count = Aggregate::count(User::field_id().into());
	let latest_joined = Aggregate::max(User::field_date_joined().into());

	// Window functions for ranking
	let rank_by_join_date = Window::new()
		.partition_by(vec![User::field_is_active().into()])
		.order_by(vec![(User::field_date_joined().into(), "DESC")])
		.function(RowNumber::new());

	// Build and execute the query using QuerySet
	let users = User::objects()
		.filter(active_query)
		.annotate("email_lower", email_lower)
		.annotate("username_upper", username_upper)
		.annotate("rank", rank_by_join_date)
		.order_by(vec![("-date_joined",)])
		.all()
		.await?;

	Ok(users)
}

// Transaction support
async fn create_user_with_transaction(
	conn: &DatabaseConnection,
	user_data: CreateUserRequest
) -> Result<User, Box<dyn std::error::Error>> {
	// Transaction with automatic rollback on error
	transaction(conn, |_tx| async move {
		let user = User::create(user_data).await?;
		log_user_creation(&user).await?;
		Ok(user)
	}).await
}
```

**Note**: Reinhardt uses reinhardt-query for SQL operations. The `#[model(...)]` attribute automatically generates Model trait implementations, type-safe field accessors, and global model registry registration.

Register in `src/config/apps.rs`:

```rust
// src/config/apps.rs
use reinhardt::installed_apps;

// The installed_apps! macro generates:
// - An enum InstalledApp with variants for each app
// - Implementation of conversion traits (From, Into, Display)
// - A registry for app configuration and discovery
//
// Note: Unlike Django's INSTALLED_APPS, this macro is for user apps only.
// Built-in framework features (auth, sessions, admin, etc.) are enabled via
// Cargo feature flags, not through installed_apps!.
//
// Example:
// [dependencies]
// reinhardt = { version = "0.1", features = ["auth", "sessions", "admin"] }
//
// This enables:
// - Automatic app discovery for migrations, admin panel, etc.
// - Type-safe app references throughout your code
// - Centralized app configuration
installed_apps! {
	users: "users",
}

pub fn get_installed_apps() -> Vec<String> {
	InstalledApp::all_apps()
}
```

### With Authentication

Reinhardt provides Django-style user models and permission primitives. You
bring your own user struct (defined with `#[user(...)]` + `#[model(...)]` as
shown in the previous section); the framework layers auth traits, a
password-management workflow, groups, and object-level permissions on top.

**Two entry points for user data:**

| Need | Use |
|------|-----|
| ORM queries on users (filter/annotate/aggregate) | `User::objects()` (from `#[model]`) |
| User lifecycle: create/password-hashing/superuser | A `BaseUserManager<User>` implementation |
| Groups | `GroupManager` |
| Object-level permissions | `ObjectPermissionManager` |

> `User::objects()` is *not* a shortcut to a manager β€” it is the `QuerySet`
> entry point from the `Model` trait. Manager types
> (`BaseUserManager<User>` for the user lifecycle, `GroupManager`,
> `ObjectPermissionManager`) are constructed directly via `::new()`.

**User lifecycle example:**

For a custom user, implement `BaseUserManager<User>` (see
`reinhardt::auth::BaseUserManager`). The signature required is:

```rust
use std::collections::HashMap;
use async_trait::async_trait;
use reinhardt::auth::{BaseUserManager, Argon2Hasher, PasswordHasher};
use reinhardt::prelude::*;
use serde_json::Value;
use crate::models::User;

pub struct UserManager {
	hasher: Argon2Hasher,
}

impl UserManager {
	pub fn new() -> Self {
		Self { hasher: Argon2Hasher::new() }
	}
}

#[async_trait]
impl BaseUserManager<User> for UserManager {
	async fn create_user(
		&mut self,
		username: &str,
		password: Option<&str>,
		extra: HashMap<String, Value>,
	) -> Result<User, reinhardt::Error> {
		let mut user = User::new(username.to_string(), /* email */ String::new());
		if let Some(pw) = password {
			user.set_password(pw)?;
		}
		// Apply extra fields (email, first_name, …) as needed …
		user.save().await?;
		Ok(user)
	}
}
```

Then:

```rust
let mut users = UserManager::new();
let alice = users
	.create_user(
		"alice",
		Some("secure_password"),
		HashMap::from([("email".into(), serde_json::json!("alice@example.com"))]),
	)
	.await?;
```

**Groups and object-level permissions:**

`GroupManager` and `ObjectPermissionManager` are always available and are
instantiated directly:

```rust
use reinhardt::auth::{GroupManager, CreateGroupData, ObjectPermissionManager};

let mut groups = GroupManager::new();
let editors = groups
	.create_group(CreateGroupData { name: "editors".to_string() })
	.await?;

let mut perms = ObjectPermissionManager::new();
perms.grant_permission("alice", "article:123", "edit").await;
```

Use JWT authentication in your app's `views/profile.rs`:

```rust
// users/views/profile.rs
use reinhardt::{Response, StatusCode, ViewResult, get};
use reinhardt::auth::AuthUser;
use crate::models::User;

// JwtAuthMiddleware must be registered in urls.rs to populate AuthState in request extensions
#[get("/profile", name = "get_profile")]
pub async fn get_profile(
	#[inject] AuthUser(user): AuthUser<User>,
) -> ViewResult<Response> {
	// AuthUser<U> loads the full user model from the database using the AuthState
	// set by authentication middleware. Returns an injection error if unauthenticated.
	if !user.is_active() {
		return Err("User account is inactive".into());
	}

	let json = serde_json::to_string(&user)?;
	Ok(Response::new(StatusCode::OK).with_body(json))
}
```

### Dependency Injection

Reinhardt ships a FastAPI-inspired, async-first dependency injection (DI)
system in the `reinhardt-di` crate. It is type-safe, scope-aware (`singleton` /
`request` / `transient`), composable (dependencies can depend on other
dependencies), and registered at compile time via the
[`inventory`](https://crates.io/crates/inventory) crate so that there is no
runtime reflection or startup discovery cost.

Three primitives drive everyday use:

1. **`#[injectable]`** β€” turn a struct into an injectable service.
2. **`#[injectable_factory]`** β€” register an async function as a factory for
   types you *cannot* annotate yourself (foreign types, trait objects,
   connection handles built from settings).
3. **`#[inject]`** with **`Depends<T>`** β€” receive dependencies in a handler
   (or another injectable) without wiring anything by hand.

#### 1. `#[injectable]` β€” struct-level injection

Apply `#[injectable]` to any struct whose fields are themselves injectable.
Non-injected fields are marked with `#[no_inject]` and must implement
`Default` (or be supplied via the generated builder):

```rust
use reinhardt::di::injectable;

// `scope` is passed as a macro argument; accepted values are
// "singleton", "request", or "transient" (one literal, not an alternation).
// When omitted, `#[injectable]` defaults to `request` and
// `#[injectable_factory]` defaults to `singleton`. `Config` is registered
// as a singleton here so it matches the singleton-scoped
// `database_connection` factory below: mixing a longer-lived dependent
// with a shorter-lived dependency is not rejected by the registry, but it
// captures whichever request-scoped instance was live at first resolution
// and reuses it for the singleton's lifetime β€” almost never what you want.
#[injectable(scope = "singleton")]
#[derive(Clone)]
pub struct Config {
    #[no_inject]
    pub database_url: String,
}
```

`#[injectable]` generates an `impl Injectable for Config` and a compile-time
registration entry (via `inventory::submit!`) so the type resolves from
`InjectionContext` automatically.

#### 2. `#[injectable_factory]` β€” the pseudo orphan rule

Rust's orphan rule forbids `impl Injectable for SomeForeignType`. For those
cases β€” database connections, `Arc<dyn Trait>`, third-party handles β€” Reinhardt
offers `#[injectable_factory]`. You write an async function whose return type
is the type to register; the macro wraps it, submits an `inventory` entry, and
hands the returned value to the DI container:

```rust
use reinhardt::db::DatabaseConnection;
use reinhardt::di::{Depends, injectable_factory};

#[injectable_factory(scope = "singleton")]
async fn database_connection(
    #[inject] config: Depends<Config>,
) -> DatabaseConnection {
    DatabaseConnection::connect(&config.database_url)
        .await
        .expect("failed to open database connection")
}
```

**Every parameter of an `#[injectable_factory]` function must be annotated
with `#[inject]`.** There is no way to pass runtime arguments; factories only
compose over other injectables.

**The pseudo orphan rule.** To prevent user factories from silently shadowing
framework-owned types (e.g., `reinhardt_di::InjectionContext`, routers,
middleware bindings), Reinhardt validates every registered factory at startup.
If the return type's fully-qualified name begins with a
framework-reserved crate prefix (`reinhardt::`, `reinhardt_di::`, `reinhardt_http::`,
… 37 prefixes total), registration is rejected unless the factory itself lives
inside that crate. This emulates the orphan rule across the DI boundary: foreign
types are fair game, framework types are not. The validator lives in
[`crates/reinhardt-di/src/validation.rs`](crates/reinhardt-di/src/validation.rs)
(`check_framework_type_override`, lines 51–129).

#### 3. `#[inject]` + `Depends<T>` in handlers

Use `#[inject]` on a handler parameter to have the DI container resolve it
before the handler runs. Wrap the requested type in `Depends<T>` so that
caching and scope are honoured:

```rust
use reinhardt::{get, Response, StatusCode, ViewResult};
use reinhardt::di::Depends;
use reinhardt::db::DatabaseConnection;
use reinhardt::extractors::Path;
use crate::models::User;

#[get("/users/{id}/", name = "get_user")]
pub async fn get_user(
    Path(id): Path<i64>,
    #[inject] db: Depends<DatabaseConnection>,
) -> ViewResult<Response> {
    let user = User::objects().filter(User::field_id().eq(id)).get().await?;
    let body = serde_json::to_string(&user)?;
    Ok(Response::new(StatusCode::OK).with_body(body))
}
```

**Caching.** Within a scope boundary, resolving the same `Depends<T>` twice
returns the *same* instance. Opt out per-call with `#[inject(cache = false)]`:

```rust
pub async fn uncached_handler(
    #[inject(cache = false)] db: Depends<DatabaseConnection>,
) -> ViewResult<Response> { /* always a fresh resolution within the scope */ }
```

#### Manual `impl Injectable`

When neither macro fits (generic bounds the macro cannot infer, hand-written
builders, conditional registration), implement `Injectable` directly:

```rust
use async_trait::async_trait;
use reinhardt::di::{Injectable, InjectionContext, DiResult};

#[async_trait]
impl Injectable for MyService {
    async fn inject(_ctx: &InjectionContext) -> DiResult<Self> {
        Ok(MyService::new())
    }
}
```

For the full DI reference, see the [`reinhardt-di` crate
documentation](https://docs.rs/reinhardt-di).

### Endpoint Definition

Reinhardt uses HTTP method decorators to define endpoints:

#### HTTP Method Decorators

Use `#[get]`, `#[post]`, `#[put]`, `#[delete]` to define routes:

```rust
use reinhardt::{get, post, Response, ViewResult};
use serde_json::json;

#[get("/")]
pub async fn hello() -> ViewResult<Response> {
	Ok(Response::ok().with_body("Hello, World!"))
}

#[post("/users")]
pub async fn create_user() -> ViewResult<Response> {
	let body = json!({"status": "created"});
	Response::ok().with_json(&body).map_err(Into::into)
}
```

**Features:**
- Compile-time path validation
- Concise syntax
- Automatic HTTP method binding
- Support for dependency injection via `#[inject]`

#### Using Dependency Injection

Combine HTTP method decorators with `#[inject]` for automatic dependency injection:

```rust
use reinhardt::{get, Response, StatusCode, ViewResult};
use reinhardt::extractors::Path;
use reinhardt::di::Depends;
use reinhardt::db::DatabaseConnection;
use crate::models::User;

#[get("/users/{id}/", name = "get_user")]
pub async fn get_user(
	Path(id): Path<i64>,
	#[inject] db: Depends<DatabaseConnection>,
) -> ViewResult<Response> {
	// Path extractor parses and validates the {id} segment automatically
	let user = User::objects()
		.filter(User::field_id().eq(id))
		.get()
		.await?;

	let json = serde_json::to_string(&user)?;
	Ok(Response::new(StatusCode::OK).with_body(json))
}
```

**Dependency Injection Features:**
- Automatic dependency injection via `#[inject]` attribute
- Cache control with `#[inject(cache = false)]`
- FastAPI-inspired dependency injection system
- Works seamlessly with HTTP method decorators

**Result Type:**

All view functions use `ViewResult<T>` as the return type:

```rust
use reinhardt::ViewResult;  // Pre-defined result type
```

### With Parameter Extraction

In your app's `views/user.rs`:

```rust
// users/views/user.rs
use reinhardt::{Response, StatusCode, ViewResult, get};
use reinhardt::extractors::{Path, Query};
use reinhardt::di::Depends;
use reinhardt::db::DatabaseConnection;
use crate::models::User;
use serde::Deserialize;

#[derive(Deserialize)]
pub struct GetUserParams {
	pub include_inactive: Option<bool>,
}

#[get("/users/{id}/", name = "get_user")]
pub async fn get_user(
	Path(id): Path<i64>,
	Query(params): Query<GetUserParams>,
	#[inject] db: Depends<DatabaseConnection>,
) -> ViewResult<Response> {
	let user = User::objects()
		.filter(User::field_id().eq(id))
		.get()
		.await?;

	if !params.include_inactive.unwrap_or(false) && !user.is_active {
		return Err("User is inactive".into());
	}

	let json = serde_json::to_string(&user)?;
	Ok(Response::new(StatusCode::OK).with_body(json))
}
```

Register route with path parameter in `urls.rs`:

```rust
// users/urls.rs
use reinhardt::ServerRouter;

use super::views;

pub fn url_patterns() -> ServerRouter {
	ServerRouter::new()
		.endpoint(views::get_user)  // Path defined in #[get("/users/{id}/")]
}
```

### With Serializers and Validation

In your app's `serializers/user.rs`:

```rust
// users/serializers/user.rs
use serde::{Serialize, Deserialize};
use reinhardt::Validate;

#[derive(Serialize, Deserialize, Validate)]
pub struct CreateUserRequest {
	#[validate(email)]
	pub email: String,
	#[validate(length(min = 3, max = 50))]
	pub username: String,
	#[validate(length(min = 8))]
	pub password: String,
}

#[derive(Serialize, Deserialize)]
pub struct UserResponse {
	pub id: i64,
	pub username: String,
	pub email: String,
	pub is_active: bool,
}

impl From<User> for UserResponse {
	fn from(user: User) -> Self {
		UserResponse {
			id: user.id,
			username: user.username,
			email: user.email,
			is_active: user.is_active,
		}
	}
}
```

In your app's `views/user.rs`:

```rust
// users/views/user.rs
use reinhardt::{Response, StatusCode, ViewResult, post};
use reinhardt::extractors::Json;
use reinhardt::validation::Validated;
use reinhardt::di::Depends;
use reinhardt::db::DatabaseConnection;
use crate::models::User;
use crate::serializers::{CreateUserRequest, UserResponse};

#[post("/users", name = "create_user")]
pub async fn create_user(
	Json(body): Json<CreateUserRequest>,
	Validated(create_req): Validated<CreateUserRequest>,
	#[inject] db: Depends<DatabaseConnection>,
) -> ViewResult<Response> {
	// Json<T> deserializes the body; Validated<T> runs #[validate] rules and yields the validated value

	// Create user using the auto-generated new() function from #[user] + #[model]
	let mut user = User::new(create_req.username, create_req.email);

	// Hash and set password using BaseUser trait
	user.set_password(&create_req.password)?;

	// Save to database
	user.save(&db).await?;

	let response_data = UserResponse::from(user);
	let json = serde_json::to_string(&response_data)?;

	Ok(Response::new(StatusCode::CREATED).with_body(json))
}
```

## Adoption Paths

| Your Goal | Start Here |
|-----------|-----------|
| **Full-stack REST API** | [Getting Started Guide]#getting-started-guide |
| **Full-stack with Pages (WASM + SSR)** | [Twitter Demo]examples/examples-twitter/ |
| **Lightweight DI-focused API** | [Minimal Installation]#option-2-microservices-minimal-setup |

> **Standalone DI for existing Axum apps** is planned for a future release.
> See [Discussions]https://github.com/kent8192/reinhardt-web/discussions for updates.

## Available Components

Reinhardt offers modular components you can mix and match:

| Component           | Crate Name                | Features                                    |
|---------------------|---------------------------|---------------------------------------------|
| **Core**            |                           |                                             |
| Core Types          | `reinhardt-core`          | Core traits, types, macros (Model, endpoint)|
| HTTP & Routing      | `reinhardt-http`          | Request/Response, HTTP handling             |
| URL Routing         | `reinhardt-urls`          | Function-based and class-based routes       |
| Server              | `reinhardt-server`        | HTTP server implementation                  |
| Dispatch            | `reinhardt-dispatch`      | HTTP request dispatching, handler composition |
| Configuration       | `reinhardt-conf`          | Settings management, environment loading    |
| Commands            | `reinhardt-commands`      | Management CLI tools (startproject, etc.)   |
| Shortcuts           | `reinhardt-shortcuts`     | Common utility functions                    |
| **Database**        |                           |                                             |
| ORM                 | `reinhardt-db`            | reinhardt-query integration                |
| **Authentication**  |                           |                                             |
| Auth                | `reinhardt-auth`          | JWT, Token, Session, Basic auth, User models|
| **REST API**        |                           |                                             |
| Serializers         | `reinhardt-rest`          | built-in serialization and validation, ViewSets |
| **Forms**           |                           |                                             |
| Forms               | `reinhardt-forms`         | Form handling and validation                |
| **Advanced**        |                           |                                             |
| Admin Panel         | `reinhardt-admin`         | Django-style admin interface                |
| Plugin System       | `reinhardt-dentdelion`    | Static & WASM plugin support, CLI management|
| Background Tasks    | `reinhardt-tasks`         | Task queues (Redis, RabbitMQ, SQLite)       |
| GraphQL             | `reinhardt-graphql`       | Schema generation, subscriptions            |
| WebSockets          | `reinhardt-websockets`    | Real-time communication                     |
| i18n                | `reinhardt-i18n`          | Multi-language support                      |
| Mail                | `reinhardt-mail`          | Email sending and templating                |
| gRPC                | `reinhardt-grpc`          | gRPC services, protobuf types               |
| Deep Link           | `reinhardt-deeplink`      | iOS Universal Links, Android App Links      |
| **Middleware**       |                           |                                             |
| Middleware          | `reinhardt-middleware`    | HTTP middleware components, CORS, security  |
| **Testing**         |                           |                                             |
| Test Utilities      | `reinhardt-test`          | Testing helpers, fixtures, TestContainers   |
| Test Kit            | `reinhardt-testkit`       | Higher-level test abstractions and utilities|

**For detailed feature flags within each crate, see the [Feature Flags Guide](https://reinhardt-web.dev/docs/feature-flags/).**

---

## Ecosystem

| Project | Status | Description |
|---------|--------|-------------|
| [reinhardt-cloud]https://github.com/kent8192/reinhardt-cloud | WIP | Kubernetes operator & CLI for deploying Reinhardt apps |

> **Dog-fooding in progress:** We are actively developing reinhardt-cloud as the deployment infrastructure for Reinhardt applications, and using it to deploy reinhardt-web itself. As a work-in-progress project, APIs and features may change significantly.

---

## Documentation

- πŸ“š [Getting Started Guide]https://reinhardt-web.dev/quickstart/getting-started/ - Step-by-step tutorial for beginners
- πŸŽ›οΈ [Feature Flags Guide]https://reinhardt-web.dev/docs/feature-flags/ - Optimize your build with granular feature control
- πŸ“– [API Reference]https://docs.rs/reinhardt-web (Coming soon)
- πŸ“ [Tutorials]https://reinhardt-web.dev/quickstart/tutorials/ - Learn by building real applications

**For AI Assistants**: See [CLAUDE.md](CLAUDE.md) for project-specific coding standards, testing guidelines, and development conventions.

## πŸ’¬ Getting Help

Reinhardt is a community-driven project. Here's where you can get help:

- πŸ’¬ **Discord**: Join our Discord server for real-time chat (coming soon)
- πŸ’­ **GitHub Discussions**: [Ask questions and share ideas]https://github.com/kent8192/reinhardt-web/discussions
- πŸ› **Issues**: [Report bugs]https://github.com/kent8192/reinhardt-web/issues
- πŸ“– **Documentation**: [Read the guides]docs/

Before asking, please check:

- βœ… [Getting Started Guide]https://reinhardt-web.dev/quickstart/getting-started/
- βœ… [Examples]examples/
- βœ… Existing GitHub Issues and Discussions

## 🀝 Contributing

We love contributions! Please read our [Contributing Guide](CONTRIBUTING.md) to get started.

**Quick links**:

- [Development Setup]CONTRIBUTING.md#development-setup
- [Testing Guidelines]CONTRIBUTING.md#testing-guidelines
- [Commit Guidelines]CONTRIBUTING.md#commit-guidelines

## ⭐ Star History

<a href="https://star-history.com/#kent8192/reinhardt-web&Date">
 <picture>
   <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=kent8192/reinhardt-web&type=Date&theme=dark" />
   <source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=kent8192/reinhardt-web&type=Date" />
   <img alt="Star History Chart" src="https://api.star-history.com/svg?repos=kent8192/reinhardt-web&type=Date" width="600" />
 </picture>
</a>

## Copyright

Copyright Β© 2026 Tachyon Inc. All rights reserved.

Developed by Tachyon Inc.

## License

This project is licensed under the [BSD 3-Clause License](LICENSE).

### Third-Party Attribution

This project is inspired by:

- [Django]https://www.djangoproject.com/ (BSD 3-Clause License)
- [Django REST Framework]https://www.django-rest-framework.org/ (BSD 3-Clause License)
- [FastAPI]https://fastapi.tiangolo.com/ (MIT License)
- [SQLAlchemy]https://www.sqlalchemy.org/ (MIT License)

See [THIRD-PARTY-NOTICES](THIRD-PARTY-NOTICES) for full attribution.

**Note:** This project is not affiliated with or endorsed by the Django Software Foundation, Encode OSS Ltd., SebastiΓ‘n RamΓ­rez (FastAPI author), or Michael Bayer (SQLAlchemy author).