vertebra-redis 0.3.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. vertebra_redis-0.3.0/PKG-INFO +7 -0
  2. vertebra_redis-0.3.0/py/vertebra/_redis.pyi +297 -0
  3. vertebra_redis-0.3.0/py/vertebra/framework/assets/welcome.css +301 -0
  4. vertebra_redis-0.3.0/py/vertebra/framework/assets/welcome.html +146 -0
  5. vertebra_redis-0.3.0/pyproject.toml +37 -0
  6. vertebra_redis-0.3.0/rs/Cargo.lock +7673 -0
  7. vertebra_redis-0.3.0/rs/Cargo.toml +96 -0
  8. vertebra_redis-0.3.0/rs/vertebra-core/Cargo.toml +73 -0
  9. vertebra_redis-0.3.0/rs/vertebra-core/benches/codec.rs +101 -0
  10. vertebra_redis-0.3.0/rs/vertebra-core/benches/guards.rs +60 -0
  11. vertebra_redis-0.3.0/rs/vertebra-core/benches/ring_throughput.rs +102 -0
  12. vertebra_redis-0.3.0/rs/vertebra-core/benches/shm_transport.rs +237 -0
  13. vertebra_redis-0.3.0/rs/vertebra-core/benches/spsc.rs +261 -0
  14. vertebra_redis-0.3.0/rs/vertebra-core/src/bridge.rs +1650 -0
  15. vertebra_redis-0.3.0/rs/vertebra-core/src/broker.rs +4845 -0
  16. vertebra_redis-0.3.0/rs/vertebra-core/src/broker_attach.rs +1113 -0
  17. vertebra_redis-0.3.0/rs/vertebra-core/src/buffer.rs +203 -0
  18. vertebra_redis-0.3.0/rs/vertebra-core/src/channel.rs +3098 -0
  19. vertebra_redis-0.3.0/rs/vertebra-core/src/cleanup.rs +420 -0
  20. vertebra_redis-0.3.0/rs/vertebra-core/src/dbrpc/mod.rs +173 -0
  21. vertebra_redis-0.3.0/rs/vertebra-core/src/gcp_auth.rs +3231 -0
  22. vertebra_redis-0.3.0/rs/vertebra-core/src/gcp_identity.rs +733 -0
  23. vertebra_redis-0.3.0/rs/vertebra-core/src/guards.rs +174 -0
  24. vertebra_redis-0.3.0/rs/vertebra-core/src/id.rs +341 -0
  25. vertebra_redis-0.3.0/rs/vertebra-core/src/ipc.rs +174 -0
  26. vertebra_redis-0.3.0/rs/vertebra-core/src/layout.rs +32 -0
  27. vertebra_redis-0.3.0/rs/vertebra-core/src/lib.rs +54 -0
  28. vertebra_redis-0.3.0/rs/vertebra-core/src/logger.rs +449 -0
  29. vertebra_redis-0.3.0/rs/vertebra-core/src/notify.rs +878 -0
  30. vertebra_redis-0.3.0/rs/vertebra-core/src/platform/linux.rs +107 -0
  31. vertebra_redis-0.3.0/rs/vertebra-core/src/platform/macos.rs +92 -0
  32. vertebra_redis-0.3.0/rs/vertebra-core/src/platform/mod.rs +48 -0
  33. vertebra_redis-0.3.0/rs/vertebra-core/src/platform/windows.rs +73 -0
  34. vertebra_redis-0.3.0/rs/vertebra-core/src/process.rs +84 -0
  35. vertebra_redis-0.3.0/rs/vertebra-core/src/proto.rs +259 -0
  36. vertebra_redis-0.3.0/rs/vertebra-core/src/protocol/codec.rs +345 -0
  37. vertebra_redis-0.3.0/rs/vertebra-core/src/protocol/mod.rs +52 -0
  38. vertebra_redis-0.3.0/rs/vertebra-core/src/py_async.rs +1497 -0
  39. vertebra_redis-0.3.0/rs/vertebra-core/src/router.rs +133 -0
  40. vertebra_redis-0.3.0/rs/vertebra-core/src/shm.rs +2012 -0
  41. vertebra_redis-0.3.0/rs/vertebra-core/src/sync.rs +188 -0
  42. vertebra_redis-0.3.0/rs/vertebra-core/src/telemetry.rs +197 -0
  43. vertebra_redis-0.3.0/rs/vertebra-core/src/text.rs +1354 -0
  44. vertebra_redis-0.3.0/rs/vertebra-core/src/tiered_ring.rs +170 -0
  45. vertebra_redis-0.3.0/rs/vertebra-core/src/transport/mod.rs +2393 -0
  46. vertebra_redis-0.3.0/rs/vertebra-core/src/transport/ring_pair.rs +1704 -0
  47. vertebra_redis-0.3.0/rs/vertebra-core/src/util.rs +43 -0
  48. vertebra_redis-0.3.0/rs/vertebra-core/src/vector.rs +2117 -0
  49. vertebra_redis-0.3.0/rs/vertebra-core/tests/it/broker.rs +631 -0
  50. vertebra_redis-0.3.0/rs/vertebra-core/tests/it/gcp_auth.rs +1891 -0
  51. vertebra_redis-0.3.0/rs/vertebra-core/tests/it/main.rs +19 -0
  52. vertebra_redis-0.3.0/rs/vertebra-core/tests/it/mpmc.rs +278 -0
  53. vertebra_redis-0.3.0/rs/vertebra-core/tests/it/ring.rs +336 -0
  54. vertebra_redis-0.3.0/rs/vertebra-core/tests/it/shm.rs +661 -0
  55. vertebra_redis-0.3.0/rs/vertebra-core/tests/it/shm_streaming.rs +130 -0
  56. vertebra_redis-0.3.0/rs/vertebra-db/Cargo.toml +107 -0
  57. vertebra_redis-0.3.0/rs/vertebra-db/build.rs +11 -0
  58. vertebra_redis-0.3.0/rs/vertebra-db/src/arrow_shm.rs +526 -0
  59. vertebra_redis-0.3.0/rs/vertebra-db/src/aws_rds_root_cas.pem +2888 -0
  60. vertebra_redis-0.3.0/rs/vertebra-db/src/broker_capsule.rs +1312 -0
  61. vertebra_redis-0.3.0/rs/vertebra-db/src/connection.rs +1834 -0
  62. vertebra_redis-0.3.0/rs/vertebra-db/src/dialer.rs +1760 -0
  63. vertebra_redis-0.3.0/rs/vertebra-db/src/duckdb/mod.rs +101 -0
  64. vertebra_redis-0.3.0/rs/vertebra-db/src/gcp.rs +268 -0
  65. vertebra_redis-0.3.0/rs/vertebra-db/src/lease_guard.rs +147 -0
  66. vertebra_redis-0.3.0/rs/vertebra-db/src/lib.rs +103 -0
  67. vertebra_redis-0.3.0/rs/vertebra-db/src/mssql/mod.rs +216 -0
  68. vertebra_redis-0.3.0/rs/vertebra-db/src/oracle/mod.rs +279 -0
  69. vertebra_redis-0.3.0/rs/vertebra-db/src/oracle/tns.rs +277 -0
  70. vertebra_redis-0.3.0/rs/vertebra-db/src/postgres/mod.rs +442 -0
  71. vertebra_redis-0.3.0/rs/vertebra-db/src/py_async.rs +669 -0
  72. vertebra_redis-0.3.0/rs/vertebra-db/src/py_broker.rs +98 -0
  73. vertebra_redis-0.3.0/rs/vertebra-db/src/py_cursor.rs +241 -0
  74. vertebra_redis-0.3.0/rs/vertebra-db/src/py_errors.rs +303 -0
  75. vertebra_redis-0.3.0/rs/vertebra-db/tests/arrow_shm_stream_tests.rs +105 -0
  76. vertebra_redis-0.3.0/rs/vertebra-db/tests/broker_engine_capsule_tests.rs +198 -0
  77. vertebra_redis-0.3.0/rs/vertebra-db/tests/gcp_credentials_tests.rs +57 -0
  78. vertebra_redis-0.3.0/rs/vertebra-db/tests/postgres_vector_tests.rs +114 -0
  79. vertebra_redis-0.3.0/rs/vertebra-redis/Cargo.toml +31 -0
  80. vertebra_redis-0.3.0/rs/vertebra-redis/build.rs +9 -0
  81. vertebra_redis-0.3.0/rs/vertebra-redis/src/lib.rs +105 -0
  82. vertebra_redis-0.3.0/rs/vertebra-redis/src/pubsub.rs +266 -0
  83. vertebra_redis-0.3.0/rs/vertebra-redis/src/py_client.rs +1262 -0
  84. vertebra_redis-0.3.0/rs/vertebra-redis/tests/redis_client.rs +367 -0
  85. vertebra_redis-0.3.0/rs/vertebra-resp/Cargo.toml +31 -0
  86. vertebra_redis-0.3.0/rs/vertebra-resp/src/client.rs +2523 -0
  87. vertebra_redis-0.3.0/rs/vertebra-resp/src/cluster.rs +512 -0
  88. vertebra_redis-0.3.0/rs/vertebra-resp/src/codec.rs +699 -0
  89. vertebra_redis-0.3.0/rs/vertebra-resp/src/config.rs +1315 -0
  90. vertebra_redis-0.3.0/rs/vertebra-resp/src/error.rs +294 -0
  91. vertebra_redis-0.3.0/rs/vertebra-resp/src/lib.rs +108 -0
  92. vertebra_redis-0.3.0/rs/vertebra-resp/src/pubsub.rs +1258 -0
  93. vertebra_redis-0.3.0/rs/vertebra-resp/src/sentinel.rs +148 -0
  94. vertebra_redis-0.3.0/rs/vertebra-resp/src/streams.rs +422 -0
  95. vertebra_redis-0.3.0/rs/vertebra-resp/src/tracking.rs +231 -0
  96. vertebra_redis-0.3.0/rs/vertebra-resp/src/transport.rs +558 -0
