insitu-js 0.0.0 → 1.0.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.
Files changed (103) hide show
  1. package/BENCHMARK_RESULTS.md +60 -0
  2. package/CHANGELOG.md +48 -0
  3. package/LICENSE +201 -0
  4. package/README.md +155 -0
  5. package/doc-2.5/ADMIN_EXTENSION_COMMANDS_MANUAL.md +261 -0
  6. package/doc-2.5/ADMIN_EXTENSION_HOOK_EXAMPLE.md +28 -0
  7. package/doc-2.5/ADMIN_EXTENSION_INTEGRATION_MANUAL.md +232 -0
  8. package/doc-2.5/CACHE_SYSTEM_MAP.md +206 -0
  9. package/doc-2.5/MANUAL_MODULOS_ADMIN.md +287 -0
  10. package/doc-2.5/QUEUE_CLI_MODULE_MANUAL.md +289 -0
  11. package/doc-2.5/QUEUE_SYSTEM_MANUAL.md +320 -0
  12. package/doc-2.5/ROUTE_CACHE_MODULE_MANUAL.md +205 -0
  13. package/doc-2.5/SESSION_SECURITY_FLAGS.md +174 -0
  14. package/doc-2.5/WAF_MODULE_MANUAL.md +229 -0
  15. package/doc-2.5/an/303/241lisis-completo-insitu-framework.md +213 -0
  16. package/doc-2.5/manual-mvc-completo.md +934 -0
  17. package/docs/ARQUITECTURA_ROUTES.md +186 -0
  18. package/docs/EXTENSION_MANUAL.md +955 -0
  19. package/docs/FIREWALL_MANUAL.md +416 -0
  20. package/docs/HOOK-2.0.md +512 -0
  21. package/docs/HOOKS_REFERENCE_IMPROVED.md +596 -0
  22. package/docs/JERK_FRAMEWORK_DIAGRAM.txt +492 -0
  23. package/docs/JERK_FRAMEWORK_DIAGRAM_MERMAID.mmd +124 -0
  24. package/docs/JERK_FRAMEWORK_DOCUMENTATION.md +553 -0
  25. package/docs/JERK_MODELOS_HOWTO.md +566 -0
  26. package/docs/MANUAL_API_SDK.md +536 -0
  27. package/docs/MANUAL_CONTROLLER_VIEW_MODEL.md +310 -0
  28. package/docs/MARIADB_TOKENS_IMPLEMENTATION.md +110 -0
  29. package/docs/MIDDLEWARE_MANUAL.md +518 -0
  30. package/docs/OAUTH2_GOOGLE_MANUAL.md +405 -0
  31. package/docs/ROUTE_DIRECTORY_LOADER_MANUAL.md +277 -0
  32. package/docs/ROUTING_WITHOUT_JSON_GUIDE.md +454 -0
  33. package/docs/SERVER_OPTIMIZATION_NOTES.md +87 -0
  34. package/docs/frontend-and-sessions.md +353 -0
  35. package/docs/guia_inicio_rapido_insitu.md +113 -0
  36. package/index.js +142 -0
  37. package/insitu-admin-client/README.md +69 -0
  38. package/insitu-admin-client/package.json +23 -0
  39. package/insitu-admin-client.js +257 -0
  40. package/lib/admin/AdminExtension.js +491 -0
  41. package/lib/admin/ModuleLoader.js +77 -0
  42. package/lib/admin/config.js +21 -0
  43. package/lib/admin/modules/CacheModule.js +145 -0
  44. package/lib/admin/modules/ControllerGeneratorModule.js +414 -0
  45. package/lib/admin/modules/QueueManagementModule.js +265 -0
  46. package/lib/admin/modules/RouteCacheModule.js +227 -0
  47. package/lib/admin/modules/RouteManagerModule.js +468 -0
  48. package/lib/admin/modules/STATS_MODULE_README.md +113 -0
  49. package/lib/admin/modules/StatsModule.js +140 -0
  50. package/lib/admin/modules/SystemModule.js +140 -0
  51. package/lib/admin/modules/TimeModule.js +95 -0
  52. package/lib/admin/modules/ViewCacheStatsModule.js +92 -0
  53. package/lib/admin/modules/WAFModule.js +737 -0
  54. package/lib/cache/CacheHooks.js +141 -0
  55. package/lib/core/handler.js +86 -0
  56. package/lib/core/hooks-handlers/request-hooks-handler.js +108 -0
  57. package/lib/core/hooks-handlers/route-hooks-handler.js +19 -0
  58. package/lib/core/hooks-handlers/server-start-hooks-handler.js +31 -0
  59. package/lib/core/hooks-handlers/static-file-hooks-handler.js +130 -0
  60. package/lib/core/hooks-handlers/stats-hooks-handler.js +70 -0
  61. package/lib/core/hooks-handlers/view-hooks-handler.js +37 -0
  62. package/lib/core/hooks.js +586 -0
  63. package/lib/core/router.js +205 -0
  64. package/lib/core/securityEnhancedServer.js +753 -0
  65. package/lib/core/server.js +902 -0
  66. package/lib/loader/controllerLoader.js +175 -0
  67. package/lib/loader/routeDirectoryLoader.js +300 -0
  68. package/lib/loader/routeLoader.js +355 -0
  69. package/lib/middleware/auditLogger.js +208 -0
  70. package/lib/middleware/authenticator.js +565 -0
  71. package/lib/middleware/compressor.js +557 -0
  72. package/lib/middleware/cors.js +135 -0
  73. package/lib/middleware/firewall.js +538 -0
  74. package/lib/middleware/rateLimiter.js +210 -0
  75. package/lib/middleware/session.js +309 -0
  76. package/lib/middleware/validator.js +193 -0
  77. package/lib/mvc/GenericAdapter.js +136 -0
  78. package/lib/mvc/MariaDBAdapter.js +315 -0
  79. package/lib/mvc/MemoryAdapter.js +269 -0
  80. package/lib/mvc/ModelControllerExample.js +285 -0
  81. package/lib/mvc/controllerBase.js +352 -0
  82. package/lib/mvc/modelBase.js +383 -0
  83. package/lib/mvc/modelManager.js +284 -0
  84. package/lib/mvc/userModel.js +265 -0
  85. package/lib/mvc/viewEngine.js +908 -0
  86. package/lib/queue/GlobalQueueStorage.js +38 -0
  87. package/lib/queue/QueueSystem.js +451 -0
  88. package/lib/queue/admin_example.js +114 -0
  89. package/lib/queue/example.js +268 -0
  90. package/lib/queue/integration.js +109 -0
  91. package/lib/router/RouteMatcher.js +362 -0
  92. package/lib/utils/configParser.js +223 -0
  93. package/lib/utils/errorHandler.js +123 -0
  94. package/lib/utils/globalStats.js +16 -0
  95. package/lib/utils/globalViewCacheInfo.js +16 -0
  96. package/lib/utils/globalWAFStats.js +54 -0
  97. package/lib/utils/logger.js +210 -0
  98. package/lib/utils/mariadbTokenAdapter.js +226 -0
  99. package/lib/utils/mimeType.js +62 -0
  100. package/lib/utils/openapiGenerator.js +140 -0
  101. package/lib/utils/sqliteTokenAdapter.js +224 -0
  102. package/lib/utils/tokenManager.js +254 -0
  103. package/package.json +55 -6
