@venizia/ignis-atlas 0.1.0-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.
- package/LICENSE.md +104 -0
- package/README.md +144 -0
- package/dist/cjs/cli/modes.d.ts +29 -0
- package/dist/cjs/cli/modes.d.ts.map +1 -0
- package/dist/cjs/cli/modes.js +70 -0
- package/dist/cjs/cli/modes.js.map +1 -0
- package/dist/cjs/cli.d.ts +3 -0
- package/dist/cjs/cli.d.ts.map +1 -0
- package/dist/cjs/cli.js +60 -0
- package/dist/cjs/cli.js.map +1 -0
- package/dist/cjs/common/constants.d.ts +22 -0
- package/dist/cjs/common/constants.d.ts.map +1 -0
- package/dist/cjs/common/constants.js +32 -0
- package/dist/cjs/common/constants.js.map +1 -0
- package/dist/cjs/common/index.d.ts +3 -0
- package/dist/cjs/common/index.d.ts.map +1 -0
- package/dist/cjs/common/index.js +19 -0
- package/dist/cjs/common/index.js.map +1 -0
- package/dist/cjs/common/logger.d.ts +21 -0
- package/dist/cjs/common/logger.d.ts.map +1 -0
- package/dist/cjs/common/logger.js +50 -0
- package/dist/cjs/common/logger.js.map +1 -0
- package/dist/cjs/common/types.d.ts +5 -0
- package/dist/cjs/common/types.d.ts.map +1 -0
- package/dist/cjs/common/types.js +3 -0
- package/dist/cjs/common/types.js.map +1 -0
- package/dist/cjs/corpus/chunker.d.ts +12 -0
- package/dist/cjs/corpus/chunker.d.ts.map +1 -0
- package/dist/cjs/corpus/chunker.js +298 -0
- package/dist/cjs/corpus/chunker.js.map +1 -0
- package/dist/cjs/corpus/common/index.d.ts +2 -0
- package/dist/cjs/corpus/common/index.d.ts.map +1 -0
- package/dist/cjs/corpus/common/index.js +18 -0
- package/dist/cjs/corpus/common/index.js.map +1 -0
- package/dist/cjs/corpus/common/types.d.ts +37 -0
- package/dist/cjs/corpus/common/types.d.ts.map +1 -0
- package/dist/cjs/corpus/common/types.js +3 -0
- package/dist/cjs/corpus/common/types.js.map +1 -0
- package/dist/cjs/corpus/frontmatter.d.ts +13 -0
- package/dist/cjs/corpus/frontmatter.d.ts.map +1 -0
- package/dist/cjs/corpus/frontmatter.js +31 -0
- package/dist/cjs/corpus/frontmatter.js.map +1 -0
- package/dist/cjs/corpus/index.d.ts +6 -0
- package/dist/cjs/corpus/index.d.ts.map +1 -0
- package/dist/cjs/corpus/index.js +22 -0
- package/dist/cjs/corpus/index.js.map +1 -0
- package/dist/cjs/corpus/loader.d.ts +16 -0
- package/dist/cjs/corpus/loader.d.ts.map +1 -0
- package/dist/cjs/corpus/loader.js +72 -0
- package/dist/cjs/corpus/loader.js.map +1 -0
- package/dist/cjs/corpus/roots.d.ts +9 -0
- package/dist/cjs/corpus/roots.d.ts.map +1 -0
- package/dist/cjs/corpus/roots.js +30 -0
- package/dist/cjs/corpus/roots.js.map +1 -0
- package/dist/cjs/index.d.ts +2 -0
- package/dist/cjs/index.d.ts.map +1 -0
- package/dist/cjs/index.js +18 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/protocol/common/constants.d.ts +9 -0
- package/dist/cjs/protocol/common/constants.d.ts.map +1 -0
- package/dist/cjs/protocol/common/constants.js +13 -0
- package/dist/cjs/protocol/common/constants.js.map +1 -0
- package/dist/cjs/protocol/common/index.d.ts +4 -0
- package/dist/cjs/protocol/common/index.d.ts.map +1 -0
- package/dist/cjs/protocol/common/index.js +20 -0
- package/dist/cjs/protocol/common/index.js.map +1 -0
- package/dist/cjs/protocol/common/rpc-error.d.ts +9 -0
- package/dist/cjs/protocol/common/rpc-error.d.ts.map +1 -0
- package/dist/cjs/protocol/common/rpc-error.js +12 -0
- package/dist/cjs/protocol/common/rpc-error.js.map +1 -0
- package/dist/cjs/protocol/common/types.d.ts +32 -0
- package/dist/cjs/protocol/common/types.d.ts.map +1 -0
- package/dist/cjs/protocol/common/types.js +3 -0
- package/dist/cjs/protocol/common/types.js.map +1 -0
- package/dist/cjs/protocol/index.d.ts +3 -0
- package/dist/cjs/protocol/index.d.ts.map +1 -0
- package/dist/cjs/protocol/index.js +19 -0
- package/dist/cjs/protocol/index.js.map +1 -0
- package/dist/cjs/protocol/transport.d.ts +28 -0
- package/dist/cjs/protocol/transport.d.ts.map +1 -0
- package/dist/cjs/protocol/transport.js +155 -0
- package/dist/cjs/protocol/transport.js.map +1 -0
- package/dist/cjs/search/common/constants.d.ts +23 -0
- package/dist/cjs/search/common/constants.d.ts.map +1 -0
- package/dist/cjs/search/common/constants.js +56 -0
- package/dist/cjs/search/common/constants.js.map +1 -0
- package/dist/cjs/search/common/index.d.ts +3 -0
- package/dist/cjs/search/common/index.d.ts.map +1 -0
- package/dist/cjs/search/common/index.js +19 -0
- package/dist/cjs/search/common/index.js.map +1 -0
- package/dist/cjs/search/common/types.d.ts +18 -0
- package/dist/cjs/search/common/types.d.ts.map +1 -0
- package/dist/cjs/search/common/types.js +3 -0
- package/dist/cjs/search/common/types.js.map +1 -0
- package/dist/cjs/search/index.d.ts +4 -0
- package/dist/cjs/search/index.d.ts.map +1 -0
- package/dist/cjs/search/index.js +20 -0
- package/dist/cjs/search/index.js.map +1 -0
- package/dist/cjs/search/planner.d.ts +13 -0
- package/dist/cjs/search/planner.d.ts.map +1 -0
- package/dist/cjs/search/planner.js +58 -0
- package/dist/cjs/search/planner.js.map +1 -0
- package/dist/cjs/search/store.d.ts +37 -0
- package/dist/cjs/search/store.d.ts.map +1 -0
- package/dist/cjs/search/store.js +141 -0
- package/dist/cjs/search/store.js.map +1 -0
- package/dist/cjs/server/freshness.d.ts +40 -0
- package/dist/cjs/server/freshness.d.ts.map +1 -0
- package/dist/cjs/server/freshness.js +85 -0
- package/dist/cjs/server/freshness.js.map +1 -0
- package/dist/cjs/server.d.ts +12 -0
- package/dist/cjs/server.d.ts.map +1 -0
- package/dist/cjs/server.js +65 -0
- package/dist/cjs/server.js.map +1 -0
- package/dist/cjs/tools/common/index.d.ts +2 -0
- package/dist/cjs/tools/common/index.d.ts.map +1 -0
- package/dist/cjs/tools/common/index.js +18 -0
- package/dist/cjs/tools/common/index.js.map +1 -0
- package/dist/cjs/tools/common/schemas.d.ts +23 -0
- package/dist/cjs/tools/common/schemas.d.ts.map +1 -0
- package/dist/cjs/tools/common/schemas.js +37 -0
- package/dist/cjs/tools/common/schemas.js.map +1 -0
- package/dist/cjs/tools/get.tool.d.ts +6 -0
- package/dist/cjs/tools/get.tool.d.ts.map +1 -0
- package/dist/cjs/tools/get.tool.js +115 -0
- package/dist/cjs/tools/get.tool.js.map +1 -0
- package/dist/cjs/tools/index.d.ts +4 -0
- package/dist/cjs/tools/index.d.ts.map +1 -0
- package/dist/cjs/tools/index.js +20 -0
- package/dist/cjs/tools/index.js.map +1 -0
- package/dist/cjs/tools/search.tool.d.ts +6 -0
- package/dist/cjs/tools/search.tool.d.ts.map +1 -0
- package/dist/cjs/tools/search.tool.js +58 -0
- package/dist/cjs/tools/search.tool.js.map +1 -0
- package/dist/corpus/changelogs/2025-12-16-initial-architecture.md +145 -0
- package/dist/corpus/changelogs/2025-12-16-model-repo-datasource-refactor.md +300 -0
- package/dist/corpus/changelogs/2025-12-17-refactor.md +90 -0
- package/dist/corpus/changelogs/2025-12-18-performance-optimizations.md +130 -0
- package/dist/corpus/changelogs/2025-12-18-repository-validation-security.md +255 -0
- package/dist/corpus/changelogs/2025-12-26-nested-relations-and-generics.md +86 -0
- package/dist/corpus/changelogs/2025-12-26-transaction-support.md +57 -0
- package/dist/corpus/changelogs/2025-12-29-dynamic-binding-registration.md +104 -0
- package/dist/corpus/changelogs/2025-12-29-snowflake-uid-helper.md +100 -0
- package/dist/corpus/changelogs/2025-12-30-repository-enhancements.md +214 -0
- package/dist/corpus/changelogs/2025-12-31-json-path-filtering-array-operators.md +214 -0
- package/dist/corpus/changelogs/2025-12-31-string-id-custom-generator.md +137 -0
- package/dist/corpus/changelogs/2026-01-02-default-filter-and-repository-mixins.md +421 -0
- package/dist/corpus/changelogs/2026-01-05-range-queries-content-range.md +184 -0
- package/dist/corpus/changelogs/2026-01-06-basic-authentication.md +103 -0
- package/dist/corpus/changelogs/2026-01-07-controller-route-customization.md +190 -0
- package/dist/corpus/changelogs/2026-01-11-logger-optimization-hf-logger.md +254 -0
- package/dist/corpus/changelogs/2026-02-06-socket-io-integration-fix.md +541 -0
- package/dist/corpus/changelogs/2026-02-10-websocket-heartbeat-payload.md +173 -0
- package/dist/corpus/changelogs/2026-02-11-crypto-refactor-ecdh.md +217 -0
- package/dist/corpus/changelogs/2026-02-11-websocket-encrypted-delivery.md +209 -0
- package/dist/corpus/changelogs/2026-02-11-websocket-generic-types.md +134 -0
- package/dist/corpus/changelogs/2026-02-16-authorization-system.md +378 -0
- package/dist/corpus/changelogs/2026-02-26-core-helpers-decoupling.md +145 -0
- package/dist/corpus/changelogs/2026-02-27-jwks-authentication.md +391 -0
- package/dist/corpus/changelogs/2026-03-02-model-authorize-settings.md +155 -0
- package/dist/corpus/changelogs/2026-03-04-jwt-payload-field-codecs.md +219 -0
- package/dist/corpus/changelogs/2026-03-06-filter-offset-skip-fix.md +88 -0
- package/dist/corpus/changelogs/2026-03-10-kafka-helpers-refactor.md +225 -0
- package/dist/corpus/changelogs/2026-03-12-kafka-helpers-enhancement.md +169 -0
- package/dist/corpus/changelogs/2026-03-15-grpc-controller-system.md +281 -0
- package/dist/corpus/changelogs/2026-03-30-row-level-locking.md +134 -0
- package/dist/corpus/changelogs/2026-03-31-typescript-6-and-toolchain.md +100 -0
- package/dist/corpus/changelogs/2026-04-23-error-response-extra-fields.md +131 -0
- package/dist/corpus/changelogs/2026-05-05-refresh-token-endpoint.md +116 -0
- package/dist/corpus/changelogs/2026-05-08-crud-route-toggles-and-typed-responses.md +136 -0
- package/dist/corpus/changelogs/2026-05-20-relation-scope-default-limit.md +133 -0
- package/dist/corpus/changelogs/2026-05-21-mass-mutation-guards.md +102 -0
- package/dist/corpus/changelogs/2026-05-22-casbin-adapter-schema-qualification.md +72 -0
- package/dist/corpus/changelogs/2026-05-25-per-model-default-limit.md +68 -0
- package/dist/corpus/changelogs/2026-05-27-casbin-domain-matching-function.md +90 -0
- package/dist/corpus/changelogs/2026-06-02-authorize-scoped-rbac.md +105 -0
- package/dist/corpus/changelogs/2026-06-14-validation-codes-and-error-hardening.md +124 -0
- package/dist/corpus/changelogs/2026-06-18-auth-user-information-endpoint.md +69 -0
- package/dist/corpus/changelogs/2026-06-25-redis-helpers-refactor.md +199 -0
- package/dist/corpus/changelogs/2026-07-05-unified-repository-connectors.md +206 -0
- package/dist/corpus/changelogs/2026-07-08-typesense-advanced-search.md +72 -0
- package/dist/corpus/changelogs/2026-07-11-connectors-consistency-hardening.md +192 -0
- package/dist/corpus/changelogs/2026-07-11-postgres-driver-seam-supabase.md +146 -0
- package/dist/corpus/changelogs/2026-07-12-core-consolidation-dedup.md +127 -0
- package/dist/corpus/changelogs/2026-07-13-hardening-round.md +99 -0
- package/dist/corpus/changelogs/2026-07-14-driver-class-bundling.md +100 -0
- package/dist/corpus/changelogs/2026-07-16-error-catalog-and-structured-message.md +64 -0
- package/dist/corpus/changelogs/2026-07-16-secrets-vault-integration.md +72 -0
- package/dist/corpus/changelogs/2026-07-17-error-module-redesign.md +202 -0
- package/dist/corpus/changelogs/2026-07-17-logger-correctness-pass.md +46 -0
- package/dist/corpus/changelogs/2026-07-17-secrets-bundler-invisible-peers.md +30 -0
- package/dist/corpus/changelogs/2026-07-18-dependency-refresh.md +55 -0
- package/dist/corpus/changelogs/2026-07-18-logger-overhaul.md +104 -0
- package/dist/corpus/changelogs/2026-07-18-repository-read-retry.md +74 -0
- package/dist/corpus/changelogs/2026-07-20-casbin-custom-grants.md +72 -0
- package/dist/corpus/changelogs/2026-07-20-casbin-single-wave-extraction.md +58 -0
- package/dist/corpus/changelogs/2026-07-20-error-from-error-client.md +66 -0
- package/dist/corpus/changelogs/2026-07-21-casbin-connector-resolution-fix.md +36 -0
- package/dist/corpus/changelogs/2026-07-25-error-logging.md +129 -0
- package/dist/corpus/changelogs/2026-07-25-ignis-filter-package.md +75 -0
- package/dist/corpus/changelogs/2026-07-26-search-and-mail-error-codes.md +58 -0
- package/dist/corpus/changelogs/2026-08-01-relational-connector-lift.md +403 -0
- package/dist/corpus/changelogs/2026-08-02-sqlite-and-pglite-connectors.md +177 -0
- package/dist/corpus/changelogs/2026-08-05-search-dialect-relational-parity.md +90 -0
- package/dist/corpus/changelogs/2026-08-06-aes-pbkdf2-and-key-rotation.md +131 -0
- package/dist/corpus/changelogs/2026-08-07-default-query-by.md +62 -0
- package/dist/corpus/changelogs/2026-08-07-nested-fields-and-order-validation.md +75 -0
- package/dist/corpus/changelogs/2026-08-07-typesense-multi-search-transport.md +97 -0
- package/dist/corpus/changelogs/2026-08-12-json-log-arguments.md +69 -0
- package/dist/corpus/changelogs/2026-08-13-browser-pure-kernel.md +130 -0
- package/dist/corpus/changelogs/2026-08-18-esm-builds-and-one-default-stack.md +104 -0
- package/dist/corpus/changelogs/2026-08-18-opaque-uid-helper.md +43 -0
- package/dist/corpus/changelogs/2026-08-19-browser-bff-multi-tab.md +88 -0
- package/dist/corpus/changelogs/2026-08-19-service-authentication-phase-1.md +157 -0
- package/dist/corpus/changelogs/2026-08-21-service-authentication-strategy.md +127 -0
- package/dist/corpus/changelogs/2026-08-22-logger-color-off-outside-development.md +48 -0
- package/dist/corpus/changelogs/2026-08-24-query-wrapper-schemas.md +77 -0
- package/dist/corpus/changelogs/2026-08-29-casbin-domain-hierarchy.md +66 -0
- package/dist/corpus/changelogs/2026-08-30-authorize-no-enforcer-fails-closed.md +60 -0
- package/dist/corpus/changelogs/2026-08-30-crypto-hashing.md +158 -0
- package/dist/corpus/changelogs/2026-08-30-policy-definition-extra-variants.md +62 -0
- package/dist/corpus/changelogs/2026-08-30-row-scope-filter.md +221 -0
- package/dist/corpus/changelogs/2026-08-30-search-connector-health-and-import-contract.md +46 -0
- package/dist/corpus/changelogs/2026-08-30-tree-and-recursive-sql.md +188 -0
- package/dist/corpus/changelogs/2026-08-30-typed-where-clauses.md +114 -0
- package/dist/corpus/changelogs/2026-08-31-entity-id-brand.md +70 -0
- package/dist/corpus/changelogs/2026-08-31-event-bus-retry.md +143 -0
- package/dist/corpus/changelogs/2026-08-31-policy-domain-split-release-b.md +54 -0
- package/dist/corpus/changelogs/2026-08-31-policy-domain-split.md +175 -0
- package/dist/corpus/changelogs/2026-08-31-scope-filter-boot-checks.md +77 -0
- package/dist/corpus/changelogs/2026-09-02-bundle-safe-helpers.md +71 -0
- package/dist/corpus/changelogs/2026-09-02-decorator-artifact-registration.md +119 -0
- package/dist/corpus/changelogs/2026-09-03-deprecated-boot-api-removed.md +133 -0
- package/dist/corpus/changelogs/2026-09-04-dependency-floors-raised.md +61 -0
- package/dist/corpus/changelogs/2026-09-05-boot-checks.md +57 -0
- package/dist/corpus/changelogs/2026-09-05-core-drops-boot-dependency.md +44 -0
- package/dist/corpus/changelogs/2026-09-05-list-response-contract.md +74 -0
- package/dist/corpus/changelogs/2026-09-06-bun-serve-options.md +51 -0
- package/dist/corpus/changelogs/2026-09-06-ignis-atlas.md +54 -0
- package/dist/corpus/changelogs/2026-09-06-repository-inheritance-and-quiet-cli.md +46 -0
- package/dist/corpus/changelogs/2026-09-06-shared-singletons-across-module-copies.md +43 -0
- package/dist/corpus/changelogs/index.md +135 -0
- package/dist/corpus/changelogs/planned-schema-migrator.md +553 -0
- package/dist/corpus/changelogs/template.md +64 -0
- package/dist/corpus/wiki/best-practices/api-usage-examples.md +617 -0
- package/dist/corpus/wiki/best-practices/architectural-patterns.md +437 -0
- package/dist/corpus/wiki/best-practices/architecture-decisions.md +524 -0
- package/dist/corpus/wiki/best-practices/code-style-standards/advanced-patterns.md +283 -0
- package/dist/corpus/wiki/best-practices/code-style-standards/constants-configuration.md +240 -0
- package/dist/corpus/wiki/best-practices/code-style-standards/control-flow.md +280 -0
- package/dist/corpus/wiki/best-practices/code-style-standards/documentation.md +241 -0
- package/dist/corpus/wiki/best-practices/code-style-standards/function-patterns.md +178 -0
- package/dist/corpus/wiki/best-practices/code-style-standards/index.md +114 -0
- package/dist/corpus/wiki/best-practices/code-style-standards/naming-conventions.md +200 -0
- package/dist/corpus/wiki/best-practices/code-style-standards/route-definitions.md +205 -0
- package/dist/corpus/wiki/best-practices/code-style-standards/tooling.md +168 -0
- package/dist/corpus/wiki/best-practices/code-style-standards/type-safety.md +199 -0
- package/dist/corpus/wiki/best-practices/common-pitfalls.md +447 -0
- package/dist/corpus/wiki/best-practices/contribution-workflow.md +211 -0
- package/dist/corpus/wiki/best-practices/data-modeling.md +548 -0
- package/dist/corpus/wiki/best-practices/deployment-strategies.md +736 -0
- package/dist/corpus/wiki/best-practices/error-handling.md +604 -0
- package/dist/corpus/wiki/best-practices/index.md +206 -0
- package/dist/corpus/wiki/best-practices/performance-optimization.md +437 -0
- package/dist/corpus/wiki/best-practices/security-guidelines.md +523 -0
- package/dist/corpus/wiki/best-practices/testing-strategies.md +639 -0
- package/dist/corpus/wiki/best-practices/troubleshooting-tips.md +227 -0
- package/dist/corpus/wiki/extensions/atlas/index.md +65 -0
- package/dist/corpus/wiki/extensions/components/api-reference.md +268 -0
- package/dist/corpus/wiki/extensions/components/authentication/api.md +643 -0
- package/dist/corpus/wiki/extensions/components/authentication/errors.md +211 -0
- package/dist/corpus/wiki/extensions/components/authentication/index.md +171 -0
- package/dist/corpus/wiki/extensions/components/authentication/usage.md +464 -0
- package/dist/corpus/wiki/extensions/components/authorization/api.md +1509 -0
- package/dist/corpus/wiki/extensions/components/authorization/errors.md +397 -0
- package/dist/corpus/wiki/extensions/components/authorization/getting-started.md +227 -0
- package/dist/corpus/wiki/extensions/components/authorization/index.md +155 -0
- package/dist/corpus/wiki/extensions/components/authorization/usage.md +587 -0
- package/dist/corpus/wiki/extensions/components/health-check.md +227 -0
- package/dist/corpus/wiki/extensions/components/index.md +26 -0
- package/dist/corpus/wiki/extensions/components/mail/api.md +773 -0
- package/dist/corpus/wiki/extensions/components/mail/errors.md +190 -0
- package/dist/corpus/wiki/extensions/components/mail/index.md +182 -0
- package/dist/corpus/wiki/extensions/components/mail/usage.md +370 -0
- package/dist/corpus/wiki/extensions/components/request-tracker.md +152 -0
- package/dist/corpus/wiki/extensions/components/socket-io/api.md +728 -0
- package/dist/corpus/wiki/extensions/components/socket-io/errors.md +119 -0
- package/dist/corpus/wiki/extensions/components/socket-io/index.md +116 -0
- package/dist/corpus/wiki/extensions/components/socket-io/usage.md +429 -0
- package/dist/corpus/wiki/extensions/components/static-asset/api.md +593 -0
- package/dist/corpus/wiki/extensions/components/static-asset/errors.md +159 -0
- package/dist/corpus/wiki/extensions/components/static-asset/index.md +160 -0
- package/dist/corpus/wiki/extensions/components/static-asset/usage.md +253 -0
- package/dist/corpus/wiki/extensions/components/template/api-page.md +125 -0
- package/dist/corpus/wiki/extensions/components/template/errors-page.md +100 -0
- package/dist/corpus/wiki/extensions/components/template/index.md +104 -0
- package/dist/corpus/wiki/extensions/components/template/setup-page.md +134 -0
- package/dist/corpus/wiki/extensions/components/template/single-page.md +132 -0
- package/dist/corpus/wiki/extensions/components/template/usage-page.md +127 -0
- package/dist/corpus/wiki/extensions/components/websocket/api.md +416 -0
- package/dist/corpus/wiki/extensions/components/websocket/errors.md +128 -0
- package/dist/corpus/wiki/extensions/components/websocket/index.md +127 -0
- package/dist/corpus/wiki/extensions/components/websocket/usage.md +257 -0
- package/dist/corpus/wiki/extensions/helpers/cron/index.md +116 -0
- package/dist/corpus/wiki/extensions/helpers/crypto/index.md +136 -0
- package/dist/corpus/wiki/extensions/helpers/crypto/reference.md +544 -0
- package/dist/corpus/wiki/extensions/helpers/env/index.md +119 -0
- package/dist/corpus/wiki/extensions/helpers/error/index.md +373 -0
- package/dist/corpus/wiki/extensions/helpers/index.md +63 -0
- package/dist/corpus/wiki/extensions/helpers/inversion/index.md +142 -0
- package/dist/corpus/wiki/extensions/helpers/inversion/reference.md +531 -0
- package/dist/corpus/wiki/extensions/helpers/kafka/admin.md +210 -0
- package/dist/corpus/wiki/extensions/helpers/kafka/compile-binary.md +125 -0
- package/dist/corpus/wiki/extensions/helpers/kafka/consumer.md +422 -0
- package/dist/corpus/wiki/extensions/helpers/kafka/examples.md +154 -0
- package/dist/corpus/wiki/extensions/helpers/kafka/index.md +84 -0
- package/dist/corpus/wiki/extensions/helpers/kafka/producer.md +408 -0
- package/dist/corpus/wiki/extensions/helpers/kafka/schema-registry.md +194 -0
- package/dist/corpus/wiki/extensions/helpers/logger/hf-logger.md +220 -0
- package/dist/corpus/wiki/extensions/helpers/logger/index.md +156 -0
- package/dist/corpus/wiki/extensions/helpers/logger/pino.md +107 -0
- package/dist/corpus/wiki/extensions/helpers/logger/reference.md +938 -0
- package/dist/corpus/wiki/extensions/helpers/network/api.md +1067 -0
- package/dist/corpus/wiki/extensions/helpers/network/index.md +189 -0
- package/dist/corpus/wiki/extensions/helpers/queue/index.md +165 -0
- package/dist/corpus/wiki/extensions/helpers/queue/reference.md +490 -0
- package/dist/corpus/wiki/extensions/helpers/redis/index.md +159 -0
- package/dist/corpus/wiki/extensions/helpers/redis/reference.md +784 -0
- package/dist/corpus/wiki/extensions/helpers/secrets/index.md +136 -0
- package/dist/corpus/wiki/extensions/helpers/socket-io/api.md +618 -0
- package/dist/corpus/wiki/extensions/helpers/socket-io/index.md +167 -0
- package/dist/corpus/wiki/extensions/helpers/storage/api.md +1021 -0
- package/dist/corpus/wiki/extensions/helpers/storage/index.md +162 -0
- package/dist/corpus/wiki/extensions/helpers/template/index.md +69 -0
- package/dist/corpus/wiki/extensions/helpers/template/single-page.md +126 -0
- package/dist/corpus/wiki/extensions/helpers/types/index.md +143 -0
- package/dist/corpus/wiki/extensions/helpers/types/reference.md +708 -0
- package/dist/corpus/wiki/extensions/helpers/uid/index.md +259 -0
- package/dist/corpus/wiki/extensions/helpers/websocket/api.md +888 -0
- package/dist/corpus/wiki/extensions/helpers/websocket/index.md +139 -0
- package/dist/corpus/wiki/extensions/helpers/worker-thread/index.md +142 -0
- package/dist/corpus/wiki/extensions/helpers/worker-thread/reference.md +434 -0
- package/dist/corpus/wiki/extensions/index.md +46 -0
- package/dist/corpus/wiki/guides/core-concepts/application/bootstrapping.md +274 -0
- package/dist/corpus/wiki/guides/core-concepts/application/index.md +239 -0
- package/dist/corpus/wiki/guides/core-concepts/components-guide.md +513 -0
- package/dist/corpus/wiki/guides/core-concepts/components.md +155 -0
- package/dist/corpus/wiki/guides/core-concepts/dependency-injection.md +336 -0
- package/dist/corpus/wiki/guides/core-concepts/grpc-controllers.md +296 -0
- package/dist/corpus/wiki/guides/core-concepts/persistent/datasources.md +195 -0
- package/dist/corpus/wiki/guides/core-concepts/persistent/index.md +132 -0
- package/dist/corpus/wiki/guides/core-concepts/persistent/models.md +331 -0
- package/dist/corpus/wiki/guides/core-concepts/persistent/pglite.md +218 -0
- package/dist/corpus/wiki/guides/core-concepts/persistent/postgres-drivers.md +207 -0
- package/dist/corpus/wiki/guides/core-concepts/persistent/repositories.md +311 -0
- package/dist/corpus/wiki/guides/core-concepts/persistent/search-meilisearch.md +195 -0
- package/dist/corpus/wiki/guides/core-concepts/persistent/search-typesense.md +443 -0
- package/dist/corpus/wiki/guides/core-concepts/persistent/sqlite.md +296 -0
- package/dist/corpus/wiki/guides/core-concepts/persistent/transactions.md +238 -0
- package/dist/corpus/wiki/guides/core-concepts/rest-controllers.md +465 -0
- package/dist/corpus/wiki/guides/core-concepts/secrets-vault.md +177 -0
- package/dist/corpus/wiki/guides/core-concepts/services.md +389 -0
- package/dist/corpus/wiki/guides/get-started/5-minute-quickstart.md +163 -0
- package/dist/corpus/wiki/guides/get-started/philosophy.md +135 -0
- package/dist/corpus/wiki/guides/get-started/setup.md +136 -0
- package/dist/corpus/wiki/guides/index.md +82 -0
- package/dist/corpus/wiki/guides/migrations/boot-api-removal-migration.md +79 -0
- package/dist/corpus/wiki/guides/migrations/redis-helpers-migration.md +178 -0
- package/dist/corpus/wiki/guides/migrations/scoped-rbac-migration.md +300 -0
- package/dist/corpus/wiki/guides/migrations/unified-connectors-migration.md +114 -0
- package/dist/corpus/wiki/guides/reference/glossary.md +250 -0
- package/dist/corpus/wiki/guides/tutorials/building-a-crud-api.md +704 -0
- package/dist/corpus/wiki/guides/tutorials/complete-installation.md +440 -0
- package/dist/corpus/wiki/guides/tutorials/ecommerce-api.md +1442 -0
- package/dist/corpus/wiki/guides/tutorials/realtime-chat.md +1571 -0
- package/dist/corpus/wiki/guides/tutorials/testing.md +264 -0
- package/dist/corpus/wiki/index.md +5 -0
- package/dist/corpus/wiki/public/apple-touch-icon.png +0 -0
- package/dist/corpus/wiki/public/logo.svg +1 -0
- package/dist/corpus/wiki/public/og-image.png +0 -0
- package/dist/corpus/wiki/public/site.webmanifest +11 -0
- package/dist/corpus/wiki/references/base/application.md +482 -0
- package/dist/corpus/wiki/references/base/bootstrapping.md +351 -0
- package/dist/corpus/wiki/references/base/components.md +883 -0
- package/dist/corpus/wiki/references/base/connectors.md +121 -0
- package/dist/corpus/wiki/references/base/controllers.md +1022 -0
- package/dist/corpus/wiki/references/base/datasources-reference.md +598 -0
- package/dist/corpus/wiki/references/base/datasources.md +165 -0
- package/dist/corpus/wiki/references/base/dependency-injection.md +423 -0
- package/dist/corpus/wiki/references/base/filter-system/application-usage.md +215 -0
- package/dist/corpus/wiki/references/base/filter-system/array-operators.md +135 -0
- package/dist/corpus/wiki/references/base/filter-system/comparison-operators.md +110 -0
- package/dist/corpus/wiki/references/base/filter-system/default-filter.md +267 -0
- package/dist/corpus/wiki/references/base/filter-system/fields-order-pagination.md +244 -0
- package/dist/corpus/wiki/references/base/filter-system/index.md +149 -0
- package/dist/corpus/wiki/references/base/filter-system/json-filtering.md +122 -0
- package/dist/corpus/wiki/references/base/filter-system/list-operators.md +56 -0
- package/dist/corpus/wiki/references/base/filter-system/logical-operators.md +148 -0
- package/dist/corpus/wiki/references/base/filter-system/null-operators.md +80 -0
- package/dist/corpus/wiki/references/base/filter-system/pattern-matching.md +105 -0
- package/dist/corpus/wiki/references/base/filter-system/quick-reference.md +172 -0
- package/dist/corpus/wiki/references/base/filter-system/range-operators.md +53 -0
- package/dist/corpus/wiki/references/base/filter-system/tips.md +154 -0
- package/dist/corpus/wiki/references/base/filter-system/use-cases.md +394 -0
- package/dist/corpus/wiki/references/base/grpc-controllers.md +1020 -0
- package/dist/corpus/wiki/references/base/index.md +112 -0
- package/dist/corpus/wiki/references/base/middlewares.md +543 -0
- package/dist/corpus/wiki/references/base/models-reference.md +886 -0
- package/dist/corpus/wiki/references/base/models.md +154 -0
- package/dist/corpus/wiki/references/base/providers.md +728 -0
- package/dist/corpus/wiki/references/base/repositories/advanced.md +627 -0
- package/dist/corpus/wiki/references/base/repositories/index.md +152 -0
- package/dist/corpus/wiki/references/base/repositories/mixins.md +103 -0
- package/dist/corpus/wiki/references/base/repositories/relations.md +379 -0
- package/dist/corpus/wiki/references/base/repositories/soft-deletable.md +307 -0
- package/dist/corpus/wiki/references/base/secrets.md +267 -0
- package/dist/corpus/wiki/references/base/services.md +417 -0
- package/dist/corpus/wiki/references/configuration/environment-variables.md +498 -0
- package/dist/corpus/wiki/references/configuration/index.md +132 -0
- package/dist/corpus/wiki/references/index.md +172 -0
- package/dist/corpus/wiki/references/quick-reference.md +594 -0
- package/dist/corpus/wiki/references/utilities/date.md +50 -0
- package/dist/corpus/wiki/references/utilities/duration.md +85 -0
- package/dist/corpus/wiki/references/utilities/index.md +81 -0
- package/dist/corpus/wiki/references/utilities/jsx-reference.md +298 -0
- package/dist/corpus/wiki/references/utilities/jsx.md +131 -0
- package/dist/corpus/wiki/references/utilities/module.md +110 -0
- package/dist/corpus/wiki/references/utilities/parse.md +55 -0
- package/dist/corpus/wiki/references/utilities/performance.md +54 -0
- package/dist/corpus/wiki/references/utilities/promise.md +54 -0
- package/dist/corpus/wiki/references/utilities/request.md +85 -0
- package/dist/corpus/wiki/references/utilities/retry.md +148 -0
- package/dist/corpus/wiki/references/utilities/schema.md +69 -0
- package/dist/corpus/wiki/references/utilities/statuses-reference.md +360 -0
- package/dist/corpus/wiki/references/utilities/statuses.md +122 -0
- package/package.json +74 -0
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Duration Utility
|
|
3
|
+
description: A unit vocabulary, written-duration parsing, and conversion between units and milliseconds
|
|
4
|
+
difficulty: beginner
|
|
5
|
+
lastUpdated: 2026-08-15
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Duration Utility
|
|
9
|
+
|
|
10
|
+
A duration is `{ unit, value }`. This turns that into milliseconds, reads it out of a written string like `30d`, and converts between units.
|
|
11
|
+
|
|
12
|
+
## In one example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { DurationMultipliers, DurationUnits } from '@venizia/ignis-helpers/common';
|
|
16
|
+
|
|
17
|
+
const gracePeriod = { unit: DurationUnits.DAY, value: 30 };
|
|
18
|
+
|
|
19
|
+
DurationMultipliers.toMilliseconds(gracePeriod); // 2_592_000_000
|
|
20
|
+
DurationMultipliers.parseToMilliseconds('30d'); // 2_592_000_000
|
|
21
|
+
DurationMultipliers.convert({ value: 36, from: 'hour', to: 'day' }); // 1.5
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Everything here is browser-pure, so it works unchanged in a Worker. Import from `@venizia/ignis-helpers/common`, or from the root barrel if you already depend on it.
|
|
25
|
+
|
|
26
|
+
## Units
|
|
27
|
+
|
|
28
|
+
| Constant | Value | Milliseconds |
|
|
29
|
+
|---|---|---|
|
|
30
|
+
| `DurationUnits.MILLISECOND` | `'millisecond'` | 1 |
|
|
31
|
+
| `DurationUnits.SECOND` | `'second'` | 1 000 |
|
|
32
|
+
| `DurationUnits.MINUTE` | `'minute'` | 60 000 |
|
|
33
|
+
| `DurationUnits.HOUR` | `'hour'` | 3 600 000 |
|
|
34
|
+
| `DurationUnits.DAY` | `'day'` | 86 400 000 |
|
|
35
|
+
| `DurationUnits.WEEK` | `'week'` | 604 800 000 |
|
|
36
|
+
| `DurationUnits.MONTH` | `'month'` | 2 592 000 000 |
|
|
37
|
+
| `DurationUnits.YEAR` | `'year'` | 31 536 000 000 |
|
|
38
|
+
|
|
39
|
+
`TDurationUnit` is the union of those eight values. `IDuration` is `{ unit: TDurationUnit; value: number }`.
|
|
40
|
+
|
|
41
|
+
## Functions
|
|
42
|
+
|
|
43
|
+
| Function | Signature | What it does |
|
|
44
|
+
|---|---|---|
|
|
45
|
+
| `DurationUnits.isValid` | `isValid(input: string): input is TDurationUnit` | `true` when `input` is one of the eight canonical names. |
|
|
46
|
+
| `DurationAliases.resolve` | `resolve(input: string): TDurationUnit \| null` | Reads a written unit - `'d'`, `'days'`, `'DAY'` - into its canonical name. |
|
|
47
|
+
| `DurationMultipliers.toMilliseconds` | `toMilliseconds(opts: IDuration \| null): number \| null` | Converts a duration to milliseconds, rounded. |
|
|
48
|
+
| `DurationMultipliers.fromMilliseconds` | `fromMilliseconds(opts: { milliseconds: number; unit: TDurationUnit }): number \| null` | The inverse. Fractional, not rounded. |
|
|
49
|
+
| `DurationMultipliers.convert` | `convert(opts: { value: number; from: TDurationUnit; to: TDurationUnit }): number \| null` | Converts between two units. Fractional. |
|
|
50
|
+
| `DurationMultipliers.parse` | `parse(input: string): IDuration \| null` | Reads `'30d'`, `'1500 ms'`, `'2 hours'` into an `IDuration`. |
|
|
51
|
+
| `DurationMultipliers.parseToMilliseconds` | `parseToMilliseconds(input: string): number \| null` | `parse` followed by `toMilliseconds`. |
|
|
52
|
+
|
|
53
|
+
## A month is 30 days and a year is 365
|
|
54
|
+
|
|
55
|
+
These size a **window** - a grace period, a cache TTL, a near-expiry horizon. They are not calendar arithmetic.
|
|
56
|
+
|
|
57
|
+
Adding `MONTH` to 31 January lands on 2 March in a leap year and 3 March otherwise. If you need a real calendar date, use [the date utility](./date.md) and let `dayjs` handle months.
|
|
58
|
+
|
|
59
|
+
## Every function answers `null`, never throws
|
|
60
|
+
|
|
61
|
+
An unknown unit, a `NaN` value, an unreadable string - all return `null`. A caller that wants an error raises its own, with its own context:
|
|
62
|
+
|
|
63
|
+
```typescript
|
|
64
|
+
const ttlMs = DurationMultipliers.parseToMilliseconds(config.cacheTtl);
|
|
65
|
+
|
|
66
|
+
if (ttlMs === null) {
|
|
67
|
+
throw getError({ message: `[cache] Unreadable TTL: '${config.cacheTtl}'` });
|
|
68
|
+
}
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
Zero is a real duration, not an absent one - `{ unit: 'day', value: 0 }` converts to `0`. A negative value converts too, so a caller deciding what a negative window means keeps that decision.
|
|
72
|
+
|
|
73
|
+
## Writing a duration
|
|
74
|
+
|
|
75
|
+
`parse` accepts one number, an optional space, and one unit: `30d`, `1.5h`, `-2 Hours`, `1500 ms`. Anything it cannot read whole is `null` - there is no partial credit, so `'30d extra'` fails rather than silently meaning 30 days.
|
|
76
|
+
|
|
77
|
+
Accepted spellings are the member names of `DurationAliases`, lower-cased: short (`d`), abbreviated (`wk`), singular (`day`) and plural (`days`).
|
|
78
|
+
|
|
79
|
+
**`m` is minute and `mo` is month.** That is the choice every duration library makes, and the one ambiguity worth checking before you write a config value. There is no single-letter month.
|
|
80
|
+
|
|
81
|
+
## Notes
|
|
82
|
+
|
|
83
|
+
- **The fast path allocates nothing.** `resolve` tries your input as given before normalising it, so a canonical `'day'` costs about 2ns while a messy `' Days '` pays the ~80ns that trimming and upper-casing costs. Pass canonical spellings in a loop.
|
|
84
|
+
- **`toMilliseconds` rounds; `fromMilliseconds` and `convert` do not.** Rounding on the way out would silently lose a 36-hour window asked for in days.
|
|
85
|
+
- **The alias table is derived from `DurationAliases`**, not hand-listed beside it, so a new spelling is one member and the two cannot drift.
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# Utilities
|
|
2
|
+
|
|
3
|
+
Pure, standalone functions providing common, reusable logic for the IGNIS framework. All utilities are stateless and easy to use.
|
|
4
|
+
|
|
5
|
+
## Quick Reference
|
|
6
|
+
|
|
7
|
+
| Utility | Package | Purpose | Key Functions |
|
|
8
|
+
|---------|---------|---------|---------------|
|
|
9
|
+
| **Date** | `ignis-helpers` | Date/time manipulation | `dayjs`, `sleep()`, `isWeekday()`, `getDateTz()`, `hrTime()` |
|
|
10
|
+
| **Duration** | `ignis-helpers` | Duration units and conversion | `DurationUnits`, `DurationMultipliers.toMilliseconds()`, `.parseToMilliseconds()` |
|
|
11
|
+
| **JSX** | `ignis` | HTML/JSX responses | `htmlContent()`, `htmlResponse()` |
|
|
12
|
+
| **Module** | `ignis-helpers` | Optional peer loading | `ModuleUtility` |
|
|
13
|
+
| **Parse** | `ignis-helpers` | Data type conversion | `int()`, `float()`, `toBoolean()`, `toCamel()` |
|
|
14
|
+
| **Performance** | `ignis-helpers` | Execution timing | `executeWithPerformanceMeasure()`, `getPerformanceCheckpoint()` |
|
|
15
|
+
| **Promise** | `ignis-helpers` | Promise helpers | `executePromiseWithLimit()`, `isPromiseLike()`, `getDeepProperty()` |
|
|
16
|
+
| **Request** | `ignis-helpers` | HTTP utilities | `parseMultipartBody()`, `sanitizeFilename()`, `createContentDispositionHeader()` |
|
|
17
|
+
| **Retry** | `ignis-helpers` | Backoff-driven retries | `RetryHelper` |
|
|
18
|
+
| **Schema** | `ignis` | Zod schema helpers | `jsonContent()`, `jsonResponse()`, `requiredString()`, `idParamsSchema()` |
|
|
19
|
+
| **Statuses** | `ignis` | Status code constants | `Statuses`, `CommonStatuses`, `UserStatuses`, `RoleStatuses` |
|
|
20
|
+
|
|
21
|
+
## What's in This Section
|
|
22
|
+
|
|
23
|
+
### Data Processing
|
|
24
|
+
|
|
25
|
+
- [**Parse**](./parse.md) - Functions for parsing and converting data types safely (integers, floats, booleans, camelCase, array-to-map)
|
|
26
|
+
- [**Schema**](./schema.md) - Helpers for creating Zod schemas for OpenAPI request/response validation
|
|
27
|
+
- [**Statuses**](./statuses.md) - Standardized status code constants for entity lifecycle management
|
|
28
|
+
|
|
29
|
+
### Time & Performance
|
|
30
|
+
|
|
31
|
+
- [**Date**](./date.md) - Date and time manipulation functions built on `dayjs` with timezone support
|
|
32
|
+
- [**Duration**](./duration.md) - A unit vocabulary, written-duration parsing, and conversion between units and milliseconds
|
|
33
|
+
- [**Performance**](./performance.md) - Utilities for measuring code execution time and performance profiling
|
|
34
|
+
|
|
35
|
+
### Async & HTTP
|
|
36
|
+
|
|
37
|
+
- [**JSX**](./jsx.md) - HTML and JSX response utilities for server-side rendering and OpenAPI documentation
|
|
38
|
+
- [**Promise**](./promise.md) - Helper functions for working with Promises including concurrency limiting and value transformation
|
|
39
|
+
- [**Request**](./request.md) - HTTP request utilities for parsing multipart form data and creating secure Content-Disposition headers
|
|
40
|
+
- [**Retry**](./retry.md) - Backoff-driven retry helpers on `RetryHelper` - error-triggered (`executeWithRetry`) and predicate-driven (`executeWithRetryUntil`)
|
|
41
|
+
|
|
42
|
+
### Runtime
|
|
43
|
+
|
|
44
|
+
- [**Module**](./module.md) - Utility for validating that required Node.js modules are installed at runtime
|
|
45
|
+
|
|
46
|
+
## Usage Pattern
|
|
47
|
+
|
|
48
|
+
Utilities are imported from `@venizia/ignis` (schema, JSX, and status helpers) or `@venizia/ignis-helpers` (runtime utilities):
|
|
49
|
+
|
|
50
|
+
```typescript
|
|
51
|
+
import { jsonContent, jsonResponse, htmlResponse, requiredString, Statuses } from '@venizia/ignis';
|
|
52
|
+
import { dayjs, sleep, int, float, toBoolean } from '@venizia/ignis-helpers';
|
|
53
|
+
|
|
54
|
+
// Date
|
|
55
|
+
const now = dayjs();
|
|
56
|
+
await sleep(1000);
|
|
57
|
+
|
|
58
|
+
// Parse
|
|
59
|
+
const myInt = int('1,000'); // 1000
|
|
60
|
+
const myFloat = float('1,234.567', 2); // 1234.57
|
|
61
|
+
const myBool = toBoolean('true'); // true
|
|
62
|
+
|
|
63
|
+
// Schema (for OpenAPI JSON routes)
|
|
64
|
+
const responseSchema = jsonResponse({
|
|
65
|
+
description: 'User data',
|
|
66
|
+
schema: z.object({ id: z.string(), name: z.string() }),
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
// JSX (for HTML routes)
|
|
70
|
+
const htmlResponseSchema = htmlResponse({
|
|
71
|
+
description: 'Dashboard page',
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
// Statuses
|
|
75
|
+
const order = { status: Statuses.COMPLETED };
|
|
76
|
+
if (Statuses.isCompleted(order.status)) {
|
|
77
|
+
console.log('Order is complete');
|
|
78
|
+
}
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
> **Related:** [Helpers Reference](/extensions/helpers/) | [Core Concepts Guide](../../guides/core-concepts/application/)
|
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: JSX/HTML Utility - Full Reference
|
|
3
|
+
description: Complete reference for the JSX/HTML response helpers, defineJSXRoute, and Hono JSX component patterns
|
|
4
|
+
difficulty: beginner
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# JSX/HTML Utility - Full Reference
|
|
8
|
+
|
|
9
|
+
Exhaustive reference for `htmlContent()`, `htmlResponse()`, and `BaseRestController.defineJSXRoute()`. For a readable introduction and the common tasks, start with the [JSX/HTML overview](/references/utilities/jsx).
|
|
10
|
+
|
|
11
|
+
**Files:**
|
|
12
|
+
|
|
13
|
+
- [`packages/kernel/src/utilities/jsx.utility.ts`](https://github.com/VENIZIA-AI/ignis/blob/main/packages/kernel/src/utilities/jsx.utility.ts) - `htmlContent`, `htmlResponse`
|
|
14
|
+
- [`packages/kernel/src/base/controllers/rest/base.ts`](https://github.com/VENIZIA-AI/ignis/blob/main/packages/kernel/src/base/controllers/rest/base.ts) - `BaseRestController.defineJSXRoute`
|
|
15
|
+
- [`packages/kernel/src/base/controllers/rest/abstract.ts`](https://github.com/VENIZIA-AI/ignis/blob/main/packages/kernel/src/base/controllers/rest/abstract.ts) - `AbstractRestController.getJSXRouteConfigs`
|
|
16
|
+
- [`packages/helpers/src/common/jsx.ts`](https://github.com/VENIZIA-AI/ignis/blob/main/packages/helpers/src/common/jsx.ts) - `FC`, `PropsWithChildren`, `Child` (re-exported from `hono/jsx`)
|
|
17
|
+
|
|
18
|
+
## `htmlContent()`
|
|
19
|
+
|
|
20
|
+
Creates a standard OpenAPI content object for `text/html` responses.
|
|
21
|
+
|
|
22
|
+
`Source ->` [`packages/kernel/src/utilities/jsx.utility.ts`](https://github.com/VENIZIA-AI/ignis/blob/main/packages/kernel/src/utilities/jsx.utility.ts)
|
|
23
|
+
|
|
24
|
+
```typescript
|
|
25
|
+
const htmlContent = (opts: { description: string; required?: boolean }) => ({
|
|
26
|
+
description: opts.description,
|
|
27
|
+
content: {
|
|
28
|
+
'text/html': {
|
|
29
|
+
schema: z.string().openapi({
|
|
30
|
+
description: 'HTML content',
|
|
31
|
+
example: '<!DOCTYPE html><html><head><title>Page</title></head><body>...</body></html>',
|
|
32
|
+
}),
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
required: opts.required ?? false,
|
|
36
|
+
});
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### Parameters
|
|
40
|
+
|
|
41
|
+
| Parameter | Type | Required | Default | Description |
|
|
42
|
+
|-----------|------|----------|---------|-------------|
|
|
43
|
+
| `description` | `string` | Yes | - | Description of the HTML content, shown in the generated OpenAPI document |
|
|
44
|
+
| `required` | `boolean` | No | `false` | Whether the content is required |
|
|
45
|
+
|
|
46
|
+
### Returns
|
|
47
|
+
|
|
48
|
+
An OpenAPI content configuration object: `description`, `content['text/html'].schema` (a `z.string()`), and `required`.
|
|
49
|
+
|
|
50
|
+
## `htmlResponse()`
|
|
51
|
+
|
|
52
|
+
Creates a standard OpenAPI response object for HTML endpoints. It pairs a success (`200`) HTML response with a JSON error response for `4xx | 5xx` status codes using `ErrorSchema`.
|
|
53
|
+
|
|
54
|
+
`Source ->` [`packages/kernel/src/utilities/jsx.utility.ts`](https://github.com/VENIZIA-AI/ignis/blob/main/packages/kernel/src/utilities/jsx.utility.ts)
|
|
55
|
+
|
|
56
|
+
```typescript
|
|
57
|
+
const htmlResponse = (opts: { description: string; required?: boolean }) => ({
|
|
58
|
+
[HTTP.ResultCodes.RS_2.Ok]: htmlContent({ description: opts.description, required: opts.required }),
|
|
59
|
+
['4xx | 5xx']: {
|
|
60
|
+
description: 'Error Response',
|
|
61
|
+
content: { 'application/json': { schema: ErrorSchema } },
|
|
62
|
+
},
|
|
63
|
+
});
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
### Parameters
|
|
67
|
+
|
|
68
|
+
| Parameter | Type | Required | Default | Description |
|
|
69
|
+
|-----------|------|----------|---------|-------------|
|
|
70
|
+
| `description` | `string` | Yes | - | Description of the successful HTML response |
|
|
71
|
+
| `required` | `boolean` | No | `false` | Whether the content is required |
|
|
72
|
+
|
|
73
|
+
### Returns
|
|
74
|
+
|
|
75
|
+
A responses object: `200` (via `htmlContent()`) plus `4xx | 5xx` (JSON `ErrorSchema`).
|
|
76
|
+
|
|
77
|
+
```typescript
|
|
78
|
+
import { htmlResponse } from '@venizia/ignis';
|
|
79
|
+
|
|
80
|
+
this.defineRoute({
|
|
81
|
+
configs: {
|
|
82
|
+
path: '/dashboard',
|
|
83
|
+
method: 'get',
|
|
84
|
+
responses: htmlResponse({ description: 'Dashboard HTML page' }),
|
|
85
|
+
},
|
|
86
|
+
handler: c => c.html(<h1>Dashboard</h1>),
|
|
87
|
+
});
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
## `BaseRestController.defineJSXRoute()`
|
|
91
|
+
|
|
92
|
+
Defines and registers a JSX/HTML route in a single call - the JSX counterpart of `defineRoute()`.
|
|
93
|
+
|
|
94
|
+
`Source ->` [`packages/kernel/src/base/controllers/rest/base.ts`](https://github.com/VENIZIA-AI/ignis/blob/main/packages/kernel/src/base/controllers/rest/base.ts)
|
|
95
|
+
|
|
96
|
+
```typescript
|
|
97
|
+
defineJSXRoute<RouteConfig extends IAuthRouteConfig, ResponseType = unknown>(opts: {
|
|
98
|
+
configs: RouteConfig;
|
|
99
|
+
handler: TRouteHandler<ResponseType, RouteEnv>;
|
|
100
|
+
hook?: Hook<any, RouteEnv, string, ValueOrPromise<any>>;
|
|
101
|
+
}): IDefineRouteOptions<RouteConfig, RouteEnv, RouteSchema, BasePath>
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
| Parameter | Type | Required | Description |
|
|
105
|
+
|-----------|------|----------|-------------|
|
|
106
|
+
| `configs` | `RouteConfig` (extends `IAuthRouteConfig`) | Yes | `path`, `method`, `responses`, plus the same `authenticate`/`authorize`/`request`/`middleware` fields `defineRoute` accepts |
|
|
107
|
+
| `handler` | `TRouteHandler<ResponseType, RouteEnv>` | Yes | Receives the route context (`TRouteContext`); return `c.html(<Component />)` |
|
|
108
|
+
| `hook` | `Hook<...>` | No | Same validation hook `defineRoute` accepts |
|
|
109
|
+
|
|
110
|
+
### Behavior
|
|
111
|
+
|
|
112
|
+
`defineJSXRoute` is `defineRoute` with one difference: it builds the route configuration through `getJSXRouteConfigs` instead of `getRouteConfigs`.
|
|
113
|
+
|
|
114
|
+
`Source ->` [`packages/kernel/src/base/controllers/rest/abstract.ts`](https://github.com/VENIZIA-AI/ignis/blob/main/packages/kernel/src/base/controllers/rest/abstract.ts)
|
|
115
|
+
|
|
116
|
+
```typescript
|
|
117
|
+
getJSXRouteConfigs<RouteConfig extends IAuthRouteConfig>(opts: { configs: RouteConfig }) {
|
|
118
|
+
const { restConfig, security, mws } = this.buildRouteMiddlewares(opts);
|
|
119
|
+
const { responses, tags = [] } = restConfig;
|
|
120
|
+
|
|
121
|
+
return createRoute<string, RouteConfig>(
|
|
122
|
+
Object.assign({}, restConfig, {
|
|
123
|
+
middleware: mws,
|
|
124
|
+
responses: Object.assign({}, htmlResponse({ description: 'HTML page' }), responses),
|
|
125
|
+
tags: [...tags, this.scope],
|
|
126
|
+
security,
|
|
127
|
+
}) as any,
|
|
128
|
+
);
|
|
129
|
+
}
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
- **Default response merged in first.** `htmlResponse({ description: 'HTML page' })` is the base object. Your own `responses` is merged over it with `Object.assign`, so any status code you declare (typically `200`) overrides the default entry with the same key.
|
|
133
|
+
- **Everything else matches `defineRoute`.** Auth middleware, tags (`this.scope` is always appended), and OpenAPI security are built the same way as JSON routes via `buildRouteMiddlewares`.
|
|
134
|
+
- **Handler contract is unchanged.** The handler still returns whatever `c.html(...)` produces (a `Response`). `defineJSXRoute` only changes how the route's OpenAPI shape is computed, not how the handler runs.
|
|
135
|
+
|
|
136
|
+
## JSX setup
|
|
137
|
+
|
|
138
|
+
### `tsconfig.json`
|
|
139
|
+
|
|
140
|
+
`.tsx` files compile against Hono's JSX runtime, not React's:
|
|
141
|
+
|
|
142
|
+
```json
|
|
143
|
+
{
|
|
144
|
+
"compilerOptions": {
|
|
145
|
+
"jsx": "react-jsx",
|
|
146
|
+
"jsxImportSource": "hono/jsx"
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
Verified in [`packages/core-server/tsconfig.json`](https://github.com/VENIZIA-AI/ignis/blob/main/packages/core-server/tsconfig.json) and the JSX example app's [`examples/rpc-api-server/tsconfig.json`](https://github.com/VENIZIA-AI/ignis/blob/main/examples/rpc-api-server/tsconfig.json).
|
|
152
|
+
|
|
153
|
+
### Component types
|
|
154
|
+
|
|
155
|
+
`FC`, `PropsWithChildren`, and `Child` are re-exported from `@venizia/ignis-helpers` (sourced from `hono/jsx`) - import them from there rather than reaching into `hono/jsx` directly. They live in `common/jsx.ts`, kept out of the `./common` barrel on purpose: `hono/jsx` types reach DOM-dependent JSX intrinsics and `hono` is an optional peer, so a Worker or hono-less consumer of `@venizia/ignis-helpers/common` must not carry that file in its type graph. The root barrel (`src/index.ts`) re-exports the file directly, which is why the three names still resolve from the package root.
|
|
156
|
+
|
|
157
|
+
`Source ->` [`packages/helpers/src/common/jsx.ts`](https://github.com/VENIZIA-AI/ignis/blob/main/packages/helpers/src/common/jsx.ts)
|
|
158
|
+
|
|
159
|
+
```typescript
|
|
160
|
+
export type { Child, FC, PropsWithChildren } from 'hono/jsx';
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
### No separate renderer
|
|
164
|
+
|
|
165
|
+
IGNIS registers no `jsxRenderer` middleware and no template engine. A handler builds a JSX tree and calls Hono's own `c.html()` on it - that call is what triggers rendering to an HTML string.
|
|
166
|
+
|
|
167
|
+
## Component patterns
|
|
168
|
+
|
|
169
|
+
### Layout composition
|
|
170
|
+
|
|
171
|
+
A layout component takes `children` (typed via `PropsWithChildren`) and wraps them in the surrounding document shell. Page components render into a layout the same way any JSX component nests another.
|
|
172
|
+
|
|
173
|
+
```tsx
|
|
174
|
+
import type { FC, PropsWithChildren } from '@venizia/ignis-helpers';
|
|
175
|
+
|
|
176
|
+
interface MainLayoutProps {
|
|
177
|
+
title: string;
|
|
178
|
+
description?: string;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
export const MainLayout: FC<PropsWithChildren<MainLayoutProps>> = ({ title, description, children }) => (
|
|
182
|
+
<html lang="en">
|
|
183
|
+
<head>
|
|
184
|
+
<meta charSet="UTF-8" />
|
|
185
|
+
<title>{title}</title>
|
|
186
|
+
{description && <meta name="description" content={description} />}
|
|
187
|
+
</head>
|
|
188
|
+
<body>
|
|
189
|
+
<main>{children}</main>
|
|
190
|
+
</body>
|
|
191
|
+
</html>
|
|
192
|
+
);
|
|
193
|
+
|
|
194
|
+
interface HomePageProps {
|
|
195
|
+
timestamp?: string;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
export const HomePage: FC<HomePageProps> = ({ timestamp }) => (
|
|
199
|
+
<MainLayout title="Home" description="Welcome to IGNIS">
|
|
200
|
+
<h1>Welcome to IGNIS!</h1>
|
|
201
|
+
{timestamp && <p>Page rendered at: {timestamp}</p>}
|
|
202
|
+
</MainLayout>
|
|
203
|
+
);
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
### Wiring pages into a controller
|
|
207
|
+
|
|
208
|
+
```tsx
|
|
209
|
+
import { BaseRestController, controller, htmlContent, type IControllerOptions, type ValueOrPromise } from '@venizia/ignis';
|
|
210
|
+
import { HTTP } from '@venizia/ignis-helpers';
|
|
211
|
+
import { HomePage } from '@/views/pages/home.page';
|
|
212
|
+
|
|
213
|
+
@controller({ path: '/' })
|
|
214
|
+
export class ViewController extends BaseRestController {
|
|
215
|
+
constructor(opts: IControllerOptions) {
|
|
216
|
+
super({ ...opts, scope: ViewController.name, path: '/' });
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
override binding(): ValueOrPromise<void> {
|
|
220
|
+
this.defineJSXRoute({
|
|
221
|
+
configs: {
|
|
222
|
+
path: '/',
|
|
223
|
+
method: 'get',
|
|
224
|
+
description: 'Home page rendered with JSX',
|
|
225
|
+
tags: ['Views'],
|
|
226
|
+
responses: {
|
|
227
|
+
[HTTP.ResultCodes.RS_2.Ok]: htmlContent({ description: 'Home page HTML' }),
|
|
228
|
+
},
|
|
229
|
+
},
|
|
230
|
+
handler: c => {
|
|
231
|
+
const timestamp = new Date().toISOString();
|
|
232
|
+
return c.html(<HomePage timestamp={timestamp} />);
|
|
233
|
+
},
|
|
234
|
+
});
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
```
|
|
238
|
+
|
|
239
|
+
### Raw HTML with `dangerouslySetInnerHTML`
|
|
240
|
+
|
|
241
|
+
Hono JSX's intrinsic elements accept a `dangerouslySetInnerHTML` prop - an object with an `__html` string - matching React's escape hatch. Use it only for HTML you already trust (a stored template, sanitized markdown output) - never for unsanitized user input.
|
|
242
|
+
|
|
243
|
+
```tsx
|
|
244
|
+
async previewTemplate(c: TRouteContext) {
|
|
245
|
+
const { templateId } = c.req.valid<{ templateId: string }>('param');
|
|
246
|
+
const template = await this.emailService.getTemplate(templateId);
|
|
247
|
+
|
|
248
|
+
return c.html(
|
|
249
|
+
<html>
|
|
250
|
+
<head>
|
|
251
|
+
<title>Email Preview: {template.subject}</title>
|
|
252
|
+
</head>
|
|
253
|
+
<body>
|
|
254
|
+
<div dangerouslySetInnerHTML={{ __html: template.html }} />
|
|
255
|
+
</body>
|
|
256
|
+
</html>,
|
|
257
|
+
);
|
|
258
|
+
}
|
|
259
|
+
```
|
|
260
|
+
|
|
261
|
+
## Comparison with JSON utilities
|
|
262
|
+
|
|
263
|
+
### `htmlContent` vs `jsonContent`
|
|
264
|
+
|
|
265
|
+
| Aspect | `htmlContent()` | `jsonContent()` |
|
|
266
|
+
|--------|------------------|-------------------|
|
|
267
|
+
| Content type | `text/html` | `application/json` |
|
|
268
|
+
| Schema | `z.string()` | Caller-supplied Zod schema |
|
|
269
|
+
| Use case | HTML pages, JSX rendering | API responses, structured data |
|
|
270
|
+
|
|
271
|
+
### `htmlResponse` vs `jsonResponse`
|
|
272
|
+
|
|
273
|
+
| Aspect | `htmlResponse()` | `jsonResponse()` |
|
|
274
|
+
|--------|---------------------|----------------------|
|
|
275
|
+
| Success type | `text/html` (`200`) | `application/json` (`200`) |
|
|
276
|
+
| Error type | `application/json` (`4xx \| 5xx`) | `application/json` (`4xx \| 5xx`) |
|
|
277
|
+
| Use case | Server-rendered web pages | REST APIs |
|
|
278
|
+
|
|
279
|
+
See [Schema Utility](./schema.md) for `jsonContent`/`jsonResponse`.
|
|
280
|
+
|
|
281
|
+
## Route definition choices
|
|
282
|
+
|
|
283
|
+
`defineJSXRoute` is the recommended way to register a JSX route because it fills in a default HTML `200` response automatically. Two equivalent alternatives exist when you need more control:
|
|
284
|
+
|
|
285
|
+
| Approach | When to use |
|
|
286
|
+
|----------|-------------|
|
|
287
|
+
| `this.defineJSXRoute({ configs, handler })` | Default choice - HTML response shape is inferred, override `responses[200]` only if you need a custom description |
|
|
288
|
+
| `this.defineRoute({ configs: { responses: htmlResponse({ description }) }, handler })` | You want the full `responses` object built explicitly via `htmlResponse()`, without relying on the JSX default merge |
|
|
289
|
+
| `this.bindRoute({ configs }).to({ handler })` | Fluent two-step registration, same `configs` shape as either of the above |
|
|
290
|
+
|
|
291
|
+
Authentication and authorization on a JSX route use the same `configs.authenticate` / `configs.authorize` fields as JSON routes - see [Controllers](../base/controllers.md).
|
|
292
|
+
|
|
293
|
+
## See also
|
|
294
|
+
|
|
295
|
+
- [JSX/HTML overview](/references/utilities/jsx) - introduction and common tasks
|
|
296
|
+
- [Schema Utility](./schema.md) - `jsonContent`, `jsonResponse`, and the wider response-helper family
|
|
297
|
+
- [Controllers](../base/controllers.md) - `defineRoute`, `bindRoute`, route configuration, authentication
|
|
298
|
+
- **External:** [Hono JSX Documentation](https://hono.dev/docs/guides/jsx)
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: JSX/HTML Utility
|
|
3
|
+
description: Render server-side HTML pages with Hono JSX and document them for OpenAPI
|
|
4
|
+
difficulty: beginner
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# JSX/HTML Utility
|
|
8
|
+
|
|
9
|
+
IGNIS renders HTML pages server-side with Hono's built-in JSX support, and documents those routes for OpenAPI with `htmlContent()` / `htmlResponse()`.
|
|
10
|
+
|
|
11
|
+
## In one example
|
|
12
|
+
|
|
13
|
+
The smallest real JSX route: a controller that renders a component through `defineJSXRoute`.
|
|
14
|
+
|
|
15
|
+
```tsx
|
|
16
|
+
import { BaseRestController, controller, htmlContent, type IControllerOptions } from '@venizia/ignis';
|
|
17
|
+
import { HTTP } from '@venizia/ignis-helpers';
|
|
18
|
+
|
|
19
|
+
@controller({ path: '/' })
|
|
20
|
+
export class ViewController extends BaseRestController {
|
|
21
|
+
constructor(opts: IControllerOptions) {
|
|
22
|
+
super({ ...opts, scope: ViewController.name, path: '/' });
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
override binding() {
|
|
26
|
+
this.defineJSXRoute({
|
|
27
|
+
configs: {
|
|
28
|
+
path: '/',
|
|
29
|
+
method: 'get',
|
|
30
|
+
responses: {
|
|
31
|
+
[HTTP.ResultCodes.RS_2.Ok]: htmlContent({ description: 'Home page HTML' }),
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
handler: c => c.html(<h1>Welcome to IGNIS</h1>),
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
No separate JSX renderer is registered - the handler builds a JSX tree and hands it to Hono's own `c.html()`.
|
|
41
|
+
|
|
42
|
+
## How it works
|
|
43
|
+
|
|
44
|
+
- **Hono JSX renders to HTML.** A handler returns `c.html(<Component />)`; Hono's built-in JSX runtime turns the tree into an HTML string. IGNIS adds nothing on top of that renderer.
|
|
45
|
+
- **`defineJSXRoute` is `defineRoute` with an HTML default.** It builds route configs through `getJSXRouteConfigs` instead of `getRouteConfigs`, which merges a default `htmlResponse({ description: 'HTML page' })` under whatever `responses` you declare - your own `200` entry overrides the default description.
|
|
46
|
+
- **`htmlContent()` / `htmlResponse()` document `text/html`.** They mirror `jsonContent()` / `jsonResponse()` (see [Schema Utility](./schema.md)) but for HTML: `htmlContent()` builds one OpenAPI content object, `htmlResponse()` wraps it into a full `200` success response plus a JSON `4xx | 5xx` error response.
|
|
47
|
+
- **The tsconfig switch is required.** Compiling `.tsx` files with Hono's JSX needs `"jsx": "react-jsx"` and `"jsxImportSource": "hono/jsx"` in `tsconfig.json`.
|
|
48
|
+
|
|
49
|
+
## Common tasks
|
|
50
|
+
|
|
51
|
+
### Build a reusable layout
|
|
52
|
+
|
|
53
|
+
Compose pages from a shared layout using `FC` and `PropsWithChildren`, re-exported from `@venizia/ignis-helpers` (sourced from `hono/jsx`).
|
|
54
|
+
|
|
55
|
+
```tsx
|
|
56
|
+
import type { FC, PropsWithChildren } from '@venizia/ignis-helpers';
|
|
57
|
+
|
|
58
|
+
export const MainLayout: FC<PropsWithChildren<{ title: string }>> = ({ title, children }) => (
|
|
59
|
+
<html>
|
|
60
|
+
<head>
|
|
61
|
+
<title>{title}</title>
|
|
62
|
+
</head>
|
|
63
|
+
<body>{children}</body>
|
|
64
|
+
</html>
|
|
65
|
+
);
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
### Pass props into a page component
|
|
69
|
+
|
|
70
|
+
Page components take a typed props object like any other Hono JSX component.
|
|
71
|
+
|
|
72
|
+
```tsx
|
|
73
|
+
interface HomePageProps {
|
|
74
|
+
timestamp?: string;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export const HomePage: FC<HomePageProps> = ({ timestamp }) => (
|
|
78
|
+
<MainLayout title="Home">
|
|
79
|
+
<h1>Welcome</h1>
|
|
80
|
+
{timestamp && <p>Rendered at {timestamp}</p>}
|
|
81
|
+
</MainLayout>
|
|
82
|
+
);
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
### Render trusted raw HTML
|
|
86
|
+
|
|
87
|
+
Use `dangerouslySetInnerHTML` for content that is already HTML, such as a stored email or blog template - never for unsanitized user input.
|
|
88
|
+
|
|
89
|
+
```tsx
|
|
90
|
+
<div dangerouslySetInnerHTML={{ __html: template.html }} />
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
### Give the response a custom description
|
|
94
|
+
|
|
95
|
+
Pass your own `200` entry in `responses` - it overrides the `defineJSXRoute` default description.
|
|
96
|
+
|
|
97
|
+
```tsx
|
|
98
|
+
responses: {
|
|
99
|
+
[HTTP.ResultCodes.RS_2.Ok]: htmlContent({ description: 'Dashboard HTML page' }),
|
|
100
|
+
},
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
### Guard a page with authentication
|
|
104
|
+
|
|
105
|
+
JSX routes accept the same `authenticate` config as JSON routes.
|
|
106
|
+
|
|
107
|
+
```tsx
|
|
108
|
+
this.defineJSXRoute({
|
|
109
|
+
configs: {
|
|
110
|
+
path: '/admin',
|
|
111
|
+
method: 'get',
|
|
112
|
+
authenticate: { strategies: ['jwt'] },
|
|
113
|
+
responses: {
|
|
114
|
+
[HTTP.ResultCodes.RS_2.Ok]: htmlContent({ description: 'Admin dashboard' }),
|
|
115
|
+
},
|
|
116
|
+
},
|
|
117
|
+
handler: c => c.html(<AdminDashboard />),
|
|
118
|
+
});
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
## See also
|
|
122
|
+
|
|
123
|
+
- [Full reference](/references/utilities/jsx-reference) - every function, `defineJSXRoute` behavior, and component patterns
|
|
124
|
+
- [Schema Utility](./schema.md) - the JSON-side helpers (`jsonContent`, `jsonResponse`) this pairs with
|
|
125
|
+
- [Controllers](../base/controllers.md) - `defineRoute`/`bindRoute`, `authenticate`/`authorize` config
|
|
126
|
+
- **External:** [Hono JSX Documentation](https://hono.dev/docs/guides/jsx)
|
|
127
|
+
|
|
128
|
+
**Files:**
|
|
129
|
+
|
|
130
|
+
- [`packages/kernel/src/utilities/jsx.utility.ts`](https://github.com/VENIZIA-AI/ignis/blob/main/packages/kernel/src/utilities/jsx.utility.ts) - `htmlContent`, `htmlResponse`
|
|
131
|
+
- [`packages/kernel/src/base/controllers/rest/base.ts`](https://github.com/VENIZIA-AI/ignis/blob/main/packages/kernel/src/base/controllers/rest/base.ts) - `defineJSXRoute`
|