InstanceFactory — fastify Architecture
Handles the creation and configuration of the Fastify application object.
Entity Profile
Dependency Diagram
graph TD subdomain_CoreKernel_InstanceFactory["InstanceFactory"] f0958ec4_011b_97b2_8846_edbd37831a68["helper.js"] subdomain_CoreKernel_InstanceFactory --> f0958ec4_011b_97b2_8846_edbd37831a68 04b0182b_5df5_dfe0_487c_62e7961da342["issue-4959.test.js"] subdomain_CoreKernel_InstanceFactory --> 04b0182b_5df5_dfe0_487c_62e7961da342 e1e4ec79_9cdf_cb6b_6b7f_f26284b94936["logger-test-utils.js"] subdomain_CoreKernel_InstanceFactory --> e1e4ec79_9cdf_cb6b_6b7f_f26284b94936 70c4c824_7f74_0fe8_3d46_0407aa0eeae5["logger-factory.js"] subdomain_CoreKernel_InstanceFactory --> 70c4c824_7f74_0fe8_3d46_0407aa0eeae5 f5d5719d_61bc_92f4_0212_4f73fcdf4add["fastify-instance.test.js"] subdomain_CoreKernel_InstanceFactory --> f5d5719d_61bc_92f4_0212_4f73fcdf4add 24048042_c4dc_2873_c147_48de9560b8ea["hooks.test-d.ts"] subdomain_CoreKernel_InstanceFactory --> 24048042_c4dc_2873_c147_48de9560b8ea 52080b90_327d_aa03_5024_802fa42ad813["initial-config-validation.js"] subdomain_CoreKernel_InstanceFactory --> 52080b90_327d_aa03_5024_802fa42ad813 20dad7da_f043_8e43_0148_ca488f3c8f5f["logger.test.js"] subdomain_CoreKernel_InstanceFactory --> 20dad7da_f043_8e43_0148_ca488f3c8f5f 2bf9986b_b7fb_0c78_f075_72fbe6f4672b["fastify.js"] subdomain_CoreKernel_InstanceFactory --> 2bf9986b_b7fb_0c78_f075_72fbe6f4672b 974eb845_af00_73af_2503_b5df1b7123e4["other.mjs"] subdomain_CoreKernel_InstanceFactory --> 974eb845_af00_73af_2503_b5df1b7123e4 5d171be4_fc79_fbf7_00a5_dbea91da8f14["context-config.test.js"] subdomain_CoreKernel_InstanceFactory --> 5d171be4_fc79_fbf7_00a5_dbea91da8f14 d7e0d6b7_f402_0b2b_8e73_168514073b2f["plugin.d.ts"] subdomain_CoreKernel_InstanceFactory --> d7e0d6b7_f402_0b2b_8e73_168514073b2f e2509c3c_a7f2_309f_c87e_d5cb03a76c5a["reply.d.ts"] subdomain_CoreKernel_InstanceFactory --> e2509c3c_a7f2_309f_c87e_d5cb03a76c5a 08af481b_2f35_3710_fb1d_f29fa2ef8473["logger.d.ts"] subdomain_CoreKernel_InstanceFactory --> 08af481b_2f35_3710_fb1d_f29fa2ef8473 style subdomain_CoreKernel_InstanceFactory fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Domain
Functions
- CustomType()
- FastifyValidationResult()
- Queue()
- Reply()
- Schemas()
- T()
- _checkDecorators()
- add()
- address()
- args()
- asyncFastifyErrorHandler()
- asyncNodeJSErrorHandler()
- auxiliaryHandler()
- buildCertificate()
- buildDefaultGenReqId()
- buildOptionalHeaderReqId()
- buildRegularRequest()
- buildRequestWithTrustProxy()
- buildRoutePrefix()
- buildRouterOptions()
- buildRouting()
- checkDependencies()
- childLoggerFactory()
- compileSchemasForSerialization()
- constructor()
- createChildLogger()
- createDeferredPromise()
- createLogger()
- customLogger.child()
- customLogger.child()
- customLogger.debug()
- customLogger.debug()
- customLogger.debug()
- customLogger.error()
- customLogger.fatal()
- customLogger.fatal()
- customLogger.fatal()
- customLogger.info()
- customLogger.silent()
- customLogger.silent()
- customLogger.trace()
- customLogger.warn()
- customLogger.warn()
- customLogger.warn()
- customTypedHook()
- decorateFastify()
- deepFreezeObject()
- defaultBuildPrettyMeta()
- defaultChildLoggerFactory()
- defaultClientErrorHandler()
- echoBody()
- echoBody()
- endRouteHook()
- err()
- err()
- err()
- error()
- error()
- factory.storeFunction()
- fastify()
- fastify()
- fastifyErrorHandler()
- fastifySetGenReqId()
- fetchForwardedRequest()
- first()
- generateFluentSchema()
- getDisplayName()
- getGenReqId()
- getHandler()
- getHandler()
- getHeader()
- getInstanceDecorator()
- getLoopbackHost()
- getPluginName()
- getResponseSchema()
- getSchema()
- getSchema()
- getSchemas()
- getSchemas()
- getSerializationFunction()
- getSerializerBuilder()
- getStream()
- getTrustProxyFn()
- getUrl()
- getValidatorCompiler()
- handleTimeout()
- handler()
- handler()
- hasHeader()
- hasSymbolDispose()
- header()
- hijack()
- hookIterator()
- hookRunnerApplication()
- httpHeaderHandler()
- info()
- instance()
- instance()
- invalidReplySerializer()
- invalidSchemaController()
- invalidSchemaErrorFormatter()
- isCustomSchemaPrototype()
- isIPv6Missing()
- isIPv6Missing()
- key()
- lightMyRequestCallback()
- module()
- myNumber()
- nodeJSErrorHandler()
- noop()
- noop()
- normalizeAndValidateMethod()
- notFound()
- notFoundAsyncHandler()
- notFoundHandler()
- notFoundpreHandlerAsyncHandler()
- notFoundpreHandlerHandler()
- notFoundpreValidationAsyncHandler()
- notFoundpreValidationHandler()
- now()
- onErrorHook()
- onProtoPoisoning()
- onResponseCallback()
- onResponseHookIterator()
- onSendEnd()
- other()
- parentSchemas()
- payloadMethod()
- postHandler()
- preParsingHookRunner()
- preSerializationHook()
- processOptions()
- redirect()
- registerPlugin()
- registerPluginName()
- removeTrailer()
- req()
- req()
- req()
- req()
- reqIdGenFactory()
- request()
- request()
- request()
- routeHandlerWithReturnValue()
- run()
- runBadClientCall()
- schemaValidator()
- sendTrailer()
- sendWebStream()
- serializeInput()
- serializer()
- serializerWithInvalidReturn()
- serializers.req()
- serverFactory()
- setValidatorCompiler()
- setupValidator()
- silent()
- testAsync()
- testBeforeHandlerHook()
- testPluginAsync()
- testPluginCallback()
- testPluginOpts()
- testPluginOptsAsync()
- testPluginOptsWithType()
- testPluginOptsWithTypeAsync()
- testPluginWithHttp2Async()
- testPluginWithHttp2WithTypeAsync()
- testPluginWithTypeProviderAndLogger()
- testPluginWithTypeProviderAndLoggerAsync()
- testPluginWithTypeProviderAndLoggerWithType()
- testPluginWithTypeProviderAndLoggerWithTypeAsync()
- testPluginWithTypeProviderAsync()
- testPluginWithTypeProviderWithTypeAsync()
- then()
- thenableRejects()
- third()
- trace()
- trailer()
- validate10()
- validateAsyncParams()
- validateAsyncQuery()
- validateBodyLimitOption()
- validateInitialConfig()
- validateLogger()
- validateParam()
- validateSchemaErrorFormatter()
- value()
- versionConstraintStrategy.deriveConstraint()
- versionConstraintStrategy.storage()
- versionConstraintStrategy.validate()
- wrapOnSendEnd()
- wrapSerializationError()
- wrapThenable()
- wrapValidationError()
- x()
Source Files
- lib/config-validator.js
- test/content-parser.test.js
- types/content-type-parser.d.ts
- test/context-config.test.js
- test/fastify-instance.test.js
- fastify.d.ts
- fastify.js
- test/types/fastify.test-d.ts
- test/internals/handle-request.test.js
- test/helper.js
- types/hooks.d.ts
- test/hooks.on-listen.test.js
- test/types/hooks.test-d.ts
- lib/initial-config-validation.js
- test/inject.test.js
- types/instance.d.ts
- test/types/instance.test-d.ts
- test/issue-4959.test.js
- test/listen.4.test.js
- lib/logger-factory.js
- test/logger/logger-test-utils.js
- types/logger.d.ts
- test/internals/logger.test.js
- lib/noop-set.js
- test/esm/other.mjs
- types/plugin.d.ts
- test/types/plugin.test-d.ts
- test/register.test.js
- types/reply.d.ts
- lib/reply.js
- lib/req-id-gen-factory.js
- test/route-hooks.test.js
- lib/route.js
- test/schema-serialization.test.js
- types/schema.d.ts
- test/types/schema.test-d.ts
- lib/schemas.js
- test/serialize-response.test.js
- types/server-factory.d.ts
- test/types/serverFactory.test-d.ts
- test/trust-proxy.test.js
- lib/validation.js
- lib/wrap-thenable.js
Source
- lib/config-validator.js
- test/content-parser.test.js
- types/content-type-parser.d.ts
- test/context-config.test.js
- test/fastify-instance.test.js
- fastify.d.ts
- fastify.js
- test/types/fastify.test-d.ts
- test/internals/handle-request.test.js
- test/helper.js
- types/hooks.d.ts
- test/hooks.on-listen.test.js
- test/types/hooks.test-d.ts
- lib/initial-config-validation.js
- test/inject.test.js
- types/instance.d.ts
- test/types/instance.test-d.ts
- test/issue-4959.test.js
- test/listen.4.test.js
- lib/logger-factory.js
- test/logger/logger-test-utils.js
- types/logger.d.ts
- test/internals/logger.test.js
- lib/noop-set.js
- test/esm/other.mjs
- types/plugin.d.ts
- test/types/plugin.test-d.ts
- test/register.test.js
- types/reply.d.ts
- lib/reply.js
- lib/req-id-gen-factory.js
- test/route-hooks.test.js
- lib/route.js
- test/schema-serialization.test.js
- types/schema.d.ts
- test/types/schema.test-d.ts
- lib/schemas.js
- test/serialize-response.test.js
- types/server-factory.d.ts
- test/types/serverFactory.test-d.ts
- test/trust-proxy.test.js
- lib/validation.js
- lib/wrap-thenable.js
Frequently Asked Questions
What is the InstanceFactory subdomain?
InstanceFactory is a subdomain in the fastify codebase, part of the CoreKernel domain. Handles the creation and configuration of the Fastify application object. It contains 43 source files.
Which domain does InstanceFactory belong to?
InstanceFactory belongs to the CoreKernel domain.
What functions are in InstanceFactory?
The InstanceFactory subdomain contains 196 function(s): CustomType, FastifyValidationResult, Queue, Reply, Schemas, T, _checkDecorators, add, and 188 more.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free