@@ -0,0 +1,60 @@
1
+ # Benchmark de Rendimiento - Insitu Framework v1.0.0
2
+
3
+ Fecha: domingo, 8 de febrero de 2026
4
+
5
+ ## Servidor Insitu Framework v1.0.0
6
+ - Puerto: 9791
7
+ - Framework: Insitu Framework v1.0.0
8
+ - Versión que incluye filtros de cookies seguras y optimizaciones de rendimiento en server.js
9
+ - Rendimiento bajo condiciones de alta concurrencia
10
+
11
+ ## Pruebas Realizadas
12
+
13
+ ### Prueba 1: Alta concurrencia (1000 solicitudes, 50 concurrentes)
14
+ - URL: http://localhost:9791/
15
+ - Document Length: 47067 bytes (~46KB)
16
+ - RPS (Solicitudes por segundo): 650.02
17
+ - Tiempo medio por solicitud: 76.920 ms
18
+ - Transferencia: 29,964.60 KB/s
19
+ - Fallos: 0
20
+
21
+ ### Prueba 2: Mayor carga (2000 solicitudes, 100 concurrentes)
22
+ - URL: http://localhost:9791/
23
+ - Document Length: 47067 bytes (~46KB)
24
+ - RPS: 704.44
25
+ - Tiempo medio por solicitud: 141.956 ms
26
+ - Transferencia: 32,473.11 KB/s
27
+ - Fallos: 0
28
+
29
+ ### Prueba 3: Endpoint de API (1000 solicitudes, 50 concurrentes)
30
+ - URL: http://localhost:9791/api/endpoints
31
+ - Document Length: 14585 bytes (~14KB)
32
+ - RPS: 1,010.95
33
+ - Tiempo medio por solicitud: 49.458 ms
34
+ - Transferencia: 14,656.85 KB/s
35
+ - Fallos: 0
36
+
37
+ ### Prueba 4: Endpoint protegido con autenticación (500 solicitudes, 25 concurrentes)
38
+ - URL: http://localhost:9791/api/tracking/sessions
39
+ - Document Length: 3774 bytes (~3.7KB)
40
+ - RPS: 279.31
41
+ - Tiempo medio por solicitud: 89.507 ms
42
+ - Transferencia: 1,058.59 KB/s
43
+ - Fallos: 0
44
+
45
+ ## Análisis de Rendimiento
46
+
47
+ La aplicación Insitu Framework demuestra un rendimiento excelente bajo condiciones de alta carga:
48
+
49
+ 1. **Escalabilidad**: El sistema mantiene 0% de fallos incluso bajo alta concurrencia
50
+ 2. **Eficiencia**: Aproximadamente 700+ RPS con 100 conexiones concurrentes
51
+ 3. **Consistencia**: Tiempos de respuesta consistentes incluso bajo carga
52
+ 4. **Manejo de autenticación**: El endpoint protegido mantiene buen rendimiento (279 RPS) a pesar de la sobrecarga de autenticación JWT
53
+ 5. **Transferencia de datos**: Velocidades de transferencia muy altas (>32MB/s en la prueba más exigente)
54
+
55
+ Estos resultados indican que el framework Insitu está bien optimizado para manejar aplicaciones web de alta demanda con buena capacidad de respuesta incluso bajo condiciones de carga intensa.
56
+
57
+ ## Usuarios de Prueba
58
+ - Usuario: testuser
59
+ - Contraseña: testpass
60
+ - Token JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjIsInVzZXJuYW1lIjoidGVzdHVzZXIiLCJlbWFpbCI6InRlc3RAZXhhbXBsZS5jb20iLCJpYXQiOjE3NzA1OTQ0MzcsImV4cCI6MTc3MDY4MDgzN30.6Vjz9Ui_rKnifqk3mBzU8kXqzxITjhlM5jwxlk5DUk0
package/CHANGELOG.md ADDED
@@ -0,0 +1,48 @@
1
+ # Changelog
2
+
3
+ Todos los cambios relevantes de este framework se documentan en este archivo.
4
+ El versionado sigue SemVer (MAJOR.MINOR.PATCH).
5
+
6
+ ---
7
+
8
+ ## [1.0.0] - 2026-02-12
9
+
10
+ ### Consolidated Release - Insitu Framework
11
+
12
+ #### Framework Renaming
13
+ - Cambio de nombre del framework de "JERK Framework" a "Insitu Framework"
14
+ - Actualización de todos los nombres de paquetes, referencias y documentación
15
+ - Renombrado de archivos y directorios relacionados con el antiguo nombre
16
+
17
+ #### Version Standardization
18
+ - Consolidación de todas las versiones anteriores a la versión única 1.0.0
19
+ - Actualización de todos los números de versión en comentarios, documentación y código
20
+ - Unificación de la numeración de versiones en todos los componentes
21
+
22
+ #### Architecture & Core Features
23
+ - Sistema de enrutamiento avanzado con soporte para rutas estáticas y parametrizadas
24
+ - Arquitectura modular con componentes desacoplados
25
+ - Sistema de hooks y filters para extensibilidad
26
+ - Motor de vistas con soporte para includes, variables y filtros
27
+ - Sistema de modelos con soporte para diferentes adaptadores (memoria, MariaDB, SQLite)
28
+
29
+ #### Security & Performance
30
+ - Firewall WAF integrado con reglas configurables
31
+ - Sistema de autenticación con múltiples estrategias (JWT, API Keys, Sesiones)
32
+ - Sistema de sesiones con cookies seguras
33
+ - Optimizaciones de rendimiento con índices y caché
34
+ - Protección contra ataques XSS y SQL Injection
35
+
36
+ #### Administration & Monitoring
37
+ - Extensión de administración con servidor TCP local
38
+ - Módulos de administración para gestión de rutas, vistas y estadísticas
39
+ - Sistema de colas con soporte para múltiples colas concurrentes
40
+ - Monitorización en tiempo real de métricas del servidor
41
+
42
+ #### Development Experience
43
+ - CLI de administración con autocompletado
44
+ - Generador interactivo de controladores
45
+ - Carga de rutas desde archivos JSON o programáticamente
46
+ - Documentación completa y ejemplos de uso
47
+
48
+ ---
package/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
package/README.md ADDED
@@ -0,0 +1,155 @@
1
+ # 🚀 INSITU - JS Framework
2
+
3
+ Un framework backend **rápido, modular y extensible**, diseñado para construir APIs y servicios HTTP de alto rendimiento con enfoque en **rendimiento real, control total y cero dependencias innecesarias**.
4
+
5
+ Pensado para desarrolladores que prefieren **infraestructura directa, predecible y eficiente**, no capas de abstracción pesadas.
6
+
7
+ ---
8
+
9
+ ## ⚡ Principios
10
+
11
+ - Performance first — rutas indexadas, cachés y estructuras O(1)
12
+ - Arquitectura modular — hooks, filtros y módulos desacoplados
13
+ - Observabilidad integrada — administración en tiempo real
14
+ - Seguridad por defecto
15
+ - Sin magia oculta — comportamiento explícito y depurable
16
+
17
+ ---
18
+
19
+ ## ✨ Características principales
20
+
21
+ ### 🧭 Enrutamiento de alto rendimiento
22
+ - Índices por segmentos y prefijos
23
+ - Buckets por aridad
24
+ - Rutas estáticas y dinámicas (regex)
25
+ - Cache de rutas con estadísticas de hits/misses
26
+
27
+ ### 🧩 Sistema modular
28
+ - Hooks y filtros
29
+ - Plugins externos sin modificar el core
30
+ - Carga dinámica de módulos
31
+
32
+ ### 🛠 Consola de administración integrada
33
+ Servidor TCP local para inspección en tiempo real:
34
+
35
+ - rutas activas
36
+ - estadísticas del servidor
37
+ - estado del sistema
38
+ - colas
39
+ - cachés
40
+ - generación de controladores
41
+
42
+ ### 📬 Sistema de colas
43
+ - Múltiples colas concurrentes
44
+ - Prioridades
45
+ - Reintentos automáticos
46
+ - Fallbacks
47
+ - Pausa / reanudación
48
+ - Limpieza y reintentos manuales
49
+
50
+ ### 📊 Observabilidad
51
+ - Métricas de requests/responses
52
+ - Endpoints más utilizados
53
+ - Estadísticas de caché de vistas
54
+ - Estado de recursos del sistema
55
+ - Monitorización en tiempo real
56
+
57
+ ### 🔐 Seguridad
58
+ - Autenticación JWT
59
+ - Roles y capacidades
60
+ - Middleware de seguridad
61
+ - WAF básico
62
+ - Cookies con flags configurables (`Secure`, `SameSite`, etc.)
63
+ - Protección XSS / SQL Injection
64
+
65
+ ### 🗄 Base de datos
66
+ - Sistema de modelos
67
+ - QueryBuilder integrado
68
+ - Soporte MariaDB y SQLite
69
+ - Migraciones
70
+
71
+ ### 🎨 Developer Experience
72
+ - Generador interactivo de controladores
73
+ - Gestor de rutas
74
+ - CLI coloreada
75
+ - Configuración mínima
76
+
77
+ ---
78
+
79
+ ## 🧠 Uso
80
+
81
+ El framework **no impone comandos mágicos ni wrappers propietarios**.
82
+
83
+ Se integra directamente en tu binario/servidor, y la administración se realiza a través de:
84
+
85
+ - consola TCP local de administración
86
+ - módulos CLI
87
+ - hooks y extensiones
88
+
89
+ Consulta la documentación del proyecto para ejemplos específicos de inicialización según tu aplicación.
90
+
91
+ ---
92
+
93
+ ## 🧱 Arquitectura
94
+
95
+ ```
96
+ Request
97
+
98
+ Router (indexado)
99
+
100
+ Middleware / Hooks
101
+
102
+ Controller
103
+
104
+ View / JSON / Stream
105
+ ```
106
+
107
+ Componentes desacoplados → extensibles → reemplazables.
108
+
109
+ ---
110
+
111
+ ## 🔌 Extensibilidad
112
+
113
+ Puedes extender sin modificar el core:
114
+
115
+ - módulos de administración
116
+ - hooks personalizados
117
+ - filtros de seguridad
118
+ - middlewares
119
+ - plugins externos
120
+
121
+ ---
122
+
123
+ ## 📈 Rendimiento
124
+
125
+ Optimizado para:
126
+
127
+ - menos asignaciones
128
+ - menos normalización de rutas
129
+ - menos búsquedas lineales
130
+ - más indexación y caché
131
+
132
+ Resultado: **menor CPU, menor latencia y mayor throughput**.
133
+
134
+ ---
135
+
136
+ ## 🗂 Versionado
137
+
138
+ Seguimos **Semantic Versioning (SemVer)**.
139
+
140
+ Consulta cambios detallados en:
141
+ 👉 `CHANGELOG.md`
142
+
143
+ ---
144
+
145
+ ## 🤝 Filosofía
146
+
147
+ > Menos framework. Más control. Más rendimiento.
148
+
149
+ Diseñado para equipos que prefieren entender el sistema completo en lugar de depender de abstracciones innecesarias.
150
+
151
+ ---
152
+
153
+ ## 📄 Licencia
154
+
155
+ APACHE 2.0