Skip to content

Commit b722349

Browse files
committed
docs(ecosystem): add DRZL to ecosystem
1 parent ff7db8b commit b722349

2 files changed

Lines changed: 43 additions & 1 deletion

File tree

ark/docs/content/docs/ecosystem/index.mdx

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,45 @@ console.log(env.HOST) // (property) HOST: string
2626
console.log(env.PORT) // (property) PORT: number
2727
console.log(env.NODE_ENV) // (property) NODE_ENV: "development" | "production" | "test"
2828
```
29+
30+
### DRZL
31+
32+
[DRZL](https://use-drzl.github.io/drzl) is zero-friction codegen for Drizzle ORM, tailored for ArkType developers. It analyzes your Drizzle schemas and generates ArkType validation schemas, services, and routers—eliminating boilerplate and ensuring seamless type safety between your database and application layers.
33+
34+
```ts
35+
// drzl.config.ts
36+
import { defineConfig } from "@drzl/cli/config"
37+
38+
export default defineConfig({
39+
schema: "src/db/schemas/index.ts",
40+
outDir: "src/api",
41+
generators: [
42+
// 1) ArkType validators
43+
{ kind: "arktype", path: "src/validators/arktype", schemaSuffix: "Schema" },
44+
45+
// 2) Routers (oRPC adapter), reusing ArkType schemas
46+
{
47+
kind: "orpc",
48+
template: "@drzl/template-orpc-service",
49+
includeRelations: true,
50+
outputHeader: { enabled: true },
51+
validation: {
52+
useShared: true,
53+
library: "arktype",
54+
importPath: "src/validators/arktype",
55+
schemaSuffix: "Schema"
56+
}
57+
},
58+
// 3) Typed services (Drizzle-aware or stub)
59+
{
60+
kind: "service",
61+
path: "src/services",
62+
dataAccess: "drizzle", // or 'stub'
63+
dbImportPath: "src/db/connection",
64+
schemaImportPath: "src/db/schemas"
65+
}
66+
]
67+
})
68+
69+
> For more details, see the [Getting Started guide](https://use-drzl.github.io/drzl/guide/getting-started.html).
70+
```
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"title": "Ecosystem",
3-
"pages": ["[ArkEnv](/docs/ecosystem#arkenv)"]
3+
"pages": ["[ArkEnv](/docs/ecosystem#arkenv)", "[DRZL](/docs/ecosystem#drzl)"]
44
}

0 commit comments

Comments
 (0)