@titanpl/route 1.0.0 → 26.16.4

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 (2) hide show
  1. package/README.md +24 -0
  2. package/package.json +10 -2
package/README.md ADDED
@@ -0,0 +1,24 @@
1
+ # @titanpl/route
2
+
3
+ The declarative Routing DSL for Titan Planet.
4
+
5
+ ## What it works (What it does)
6
+ This is a zero-runtime-overhead DSL used to define your backend API routes. It captures routing metadata that the Titan engine uses to static-map requests directly to your actions.
7
+
8
+ ## How it works
9
+ Import `t` and use it to define your endpoints.
10
+
11
+ ```javascript
12
+ import t from "@titanpl/route";
13
+
14
+ // Define an action-based route
15
+ t.post("/hello").action("hello"); // pass a json payload { "name": "titan" }
16
+
17
+ // Define a direct reply route
18
+ t.get("/").reply("Ready to land on Titan Planet 🚀");
19
+
20
+ // Configure the server
21
+ t.start(5100, "Titan Running!");
22
+ ```
23
+
24
+ **Important Note:** Currently, Titan Planet and its entire package ecosystem are only for Windows. The Linux version is in development (dev only) for the new architecture and will be launched later.
package/package.json CHANGED
@@ -1,9 +1,17 @@
1
1
  {
2
2
  "name": "@titanpl/route",
3
- "version": "1.0.0",
3
+ "version": "26.16.4",
4
4
  "description": "Titan routing DSL",
5
5
  "type": "module",
6
6
  "main": "index.js",
7
+ "keywords": [
8
+ "titan",
9
+ "titanpl",
10
+ "t8n",
11
+ "route",
12
+ "dsl",
13
+ "ezetgalaxy"
14
+ ],
7
15
  "types": "./index.d.ts",
8
16
  "exports": {
9
17
  ".": {
@@ -11,4 +19,4 @@
11
19
  "default": "./index.js"
12
20
  }
13
21
  }
14
- }
22
+ }