@seip/bluebird-js 0.0.1 → 0.1.1

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 (81) hide show
  1. package/.env_example +53 -53
  2. package/AGENTS.md +426 -403
  3. package/LICENSE +1 -1
  4. package/README.md +292 -285
  5. package/app/routes/api.js +50 -50
  6. package/app/routes/web.js +55 -53
  7. package/app/views/about.js +63 -0
  8. package/app/views/dashboard.js +147 -0
  9. package/app/views/index.js +80 -0
  10. package/app/views/layouts/main/view.js +81 -0
  11. package/app/views/legal/terms.html +19 -0
  12. package/app/views/login.js +80 -0
  13. package/core/app.d.ts +18 -18
  14. package/core/app.js +684 -644
  15. package/core/auth.d.ts +13 -13
  16. package/core/auth.js +326 -326
  17. package/core/cache.d.ts +17 -17
  18. package/core/cache.js +475 -475
  19. package/core/cli/doctor.js +287 -287
  20. package/core/cli/ecosystem.js +162 -162
  21. package/core/cli/init.js +779 -779
  22. package/core/cli/migrate.js +541 -541
  23. package/core/cli/model.js +66 -66
  24. package/core/cli/nginx.js +199 -199
  25. package/core/cli/route.js +120 -120
  26. package/core/cli/view.js +55 -36
  27. package/core/config.d.ts +3 -3
  28. package/core/config.js +111 -111
  29. package/core/csrf.d.ts +3 -3
  30. package/core/csrf.js +114 -114
  31. package/core/database.d.ts +15 -15
  32. package/core/database.js +636 -636
  33. package/core/debug.d.ts +3 -3
  34. package/core/debug.js +249 -249
  35. package/core/hash.d.ts +3 -3
  36. package/core/hash.js +194 -194
  37. package/core/html.d.ts +42 -0
  38. package/core/html.js +217 -0
  39. package/core/index.d.ts +1176 -1071
  40. package/core/logger.d.ts +3 -3
  41. package/core/logger.js +127 -124
  42. package/core/middleware.d.ts +3 -3
  43. package/core/middleware.js +28 -28
  44. package/core/model.d.ts +19 -19
  45. package/core/model.js +600 -600
  46. package/core/queue.d.ts +13 -13
  47. package/core/queue.js +172 -172
  48. package/core/ratelimit.d.ts +3 -3
  49. package/core/ratelimit.js +145 -145
  50. package/core/redis.d.ts +21 -21
  51. package/core/redis.js +230 -230
  52. package/core/render-cache.js +212 -0
  53. package/core/render.d.ts +3 -3
  54. package/core/render.js +199 -555
  55. package/core/router.d.ts +3 -3
  56. package/core/router.js +171 -171
  57. package/core/seo.d.ts +3 -3
  58. package/core/seo.js +106 -106
  59. package/core/swagger.d.ts +3 -3
  60. package/core/swagger.js +60 -60
  61. package/core/upload.d.ts +13 -13
  62. package/core/upload.js +102 -102
  63. package/core/util/colors.js +82 -82
  64. package/core/validate.d.ts +15 -15
  65. package/core/validate.js +364 -364
  66. package/core/view-loader.js +162 -0
  67. package/core/vite.d.ts +3 -3
  68. package/core/vite.js +145 -145
  69. package/core/ws.d.ts +13 -13
  70. package/core/ws.js +245 -245
  71. package/index.js +18 -18
  72. package/jsconfig.json +15 -15
  73. package/package.json +85 -86
  74. package/production.md +273 -273
  75. package/public/css/bluebird.min.css +1 -1
  76. package/public/js/bluebird-client.js +1780 -1662
  77. package/public/js/bluebird.min.js +1072 -1072
  78. package/app/views/about.html +0 -161
  79. package/app/views/dashboard.html +0 -140
  80. package/app/views/index.html +0 -150
  81. package/app/views/login.html +0 -144
