22
22
23
23
import { Image } from " astro:assets" ;
24
24
import { Aside , Card , CardGrid } from " @astrojs/starlight/components" ;
25
+ import SplitCard from " @/components/SplitCard.astro" ;
26
+
27
+ import Roadmap from " ./_roadmap.md" ;
25
28
26
29
import screenshot from " @/assets/screenshot.webp" ;
27
30
import dotnetLogo from " @/assets/dotnet_logo.svg" ;
@@ -30,64 +33,60 @@ import tsLogo from "@/assets/ts_logo.svg";
30
33
31
34
import { Duration100kInsertsChart } from " ./reference/_benchmarks/benchmarks.tsx" ;
32
35
33
- <div class = " flex justify-center" >
34
- <div class = " md:w-[80%] flex flex-col gap-4" >
36
+ <div class = " flex flex-col gap-4" >
35
37
36
- <div >
37
- <h3 >Total time for 100k insertions</h3 >
38
+ <SplitCard title = " Performance" icon = " rocket" >
39
+ <div slot = " first" >
40
+ Blazingly fast thanks to its constituents:
38
41
39
- < a href = " /reference/benchmarks " >
40
- TrailBase adds minimal overhead compared to in-process SQLite and
41
- beats other excellent choices:
42
- </ a >
42
+ * Rust: one of the lowest overhead languages,
43
+ * Axum: one of the fastest HTTP servers,
44
+ * SQLite/Libsql: one of the fastest full-SQL databases,
45
+ * V8: one of the fastest JS engines.
43
46
44
- <div class = " w-full h-[260px] mt-4" >
47
+ TrailBase APIs are [ 6-7x faster than PocketBase's and 15x faster than SupaBase's
48
+ needing only a fraction of the footprint] ( /reference/benchmarks ) , allowing
49
+ you to serve millions of customers from a tiny box.
50
+ TrailBase JS runtime is ~ 40x faster than PocketBase's.
51
+ </div >
52
+
53
+ <div slot = " second" >
54
+ <a href = " /reference/benchmarks" >Total time for 100k insertions:</a >
55
+
56
+ <div class = " w-full h-[300px]" >
45
57
<Duration100kInsertsChart client :only = " solid-js" />
46
58
</div >
47
59
</div >
60
+ </SplitCard >
61
+
62
+ <Card title = " Admin Dashboard" icon = " setting" >
63
+ TrailBase ships with a builtin admin dashboard UI, see demo above, that
64
+ lets you quickly configure your instance and visually explore your data.
65
+ Following TrailBase's mantra of not getting in your way, the UI is
66
+ entirely optional letting you fall back to a purely config &
67
+ migration-based setup for integration tests or managing an entire fleet
68
+ of deployments.
48
69
49
- #### Live Demo
70
+ Check out the ** live demo ** :
50
71
51
- <div class = " relative" >
72
+ <div class = " flex justify-center" >
73
+ <div class = " max-w-[680px] relative" >
52
74
<a href = " https://demo.trailbase.io/_/admin" >
53
75
<Image class = " z-0 rounded-xl" src = { screenshot } alt = " Screenshot of TrailBase's admin dashboard" />
54
76
</a >
55
77
56
78
<div class = " z-1 w-full h-full absolute top-0 flex justify-center items-center pointer-events-none" >
57
79
<a class = " pointer-events-auto no-underline flex flex-col items-center bg-gray-200 dark:bg-accent-900 px-4 py-2 rounded" href = " https://demo.trailbase.io/_/admin" >
80
+ <strong >Live Demo</strong >
58
81
<span >login: admin@localhost</span >
59
82
<span >password: secret</span >
60
83
</a >
61
84
</div >
62
85
</div >
86
+ </div >
87
+ </Card >
63
88
64
- <Aside type = " caution" title = " Early Days" >
65
- TrailBase is very young.
66
- You can expect many new features but also moving APIs until things settle.
67
- We'll make sure to follow semantic versioning and welcome brave, early
68
- adopters.
69
- </Aside >
70
-
71
- </div >
72
- </div >
73
-
74
- <div class = " w-full py-8" >
75
-
76
- <CardGrid stagger >
77
-
78
- <Card title = " Performance" icon = " rocket" >
79
- Blazingly fast thanks to its constituents:
80
-
81
- * Rust: one of the lowest overhead languages,
82
- * Axum: one of the fastest HTTP servers,
83
- * SQLite/Libsql: one of the fastest full-SQL databases.
84
- * V8: one of the fastest JS runtimes
85
-
86
- TrailBase APIs are [ 6-7x faster than PocketBase and 15x faster than SupaBase
87
- needing only a fraction of the footprint] ( /reference/benchmarks ) , allowing
88
- you to serve millions of customers from a tiny box.
89
- TrailBase JS runtime is ~ 40x faster than PocketBase's.
90
- </Card >
89
+ <CardGrid >
91
90
92
91
<Card title = " Simple" icon = " heart" >
93
92
TrailBase is a small, single file, static binary that is incredibly easy
@@ -100,15 +99,6 @@ import { Duration100kInsertsChart } from "./reference/_benchmarks/benchmarks.tsx
100
99
let you move faster, more confidently and pivot when necessary.
101
100
</Card >
102
101
103
- <Card title = " Admin Dashboard" icon = " setting" >
104
- TrailBase ships with a builtin admin dashboard UI, see demo above, that
105
- lets you quickly configure your instance and visually explore your data.
106
- Following TrailBase's mantra of not getting in your way, the UI is
107
- entirely optional letting you fall back to a purely config &
108
- migration-based setup for integration tests or managing an entire fleet
109
- of deployments.
110
- </Card >
111
-
112
102
<Card title = " Authentication" icon = " open-book" >
113
103
TrailBase comes with an authentication system and UI built in supporting
114
104
both password-based and Social/OAuth (Google, Discord, ...) sign-ups.
@@ -151,9 +141,10 @@ import { Duration100kInsertsChart } from "./reference/_benchmarks/benchmarks.tsx
151
141
</Card >
152
142
153
143
</CardGrid >
144
+
154
145
</div >
155
146
156
- import Roadmap from " ./_roadmap.md " ;
147
+ < div class = " h-8 " />
157
148
158
149
<div class = " flex justify-center" >
159
150
<div class = " md:w-[80%] flex flex-col items-center gap-4" >
0 commit comments