@veloxts/velox 0.4.14 → 0.6.23
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.
- package/README.md +4 -52
- package/dist/orm.d.ts +1 -1
- package/dist/orm.js +1 -1
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Velox TS Framework
|
|
2
2
|
|
|
3
|
-
**
|
|
3
|
+
> **Early Preview (v0.6.x)** - APIs are stabilizing but may still change. Use with caution in production.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Type-safe full-stack without the build step
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Full-stack TypeScript framework with end-to-end type safety—no code generation required. Convention-driven APIs that generate both tRPC and REST from a single source.
|
|
8
8
|
|
|
9
9
|
## Installation
|
|
10
10
|
|
|
@@ -14,54 +14,6 @@ npm install @veloxts/velox
|
|
|
14
14
|
|
|
15
15
|
This single package includes everything you need to build VeloxTS applications.
|
|
16
16
|
|
|
17
|
-
## Documentation
|
|
18
|
-
|
|
19
|
-
For detailed documentation, usage examples, and API reference, see [GUIDE.md](./GUIDE.md).
|
|
20
|
-
|
|
21
|
-
## Quick Example
|
|
22
|
-
|
|
23
|
-
```typescript
|
|
24
|
-
import { veloxApp, procedure, defineProcedures, rest, z } from '@veloxts/velox';
|
|
25
|
-
|
|
26
|
-
const app = await veloxApp({ port: 3000 });
|
|
27
|
-
|
|
28
|
-
const greetProcedures = defineProcedures('greet', {
|
|
29
|
-
sayHello: procedure()
|
|
30
|
-
.input(z.object({ name: z.string() }))
|
|
31
|
-
.query(({ input }) => `Hello, ${input.name}!`),
|
|
32
|
-
});
|
|
33
|
-
|
|
34
|
-
// Register procedures as REST endpoints
|
|
35
|
-
app.routes(rest([greetProcedures], { prefix: '/api' }));
|
|
36
|
-
|
|
37
|
-
await app.start();
|
|
38
|
-
// GET /api/greet/hello?name=World -> "Hello, World!"
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
## What's Included
|
|
42
|
-
|
|
43
|
-
This umbrella package includes:
|
|
44
|
-
|
|
45
|
-
- **@veloxts/core** - Application bootstrap, plugins, context, dependency injection
|
|
46
|
-
- **@veloxts/validation** - Zod integration and schema utilities
|
|
47
|
-
- **@veloxts/orm** - Database plugin and Prisma integration
|
|
48
|
-
- **@veloxts/router** - Procedure definitions, REST adapter, tRPC
|
|
49
|
-
- **@veloxts/auth** - Authentication and authorization
|
|
50
|
-
|
|
51
|
-
## Separate Packages
|
|
52
|
-
|
|
53
|
-
These packages are installed separately:
|
|
54
|
-
|
|
55
|
-
- **@veloxts/client** - Type-safe frontend API client
|
|
56
|
-
- **@veloxts/cli** - Developer tooling CLI
|
|
57
|
-
- **create-velox-app** - Project scaffolder
|
|
58
|
-
|
|
59
|
-
## Learn More
|
|
60
|
-
|
|
61
|
-
- [Full Documentation](./GUIDE.md)
|
|
62
|
-
- [Getting Started Guide](https://github.com/veloxts/velox-ts-framework#getting-started)
|
|
63
|
-
- [GitHub Repository](https://github.com/veloxts/velox-ts-framework)
|
|
64
|
-
|
|
65
17
|
## License
|
|
66
18
|
|
|
67
19
|
MIT
|
package/dist/orm.d.ts
CHANGED
package/dist/orm.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veloxts/velox",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.23",
|
|
4
4
|
"description": "Complete VeloxTS framework - batteries included",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -36,17 +36,17 @@
|
|
|
36
36
|
"README.md"
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@veloxts/core": "0.
|
|
40
|
-
"@veloxts/validation": "0.
|
|
41
|
-
"@veloxts/
|
|
42
|
-
"@veloxts/
|
|
43
|
-
"@veloxts/
|
|
39
|
+
"@veloxts/core": "0.6.23",
|
|
40
|
+
"@veloxts/validation": "0.6.23",
|
|
41
|
+
"@veloxts/router": "0.6.23",
|
|
42
|
+
"@veloxts/auth": "0.6.23",
|
|
43
|
+
"@veloxts/orm": "0.6.23"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"typescript": "5.9.3"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"zod": "^3.
|
|
49
|
+
"zod": "^3.25.0"
|
|
50
50
|
},
|
|
51
51
|
"keywords": [
|
|
52
52
|
"velox",
|