package/.env_example CHANGED
@@ -1,54 +1,54 @@
1
- # Server and Application Configuration
2
- DEBUG=true
3
- PORT=3000
4
- HOST="localhost"
5
- APP_URL="http://localhost:3000"
6
- VERSION="1.0.0"
7
-
8
- # Application Metadata
9
- TITLE="Bluebird Application"
10
- DESCRIPTION="Bluebird.js Web and API Project"
11
-
12
- # Security Configuration
13
- JWT_SECRET="CHANGE_ME_TO_A_LONG_RANDOM_STRING_AT_LEAST_32_CHARS"
14
-
15
- # Cache Configuration
16
- # Options: "memory" (fast in-process LRU, default), "file" (filesystem cache fallback), "redis" (distributed cache), "none" (disabled)
17
- CACHE_MODE="memory"
18
- CACHE_MAX_KEYS=1000
19
-
20
- # Redis Configuration (Used when CACHE_MODE="redis" or passing { driver: "redis" })
21
- REDIS_HOST="localhost"
22
- REDIS_PORT=6379
23
- REDIS_PASSWORD=""
24
-
25
- # PM2 Clustering Configuration
26
- PM2_APP_NAME="bluebird-app"
27
- PM2_INSTANCES=1
28
- PM2_MAX_MEMORY="512M"
29
-
30
- # Render Cache Configuration
31
- RENDER_CACHE_TTL=300
32
- RENDER_CACHE_MAX=500
33
-
34
- # Database Configuration
35
- # SQLite (Default - native node:sqlite with WAL mode)
36
- DB_TYPE="sqlite"
37
- DB_FILE="database/blue_bird.db"
38
- DATABASE_URL="sqlite:database/blue_bird.db"
39
-
40
- # MySQL (Uncomment to use MySQL)
41
- # DB_TYPE="mysql"
42
- # DB_NAME="blue_bird"
43
- # DB_USER="root"
44
- # DB_PASSWORD="root"
45
- # DB_PORT=3306
46
- # DATABASE_URL="mysql://root:root@localhost:3306/blue_bird"
47
-
48
- # PostgreSQL (Uncomment to use PostgreSQL)
49
- # DB_TYPE="postgres"
50
- # DB_NAME="blue_bird"
51
- # DB_USER="postgres"
52
- # DB_PASSWORD="root"
53
- # DB_PORT=5432
1
+ # Server and Application Configuration
2
+ DEBUG=true
3
+ PORT=3000
4
+ HOST="localhost"
5
+ APP_URL="http://localhost:3000"
6
+ VERSION="1.0.0"
7
+
8
+ # Application Metadata
9
+ TITLE="Bluebird Application"
10
+ DESCRIPTION="Bluebird.js Web and API Project"
11
+
12
+ # Security Configuration
13
+ JWT_SECRET="CHANGE_ME_TO_A_LONG_RANDOM_STRING_AT_LEAST_32_CHARS"
14
+
15
+ # Cache Configuration
16
+ # Options: "memory" (fast in-process LRU, default), "file" (filesystem cache fallback), "redis" (distributed cache), "none" (disabled)
17
+ CACHE_MODE="memory"
18
+ CACHE_MAX_KEYS=1000
19
+
20
+ # Redis Configuration (Used when CACHE_MODE="redis" or passing { driver: "redis" })
21
+ REDIS_HOST="localhost"
22
+ REDIS_PORT=6379
23
+ REDIS_PASSWORD=""
24
+
25
+ # PM2 Clustering Configuration
26
+ PM2_APP_NAME="bluebird-app"
27
+ PM2_INSTANCES=1
28
+ PM2_MAX_MEMORY="512M"
29
+
30
+ # Render Cache Configuration
31
+ RENDER_CACHE_TTL=300
32
+ RENDER_CACHE_MAX=500
33
+
34
+ # Database Configuration
35
+ # SQLite (Default - native node:sqlite with WAL mode)
36
+ DB_TYPE="sqlite"
37
+ DB_FILE="database/blue_bird.db"
38
+ DATABASE_URL="sqlite:database/blue_bird.db"
39
+
40
+ # MySQL (Uncomment to use MySQL)
41
+ # DB_TYPE="mysql"
42
+ # DB_NAME="blue_bird"
43
+ # DB_USER="root"
44
+ # DB_PASSWORD="root"
45
+ # DB_PORT=3306
46
+ # DATABASE_URL="mysql://root:root@localhost:3306/blue_bird"
47
+
48
+ # PostgreSQL (Uncomment to use PostgreSQL)
49
+ # DB_TYPE="postgres"
50
+ # DB_NAME="blue_bird"
51
+ # DB_USER="postgres"
52
+ # DB_PASSWORD="root"
53
+ # DB_PORT=5432
54
54
  # DATABASE_URL="postgresql://postgres:root@localhost:5432/blue_bird?schema=public"