@@ -0,0 +1,7 @@
1
+ Metadata-Version: 2.4
2
+ Name: vertebra-redis
3
+ Version: 0.3.0
4
+ Requires-Dist: vertebra-core==0.3.0
5
+ Summary: Native Rust Redis 7.2+/8.0 client and pool extension for Vertebra.
6
+ License: MIT
7
+ Requires-Python: >=3.12
@@ -0,0 +1,297 @@
1
+ """Type stubs for the vertebra._redis native extension module."""
2
+
3
+ from collections.abc import Awaitable
4
+ from typing import Any, Final, final
5
+
6
+ __version__: str
7
+ FREE_THREADED: bool
8
+ GIL_USED: Final[bool] = False
9
+
10
+ __all__ = [
11
+ "AsyncRedisClient",
12
+ "AsyncRedisListener",
13
+ "AsyncRedisPipeline",
14
+ "FREE_THREADED",
15
+ "GIL_USED",
16
+ "SyncRedisClient",
17
+ "SyncRedisListener",
18
+ "SyncRedisPipeline",
19
+ "__version__",
20
+ "crc16_xmodem",
21
+ "hash_slot",
22
+ "parse_cluster_redirect",
23
+ "redis_hash_slot",
24
+ ]
25
+
26
+ def crc16_xmodem(data: bytes | str) -> int: ...
27
+ def hash_slot(key: bytes | str) -> int: ...
28
+ def redis_hash_slot(key: bytes | str) -> int: ...
29
+ def parse_cluster_redirect(err_msg: str | bytes) -> tuple[str, int, str, int] | None: ...
30
+
31
+ @final
32
+ class SyncRedisPipeline:
33
+ def execute_command(self, args: Any) -> SyncRedisPipeline: ...
34
+ def results(self) -> list[Any]: ...
35
+
36
+ @final
37
+ class AsyncRedisPipeline:
38
+ def execute_command(self, args: Any) -> AsyncRedisPipeline: ...
39
+ def results(self) -> Awaitable[list[Any]]: ...
40
+ def submit_results(self) -> Awaitable[list[Any]]: ...
41
+
42
+ @final
43
+ class SyncRedisListener:
44
+ @property
45
+ def closed(self) -> bool: ...
46
+ def subscribe(self, channels: list[str]) -> None: ...
47
+ def psubscribe(self, patterns: list[str]) -> None: ...
48
+ def ssubscribe(self, shard_channels: list[str]) -> None: ...
49
+ def unsubscribe(self, channels: list[str] = ...) -> None: ...
50
+ def punsubscribe(self, patterns: list[str] = ...) -> None: ...
51
+ def sunsubscribe(self, shard_channels: list[str] = ...) -> None: ...
52
+ def next_message(self, timeout_ms: int | None = ...) -> tuple[str, str, bytes, str | None] | None: ...
53
+ def drain_messages(self) -> list[tuple[str, str, bytes, str | None]]: ...
54
+ def close(self) -> None: ...
55
+
56
+ @final
57
+ class AsyncRedisListener:
58
+ @property
59
+ def closed(self) -> bool: ...
60
+ def submit_subscribe(self, channels: list[str]) -> int: ...
61
+ def submit_psubscribe(self, patterns: list[str]) -> int: ...
62
+ def submit_ssubscribe(self, shard_channels: list[str]) -> int: ...
63
+ def submit_unsubscribe(self, channels: list[str] = ...) -> int: ...
64
+ def submit_punsubscribe(self, patterns: list[str] = ...) -> int: ...
65
+ def submit_sunsubscribe(self, shard_channels: list[str] = ...) -> int: ...
66
+ def subscribe(self, channels: list[str]) -> None: ...
67
+ def psubscribe(self, patterns: list[str]) -> None: ...
68
+ def ssubscribe(self, shard_channels: list[str]) -> None: ...
69
+ def unsubscribe(self, channels: list[str] = ...) -> None: ...
70
+ def punsubscribe(self, patterns: list[str] = ...) -> None: ...
71
+ def sunsubscribe(self, shard_channels: list[str] = ...) -> None: ...
72
+ def next_message(self, timeout_ms: int | None = ...) -> tuple[str, str, bytes, str | None] | None: ...
73
+ def drain_messages(self) -> list[tuple[str, str, bytes, str | None]]: ...
74
+ def drain_completions(self) -> list[tuple[int, bool, str | None]]: ...
75
+ def cancel_operation(self, op_id: int) -> bool: ...
76
+ def notifier_fd(self) -> int: ...
77
+ def close(self) -> None: ...
78
+
79
+ @final
80
+ class SyncRedisClient:
81
+ def __new__(
82
+ cls,
83
+ url: str,
84
+ username: str | None = ...,
85
+ password: str | None = ...,
86
+ client_name: str = ...,
87
+ protocol: int = ...,
88
+ topology: str = ...,
89
+ sentinel_master_name: str | None = ...,
90
+ sentinel_nodes: list[tuple[str, int]] = ...,
91
+ cluster_nodes: list[tuple[str, int]] = ...,
92
+ max_redirections: int = ...,
93
+ enable_client_side_caching: bool = ...,
94
+ client_tracking_prefixes: list[str] = ...,
95
+ client_cache_capacity: int = ...,
96
+ client_cache_ttl_seconds: float | None = ...,
97
+ enable_gcp_iam_auth: bool = ...,
98
+ token_cache_capsule: Any | None = ...,
99
+ max_connections: int = ...,
100
+ ) -> SyncRedisClient: ...
101
+ @property
102
+ def closed(self) -> bool: ...
103
+ def connect(self) -> None: ...
104
+ def close(self) -> None: ...
105
+ def reconnect(self, password: str | None = ...) -> None: ...
106
+ def get(self, key: Any) -> bytes | None: ...
107
+ def set(
108
+ self,
109
+ key: Any,
110
+ value: Any,
111
+ ex: int | None = ...,
112
+ px: int | None = ...,
113
+ nx: bool = ...,
114
+ xx: bool = ...,
115
+ ) -> bool: ...
116
+ def delete(self, keys: Any) -> int: ...
117
+ def unlink(self, keys: Any) -> int: ...
118
+ def pttl(self, key: Any) -> int: ...
119
+ def scan(
120
+ self,
121
+ cursor: int = ...,
122
+ match_pattern: str | None = ...,
123
+ count: int | None = ...,
124
+ ) -> tuple[int, list[bytes]]: ...
125
+ def flushdb(self) -> None: ...
126
+ def publish(self, channel: str, message: Any) -> int: ...
127
+ def spublish(self, shard_channel: str, message: Any) -> int: ...
128
+ def execute_command(self, args: Any) -> Any: ...
129
+ def pipeline(self, atomic: bool = ...) -> SyncRedisPipeline: ...
130
+ def eval_script(self, script: str, keys: Any, args: Any) -> Any: ...
131
+ def create_listener(self) -> SyncRedisListener: ...
132
+ def listener(self) -> SyncRedisListener: ...
133
+ def cached_keys(self) -> list[str]: ...
134
+ def drain_invalidations(self) -> list[str]: ...
135
+ def slot_map(self) -> dict[int, tuple[str, int]]: ...
136
+ def xgroup_create(
137
+ self,
138
+ stream: str,
139
+ group: str,
140
+ id: str = ...,
141
+ mkstream: bool = ...,
142
+ ) -> bool: ...
143
+ def xadd(
144
+ self,
145
+ stream: str,
146
+ fields: Any,
147
+ id: str = ...,
148
+ maxlen: int | None = ...,
149
+ approximate: bool = ...,
150
+ ) -> bytes: ...
151
+ def xreadgroup(
152
+ self,
153
+ group: str,
154
+ consumer: str,
155
+ streams_obj: Any,
156
+ count: int | None = ...,
157
+ block_ms: int | None = ...,
158
+ ) -> Any: ...
159
+ def xack(self, stream: str, group: str, ids: Any) -> int: ...
160
+ def xautoclaim(
161
+ self,
162
+ stream: str,
163
+ group: str,
164
+ consumer: str,
165
+ min_idle_ms: int,
166
+ start_id: str = ...,
167
+ count: int | None = ...,
168
+ ) -> Any: ...
169
+ def xrange(
170
+ self,
171
+ stream: str,
172
+ start: str = ...,
173
+ end: str = ...,
174
+ count: int | None = ...,
175
+ ) -> Any: ...
176
+ def xdel(self, stream: str, ids: Any) -> int: ...
177
+ def zadd(self, key: str, mapping: Any) -> int: ...
178
+ def zrangebyscore(
179
+ self,
180
+ key: str,
181
+ min: str,
182
+ max: str,
183
+ withscores: bool = ...,
184
+ offset: int | None = ...,
185
+ count: int | None = ...,
186
+ ) -> Any: ...
187
+ def zrem(self, key: str, members: Any) -> int: ...
188
+
189
+ @final
190
+ class AsyncRedisClient:
191
+ def __new__(
192
+ cls,
193
+ url: str,
194
+ username: str | None = ...,
195
+ password: str | None = ...,
196
+ client_name: str = ...,
197
+ protocol: int = ...,
198
+ topology: str = ...,
199
+ sentinel_master_name: str | None = ...,
200
+ sentinel_nodes: list[tuple[str, int]] = ...,
201
+ cluster_nodes: list[tuple[str, int]] = ...,
202
+ max_redirections: int = ...,
203
+ enable_client_side_caching: bool = ...,
204
+ client_tracking_prefixes: list[str] = ...,
205
+ client_cache_capacity: int = ...,
206
+ client_cache_ttl_seconds: float | None = ...,
207
+ enable_gcp_iam_auth: bool = ...,
208
+ token_cache_capsule: Any | None = ...,
209
+ max_connections: int = ...,
210
+ ) -> AsyncRedisClient: ...
211
+ @property
212
+ def closed(self) -> bool: ...
213
+ def connect(self) -> Awaitable[None]: ...
214
+ def close(self) -> None: ...
215
+ def reconnect(self, password: str | None = ...) -> Awaitable[None]: ...
216
+ def get(self, key: Any) -> Awaitable[bytes | None]: ...
217
+ def set(
218
+ self,
219
+ key: Any,
220
+ value: Any,
221
+ ex: int | None = ...,
222
+ px: int | None = ...,
223
+ nx: bool = ...,
224
+ xx: bool = ...,
225
+ ) -> Awaitable[bool]: ...
226
+ def delete(self, keys: Any) -> Awaitable[int]: ...
227
+ def unlink(self, keys: Any) -> Awaitable[int]: ...
228
+ def pttl(self, key: Any) -> Awaitable[int]: ...
229
+ def scan(
230
+ self,
231
+ cursor: int = ...,
232
+ match_pattern: str | None = ...,
233
+ count: int | None = ...,
234
+ ) -> Awaitable[tuple[int, list[bytes]]]: ...
235
+ def flushdb(self) -> Awaitable[None]: ...
236
+ def publish(self, channel: str, message: Any) -> Awaitable[int]: ...
237
+ def spublish(self, shard_channel: str, message: Any) -> Awaitable[int]: ...
238
+ def execute_command(self, args: Any) -> Awaitable[Any]: ...
239
+ def pipeline(self, atomic: bool = ...) -> AsyncRedisPipeline: ...
240
+ def eval_script(self, script: str, keys: Any, args: Any) -> Awaitable[Any]: ...
241
+ def create_listener(self) -> AsyncRedisListener: ...
242
+ def listener(self) -> AsyncRedisListener: ...
243
+ def cached_keys(self) -> list[str]: ...
244
+ def drain_invalidations(self) -> list[str]: ...
245
+ def slot_map(self) -> dict[int, tuple[str, int]]: ...
246
+ def xgroup_create(
247
+ self,
248
+ stream: str,
249
+ group: str,
250
+ id: str = ...,
251
+ mkstream: bool = ...,
252
+ ) -> Awaitable[bool]: ...
253
+ def xadd(
254
+ self,
255
+ stream: str,
256
+ fields: Any,
257
+ id: str = ...,
258
+ maxlen: int | None = ...,
259
+ approximate: bool = ...,
260
+ ) -> Awaitable[bytes]: ...
261
+ def xreadgroup(
262
+ self,
263
+ group: str,
264
+ consumer: str,
265
+ streams_obj: Any,
266
+ count: int | None = ...,
267
+ block_ms: int | None = ...,
268
+ ) -> Awaitable[Any]: ...
269
+ def xack(self, stream: str, group: str, ids: Any) -> Awaitable[int]: ...
270
+ def xautoclaim(
271
+ self,
272
+ stream: str,
273
+ group: str,
274
+ consumer: str,
275
+ min_idle_ms: int,
276
+ start_id: str = ...,
277
+ count: int | None = ...,
278
+ ) -> Awaitable[Any]: ...
279
+ def xrange(
280
+ self,
281
+ stream: str,
282
+ start: str = ...,
283
+ end: str = ...,
284
+ count: int | None = ...,
285
+ ) -> Awaitable[Any]: ...
286
+ def xdel(self, stream: str, ids: Any) -> Awaitable[int]: ...
287
+ def zadd(self, key: str, mapping: Any) -> Awaitable[int]: ...
288
+ def zrangebyscore(
289
+ self,
290
+ key: str,
291
+ min: str,
292
+ max: str,
293
+ withscores: bool = ...,
294
+ offset: int | None = ...,
295
+ count: int | None = ...,
296
+ ) -> Awaitable[Any]: ...
297
+ def zrem(self, key: str, members: Any) -> Awaitable[int]: ...
@@ -0,0 +1,301 @@
1
+ :root, [data-theme="dark"] {
2
+ --bg-canvas: #0f172a;
3
+ --bg-surface: rgba(30, 41, 59, 0.72);
4
+ --bg-code: #0b1120;
5
+ --bg-code-header: #111827;
6
+ --bg-pill: rgba(30, 41, 59, 0.9);
7
+ --text-primary: #f1f5f9;
8
+ --text-secondary: #94a3b8;
9
+ --text-muted: #64748b;
10
+ --accent-primary: #3b82f6;
11
+ --accent-indigo: #818cf8;
12
+ --border-subtle: rgba(148, 163, 184, 0.16);
13
+ --border-hover: rgba(96, 165, 250, 0.45);
14
+ --glow-a: rgba(37, 99, 235, 0.16);
15
+ --glow-b: rgba(99, 102, 241, 0.12);
16
+ --wave-stroke: rgba(96, 165, 250, 0.12);
17
+ --hl-kw: #c4b5fd;
18
+ --hl-fn: #60a5fa;
19
+ --hl-str: #86efac;
20
+ --hl-dec: #2dd4bf;
21
+ }
22
+ [data-theme="light"] {
23
+ --bg-canvas: #ffffff;
24
+ --bg-surface: rgba(248, 250, 252, 0.88);
25
+ --bg-code: #f8fafc;
26
+ --bg-code-header: #f1f5f9;
27
+ --bg-pill: #f1f5f9;
28
+ --text-primary: #0f172a;
29
+ --text-secondary: #475569;
30
+ --text-muted: #64748b;
31
+ --accent-primary: #1d4ed8;
32
+ --accent-indigo: #4338ca;
33
+ --border-subtle: #e2e8f0;
34
+ --border-hover: #93c5fd;
35
+ --glow-a: rgba(37, 99, 235, 0.07);
36
+ --glow-b: rgba(67, 56, 202, 0.06);
37
+ --wave-stroke: rgba(37, 99, 235, 0.09);
38
+ --hl-kw: #6d28d9;
39
+ --hl-fn: #1d4ed8;
40
+ --hl-str: #15803d;
41
+ --hl-dec: #0f766e;
42
+ }
43
+ * {
44
+ box-sizing: border-box;
45
+ margin: 0;
46
+ padding: 0;
47
+ }
48
+ html, body {
49
+ min-height: 100vh;
50
+ font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
51
+ background-color: var(--bg-canvas);
52
+ color: var(--text-primary);
53
+ line-height: 1.55;
54
+ -webkit-font-smoothing: antialiased;
55
+ }
56
+ body {
57
+ position: relative;
58
+ overflow-x: hidden;
59
+ display: flex;
60
+ flex-direction: column;
61
+ justify-content: space-between;
62
+ background-image:
63
+ radial-gradient(ellipse 60% 45% at 25% 15%, var(--glow-a), transparent),
64
+ radial-gradient(ellipse 55% 45% at 78% 82%, var(--glow-b), transparent);
65
+ }
66
+ code, pre, .mono {
67
+ font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
68
+ }
69
+ .ambient-waves {
70
+ position: fixed;
71
+ inset: 0;
72
+ width: 100%;
73
+ height: 100%;
74
+ pointer-events: none;
75
+ z-index: 0;
76
+ }
77
+ .page {
78
+ position: relative;
79
+ z-index: 1;
80
+ max-width: 820px;
81
+ width: 100%;
82
+ margin: 0 auto;
83
+ padding: 1.75rem 1.5rem 2.5rem;
84
+ display: flex;
85
+ flex-direction: column;
86
+ gap: 2rem;
87
+ flex: 1;
88
+ justify-content: center;
89
+ }
90
+ .topbar {
91
+ display: flex;
92
+ align-items: center;
93
+ justify-content: space-between;
94
+ gap: 1rem;
95
+ flex-wrap: wrap;
96
+ }
97
+ .status-badge {
98
+ display: inline-flex;
99
+ align-items: center;
100
+ gap: 0.55rem;
101
+ padding: 0.35rem 0.85rem;
102
+ border-radius: 999px;
103
+ background: var(--bg-pill);
104
+ border: 1px solid var(--border-subtle);
105
+ font-size: 0.78rem;
106
+ color: var(--text-secondary);
107
+ backdrop-filter: blur(8px);
108
+ }
109
+ .status-dot {
110
+ width: 8px;
111
+ height: 8px;
112
+ border-radius: 50%;
113
+ background: #10b981;
114
+ box-shadow: 0 0 8px rgba(16, 185, 129, 0.7);
115
+ }
116
+ .status-sep {
117
+ color: var(--text-muted);
118
+ }
119
+ .theme-btn {
120
+ display: inline-flex;
121
+ align-items: center;
122
+ gap: 0.4rem;
123
+ padding: 0.35rem 0.8rem;
124
+ border-radius: 8px;
125
+ border: 1px solid var(--border-subtle);
126
+ background: var(--bg-pill);
127
+ color: var(--text-secondary);
128
+ font-size: 0.78rem;
129
+ font-weight: 500;
130
+ cursor: pointer;
131
+ transition: border-color 0.15s ease, color 0.15s ease;
132
+ }
133
+ .theme-btn:hover {
134
+ border-color: var(--border-hover);
135
+ color: var(--text-primary);
136
+ }
137
+ .hero {
138
+ text-align: center;
139
+ padding: 0.5rem 0;
140
+ }
141
+ .hero-lockup {
142
+ display: inline-flex;
143
+ align-items: center;
144
+ justify-content: center;
145
+ gap: 1.35rem;
146
+ margin-bottom: 1.15rem;
147
+ }
148
+ .hero-logo {
149
+ width: 64px;
150
+ height: 64px;
151
+ flex-shrink: 0;
152
+ }
153
+ .hero-divider {
154
+ width: 1px;
155
+ height: 48px;
156
+ background: var(--border-subtle);
157
+ }
158
+ .brand-title {
159
+ font-size: 2.5rem;
160
+ font-weight: 300;
161
+ letter-spacing: 0.24em;
162
+ text-transform: uppercase;
163
+ color: var(--text-primary);
164
+ line-height: 1;
165
+ }
166
+ .hero-lead {
167
+ max-width: 36rem;
168
+ margin: 0 auto;
169
+ font-size: 0.96rem;
170
+ color: var(--text-secondary);
171
+ }
172
+ .hero-lead code {
173
+ padding: 0.12rem 0.4rem;
174
+ border-radius: 5px;
175
+ background: var(--bg-pill);
176
+ border: 1px solid var(--border-subtle);
177
+ color: var(--text-primary);
178
+ font-size: 0.84rem;
179
+ }
180
+ .code-card {
181
+ background: var(--bg-code);
182
+ border: 1px solid var(--border-subtle);
183
+ border-radius: 12px;
184
+ overflow: hidden;
185
+ box-shadow: 0 14px 32px -12px rgba(2, 6, 23, 0.35);
186
+ }
187
+ .code-header {
188
+ display: flex;
189
+ align-items: center;
190
+ justify-content: space-between;
191
+ padding: 0.55rem 1rem;
192
+ background: var(--bg-code-header);
193
+ border-bottom: 1px solid var(--border-subtle);
194
+ font-size: 0.76rem;
195
+ color: var(--text-muted);
196
+ }
197
+ .copy-btn {
198
+ padding: 0.2rem 0.6rem;
199
+ border-radius: 6px;
200
+ border: 1px solid var(--border-subtle);
201
+ background: transparent;
202
+ color: var(--text-secondary);
203
+ font-size: 0.72rem;
204
+ font-weight: 600;
205
+ cursor: pointer;
206
+ }
207
+ .copy-btn:hover {
208
+ border-color: var(--border-hover);
209
+ color: var(--text-primary);
210
+ }
211
+ pre.code-body {
212
+ padding: 1.1rem 1.25rem;
213
+ font-size: 0.83rem;
214
+ line-height: 1.65;
215
+ overflow-x: auto;
216
+ color: var(--text-primary);
217
+ }
218
+ .kw { color: var(--hl-kw); }
219
+ .fn { color: var(--hl-fn); }
220
+ .str { color: var(--hl-str); }
221
+ .dec { color: var(--hl-dec); }
222
+ .endpoints-bar {
223
+ display: flex;
224
+ align-items: center;
225
+ justify-content: center;
226
+ flex-wrap: wrap;
227
+ gap: 0.5rem;
228
+ }
229
+ .endpoint-chip {
230
+ display: inline-flex;
231
+ align-items: center;
232
+ gap: 0.45rem;
233
+ padding: 0.28rem 0.65rem;
234
+ border-radius: 7px;
235
+ background: var(--bg-surface);
236
+ border: 1px solid var(--border-subtle);
237
+ font-size: 0.75rem;
238
+ color: var(--text-secondary);
239
+ text-decoration: none;
240
+ transition: border-color 0.15s ease, color 0.15s ease;
241
+ }
242
+ a.endpoint-chip:hover {
243
+ border-color: var(--border-hover);
244
+ color: var(--text-primary);
245
+ }
246
+ .chip-method {
247
+ font-weight: 700;
248
+ font-size: 0.68rem;
249
+ color: var(--accent-primary);
250
+ }
251
+ .chip-tag {
252
+ color: var(--text-muted);
253
+ font-size: 0.68rem;
254
+ }
255
+ .links-grid {
256
+ display: grid;
257
+ grid-template-columns: repeat(3, 1fr);
258
+ gap: 0.9rem;
259
+ }
260
+ @media (max-width: 680px) {
261
+ .links-grid {
262
+ grid-template-columns: 1fr;
263
+ }
264
+ .brand-title {
265
+ font-size: 1.85rem;
266
+ letter-spacing: 0.16em;
267
+ }
268
+ }
269
+ .link-card {
270
+ display: flex;
271
+ flex-direction: column;
272
+ gap: 0.25rem;
273
+ padding: 1rem 1.15rem;
274
+ border-radius: 11px;
275
+ background: var(--bg-surface);
276
+ border: 1px solid var(--border-subtle);
277
+ text-decoration: none;
278
+ color: var(--text-primary);
279
+ backdrop-filter: blur(8px);
280
+ transition: border-color 0.15s ease, transform 0.15s ease;
281
+ }
282
+ .link-card:hover {
283
+ border-color: var(--border-hover);
284
+ transform: translateY(-1px);
285
+ }
286
+ .link-card-title {
287
+ display: flex;
288
+ align-items: center;
289
+ justify-content: space-between;
290
+ font-size: 0.88rem;
291
+ font-weight: 600;
292
+ color: var(--text-primary);
293
+ }
294
+ .link-card-arrow {
295
+ color: var(--accent-primary);
296
+ font-size: 0.9rem;
297
+ }
298
+ .link-card-desc {
299
+ font-size: 0.78rem;
300
+ color: var(--text-secondary);
301
+ }