@veloxts/velox 0.3.0

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 VeloxTS Framework Contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,90 @@
1
+ # @veloxts/velox
2
+
3
+ > **Alpha Release** - This framework is in early development. APIs may change between versions. Not recommended for production use yet.
4
+
5
+ Complete VeloxTS framework - batteries included.
6
+
7
+ ## Installation
8
+
9
+ ```bash
10
+ npm install @veloxts/velox
11
+ # or
12
+ pnpm add @veloxts/velox
13
+ # or
14
+ yarn add @veloxts/velox
15
+ ```
16
+
17
+ ## Usage
18
+
19
+ ### Quick Start
20
+
21
+ ```typescript
22
+ import { createVeloxApp, procedure, defineProcedures, z } from '@veloxts/velox';
23
+
24
+ const app = await createVeloxApp({ port: 3000 });
25
+
26
+ const myProcedures = defineProcedures('greet', {
27
+ sayHello: procedure()
28
+ .input(z.object({ name: z.string() }))
29
+ .query(({ input }) => `Hello, ${input.name}!`),
30
+ });
31
+
32
+ await app.start();
33
+ ```
34
+
35
+ ### Import Patterns
36
+
37
+ VeloxTS supports three import patterns for different needs:
38
+
39
+ #### 1. Main Export (Simplest)
40
+
41
+ ```typescript
42
+ import { createVeloxApp, procedure, z } from '@veloxts/velox';
43
+ ```
44
+
45
+ #### 2. Subpath Imports (Better Tree-Shaking)
46
+
47
+ ```typescript
48
+ import { createVeloxApp } from '@veloxts/velox/core';
49
+ import { procedure, defineProcedures } from '@veloxts/velox/router';
50
+ import { z } from '@veloxts/velox/validation';
51
+ import { createDatabasePlugin } from '@veloxts/velox/orm';
52
+ ```
53
+
54
+ #### 3. Direct Package Imports (Best Tree-Shaking)
55
+
56
+ ```typescript
57
+ import { createVeloxApp } from '@veloxts/core';
58
+ import { procedure, defineProcedures } from '@veloxts/router';
59
+ import { z } from '@veloxts/validation';
60
+ import { createDatabasePlugin } from '@veloxts/orm';
61
+ ```
62
+
63
+ ## Included Packages
64
+
65
+ This umbrella package includes:
66
+
67
+ | Package | Description |
68
+ |---------|-------------|
69
+ | `@veloxts/core` | Application bootstrap, plugins, context |
70
+ | `@veloxts/validation` | Zod integration and schema utilities |
71
+ | `@veloxts/orm` | Database plugin and Prisma integration |
72
+ | `@veloxts/router` | Procedure definitions, REST adapter, tRPC |
73
+ | `@veloxts/auth` | Authentication and authorization (v1.1+) |
74
+
75
+ ## Not Included
76
+
77
+ These packages are installed separately:
78
+
79
+ - `@veloxts/client` - Type-safe frontend API client
80
+ - `@veloxts/cli` - Developer tooling CLI
81
+ - `create-velox-app` - Project scaffolder
82
+
83
+ ## Documentation
84
+
85
+ - [VeloxTS Documentation](https://veloxts.dev)
86
+ - [GitHub Repository](https://github.com/veloxts/velox-ts-framework)
87
+
88
+ ## License
89
+
90
+ MIT
package/dist/auth.d.ts ADDED
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @veloxts/velox/auth - Auth package re-export
3
+ *
4
+ * Authentication and authorization features (coming in v1.1+)
5
+ *
6
+ * Use this subpath for better tree-shaking:
7
+ * @example
8
+ * ```typescript
9
+ * import { createAuth, guard } from '@veloxts/velox/auth';
10
+ * ```
11
+ */
12
+ export * from '@veloxts/auth';
13
+ //# sourceMappingURL=auth.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../src/auth.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,cAAc,eAAe,CAAC"}
package/dist/auth.js ADDED
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @veloxts/velox/auth - Auth package re-export
3
+ *
4
+ * Authentication and authorization features (coming in v1.1+)
5
+ *
6
+ * Use this subpath for better tree-shaking:
7
+ * @example
8
+ * ```typescript
9
+ * import { createAuth, guard } from '@veloxts/velox/auth';
10
+ * ```
11
+ */
12
+ export * from '@veloxts/auth';
13
+ //# sourceMappingURL=auth.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.js","sourceRoot":"","sources":["../src/auth.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,cAAc,eAAe,CAAC"}
package/dist/core.d.ts ADDED
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @veloxts/velox/core - Core package re-export
3
+ *
4
+ * Use this subpath for better tree-shaking:
5
+ * @example
6
+ * ```typescript
7
+ * import { createVeloxApp, definePlugin } from '@veloxts/velox/core';
8
+ * ```
9
+ */
10
+ export * from '@veloxts/core';
11
+ //# sourceMappingURL=core.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../src/core.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,cAAc,eAAe,CAAC"}
package/dist/core.js ADDED
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @veloxts/velox/core - Core package re-export
3
+ *
4
+ * Use this subpath for better tree-shaking:
5
+ * @example
6
+ * ```typescript
7
+ * import { createVeloxApp, definePlugin } from '@veloxts/velox/core';
8
+ * ```
9
+ */
10
+ export * from '@veloxts/core';
11
+ //# sourceMappingURL=core.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"core.js","sourceRoot":"","sources":["../src/core.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,cAAc,eAAe,CAAC"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * @veloxts/velox - Complete VeloxTS Framework
3
+ *
4
+ * Umbrella package that re-exports all VeloxTS framework packages.
5
+ * Install this single package to get started with VeloxTS.
6
+ *
7
+ * @example
8
+ * ```typescript
9
+ * import { createVeloxApp, procedure, z } from '@veloxts/velox';
10
+ * ```
11
+ *
12
+ * For better tree-shaking, use subpath imports:
13
+ * @example
14
+ * ```typescript
15
+ * import { createVeloxApp } from '@veloxts/velox/core';
16
+ * import { procedure } from '@veloxts/velox/router';
17
+ * ```
18
+ */
19
+ export * from '@veloxts/core';
20
+ export * from '@veloxts/validation';
21
+ export * from '@veloxts/orm';
22
+ export * from '@veloxts/router';
23
+ export * from '@veloxts/auth';
24
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAGH,cAAc,eAAe,CAAC;AAG9B,cAAc,qBAAqB,CAAC;AAGpC,cAAc,cAAc,CAAC;AAG7B,cAAc,iBAAiB,CAAC;AAGhC,cAAc,eAAe,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,29 @@
1
+ /**
2
+ * @veloxts/velox - Complete VeloxTS Framework
3
+ *
4
+ * Umbrella package that re-exports all VeloxTS framework packages.
5
+ * Install this single package to get started with VeloxTS.
6
+ *
7
+ * @example
8
+ * ```typescript
9
+ * import { createVeloxApp, procedure, z } from '@veloxts/velox';
10
+ * ```
11
+ *
12
+ * For better tree-shaking, use subpath imports:
13
+ * @example
14
+ * ```typescript
15
+ * import { createVeloxApp } from '@veloxts/velox/core';
16
+ * import { procedure } from '@veloxts/velox/router';
17
+ * ```
18
+ */
19
+ // Core - Application bootstrap, plugins, context
20
+ export * from '@veloxts/core';
21
+ // Validation - Zod integration and schema utilities
22
+ export * from '@veloxts/validation';
23
+ // ORM - Database plugin and Prisma integration
24
+ export * from '@veloxts/orm';
25
+ // Router - Procedure definitions, REST adapter, tRPC
26
+ export * from '@veloxts/router';
27
+ // Auth - Authentication and authorization (v1.1+)
28
+ export * from '@veloxts/auth';
29
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,iDAAiD;AACjD,cAAc,eAAe,CAAC;AAE9B,oDAAoD;AACpD,cAAc,qBAAqB,CAAC;AAEpC,+CAA+C;AAC/C,cAAc,cAAc,CAAC;AAE7B,qDAAqD;AACrD,cAAc,iBAAiB,CAAC;AAEhC,kDAAkD;AAClD,cAAc,eAAe,CAAC"}
package/dist/orm.d.ts ADDED
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @veloxts/velox/orm - ORM package re-export
3
+ *
4
+ * Use this subpath for better tree-shaking:
5
+ * @example
6
+ * ```typescript
7
+ * import { createDatabasePlugin } from '@veloxts/velox/orm';
8
+ * ```
9
+ */
10
+ export * from '@veloxts/orm';
11
+ //# sourceMappingURL=orm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"orm.d.ts","sourceRoot":"","sources":["../src/orm.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,cAAc,cAAc,CAAC"}
package/dist/orm.js ADDED
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @veloxts/velox/orm - ORM package re-export
3
+ *
4
+ * Use this subpath for better tree-shaking:
5
+ * @example
6
+ * ```typescript
7
+ * import { createDatabasePlugin } from '@veloxts/velox/orm';
8
+ * ```
9
+ */
10
+ export * from '@veloxts/orm';
11
+ //# sourceMappingURL=orm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"orm.js","sourceRoot":"","sources":["../src/orm.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,cAAc,cAAc,CAAC"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @veloxts/velox/router - Router package re-export
3
+ *
4
+ * Use this subpath for better tree-shaking:
5
+ * @example
6
+ * ```typescript
7
+ * import { procedure, defineProcedures } from '@veloxts/velox/router';
8
+ * ```
9
+ */
10
+ export * from '@veloxts/router';
11
+ //# sourceMappingURL=router.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../src/router.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,cAAc,iBAAiB,CAAC"}
package/dist/router.js ADDED
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @veloxts/velox/router - Router package re-export
3
+ *
4
+ * Use this subpath for better tree-shaking:
5
+ * @example
6
+ * ```typescript
7
+ * import { procedure, defineProcedures } from '@veloxts/velox/router';
8
+ * ```
9
+ */
10
+ export * from '@veloxts/router';
11
+ //# sourceMappingURL=router.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"router.js","sourceRoot":"","sources":["../src/router.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @veloxts/velox/validation - Validation package re-export
3
+ *
4
+ * Use this subpath for better tree-shaking:
5
+ * @example
6
+ * ```typescript
7
+ * import { z, parse, validate } from '@veloxts/velox/validation';
8
+ * ```
9
+ */
10
+ export * from '@veloxts/validation';
11
+ //# sourceMappingURL=validation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../src/validation.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,cAAc,qBAAqB,CAAC"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @veloxts/velox/validation - Validation package re-export
3
+ *
4
+ * Use this subpath for better tree-shaking:
5
+ * @example
6
+ * ```typescript
7
+ * import { z, parse, validate } from '@veloxts/velox/validation';
8
+ * ```
9
+ */
10
+ export * from '@veloxts/validation';
11
+ //# sourceMappingURL=validation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validation.js","sourceRoot":"","sources":["../src/validation.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,cAAc,qBAAqB,CAAC"}
package/package.json ADDED
@@ -0,0 +1,78 @@
1
+ {
2
+ "name": "@veloxts/velox",
3
+ "version": "0.3.0",
4
+ "description": "Complete VeloxTS framework - batteries included",
5
+ "type": "module",
6
+ "main": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/index.js"
12
+ },
13
+ "./core": {
14
+ "types": "./dist/core.d.ts",
15
+ "import": "./dist/core.js"
16
+ },
17
+ "./validation": {
18
+ "types": "./dist/validation.d.ts",
19
+ "import": "./dist/validation.js"
20
+ },
21
+ "./orm": {
22
+ "types": "./dist/orm.d.ts",
23
+ "import": "./dist/orm.js"
24
+ },
25
+ "./router": {
26
+ "types": "./dist/router.d.ts",
27
+ "import": "./dist/router.js"
28
+ },
29
+ "./auth": {
30
+ "types": "./dist/auth.d.ts",
31
+ "import": "./dist/auth.js"
32
+ }
33
+ },
34
+ "files": [
35
+ "dist",
36
+ "README.md"
37
+ ],
38
+ "dependencies": {
39
+ "@veloxts/core": "0.3.0",
40
+ "@veloxts/validation": "0.3.0",
41
+ "@veloxts/orm": "0.3.0",
42
+ "@veloxts/router": "0.3.0",
43
+ "@veloxts/auth": "0.3.0"
44
+ },
45
+ "devDependencies": {
46
+ "typescript": "5.9.3"
47
+ },
48
+ "peerDependencies": {
49
+ "zod": "^3.24.0"
50
+ },
51
+ "keywords": [
52
+ "velox",
53
+ "veloxts",
54
+ "framework",
55
+ "typescript",
56
+ "fullstack",
57
+ "fastify",
58
+ "trpc"
59
+ ],
60
+ "license": "MIT",
61
+ "repository": {
62
+ "type": "git",
63
+ "url": "https://github.com/veloxts/velox-ts-framework",
64
+ "directory": "packages/velox"
65
+ },
66
+ "engines": {
67
+ "node": ">=20.0.0"
68
+ },
69
+ "publishConfig": {
70
+ "access": "public"
71
+ },
72
+ "scripts": {
73
+ "build": "tsc",
74
+ "dev": "tsc --watch",
75
+ "type-check": "tsc --noEmit",
76
+ "clean": "rm -rf dist tsconfig.tsbuildinfo"
77
+ }
78
+ }