Home / File/ fastify.js — fastify Source File

fastify.js — fastify Source File

Architecture documentation for fastify.js, a javascript file in the fastify codebase. 0 imports, 26 dependents.

File javascript CoreKernel InstanceFactory 26 dependents 5 functions

Entity Profile

Dependency Diagram

graph LR
  2bf9986b_b7fb_0c78_f075_72fbe6f4672b["fastify.js"]
  f156ccdd_c4b6_83c1_bbed_f55a4fe6f6ae["simple.mjs"]
  f156ccdd_c4b6_83c1_bbed_f55a4fe6f6ae --> 2bf9986b_b7fb_0c78_f075_72fbe6f4672b
  c45a037e_0fe4_737a_fb38_4cdbc9671f8c["typescript-server.ts"]
  c45a037e_0fe4_737a_fb38_4cdbc9671f8c --> 2bf9986b_b7fb_0c78_f075_72fbe6f4672b
  4bf6b700_ffca_6fb7_dd78_47843f770115["errorCodes.test.mjs"]
  4bf6b700_ffca_6fb7_dd78_47843f770115 --> 2bf9986b_b7fb_0c78_f075_72fbe6f4672b
  e254cffe_ca72_981b_a59b_ffdbe259c522["esm.test.mjs"]
  e254cffe_ca72_981b_a59b_ffdbe259c522 --> 2bf9986b_b7fb_0c78_f075_72fbe6f4672b
  6c83bc6e_787f_d379_d180_5dec0ab5ffaf["named-exports.mjs"]
  6c83bc6e_787f_d379_d180_5dec0ab5ffaf --> 2bf9986b_b7fb_0c78_f075_72fbe6f4672b
  9ad71af2_215e_f629_f041_271cf6d2b63a["content-type-parser.test-d.ts"]
  9ad71af2_215e_f629_f041_271cf6d2b63a --> 2bf9986b_b7fb_0c78_f075_72fbe6f4672b
  81d824ed_eef0_4330_a50d_62ae8641731c["decorate-request-reply.test-d.ts"]
  81d824ed_eef0_4330_a50d_62ae8641731c --> 2bf9986b_b7fb_0c78_f075_72fbe6f4672b
  3543fca3_e9b6_bf55_33f7_4ab7591b4a64["dummy-plugin.ts"]
  3543fca3_e9b6_bf55_33f7_4ab7591b4a64 --> 2bf9986b_b7fb_0c78_f075_72fbe6f4672b
  a3744d40_b389_b54c_59f4_4df9b044f256["errors.test-d.ts"]
  a3744d40_b389_b54c_59f4_4df9b044f256 --> 2bf9986b_b7fb_0c78_f075_72fbe6f4672b
  9c156972_4d03_71ef_d490_0fbe31879cce["fastify.test-d.ts"]
  9c156972_4d03_71ef_d490_0fbe31879cce --> 2bf9986b_b7fb_0c78_f075_72fbe6f4672b
  24048042_c4dc_2873_c147_48de9560b8ea["hooks.test-d.ts"]
  24048042_c4dc_2873_c147_48de9560b8ea --> 2bf9986b_b7fb_0c78_f075_72fbe6f4672b
  f53b773b_3f5c_2a55_b4cd_f0819ab65656["import.ts"]
  f53b773b_3f5c_2a55_b4cd_f0819ab65656 --> 2bf9986b_b7fb_0c78_f075_72fbe6f4672b
  70fc93c1_4797_f3d3_98a5_00a5afb1f1f3["instance.test-d.ts"]
  70fc93c1_4797_f3d3_98a5_00a5afb1f1f3 --> 2bf9986b_b7fb_0c78_f075_72fbe6f4672b
  397a2db0_b4b0_15e1_235a_26b271edda06["logger.test-d.ts"]
  397a2db0_b4b0_15e1_235a_26b271edda06 --> 2bf9986b_b7fb_0c78_f075_72fbe6f4672b
  style 2bf9986b_b7fb_0c78_f075_72fbe6f4672b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

'use strict'

const VERSION = '5.7.4'

const Avvio = require('avvio')
const http = require('node:http')
const diagnostics = require('node:diagnostics_channel')
let lightMyRequest

const {
  kAvvioBoot,
  kChildren,
  kServerBindings,
  kBodyLimit,
  kSupportedHTTPMethods,
  kRoutePrefix,
  kLogLevel,
  kLogSerializers,
  kHooks,
  kSchemaController,
  kRequestAcceptVersion,
  kReplySerializerDefault,
  kContentTypeParser,
  kReply,
  kRequest,
  kFourOhFour,
  kState,
  kOptions,
  kPluginNameChain,
  kSchemaErrorFormatter,
  kErrorHandler,
  kKeepAliveConnections,
  kChildLoggerFactory,
  kGenReqId,
  kErrorHandlerAlreadySet
} = require('./lib/symbols.js')

const { createServer } = require('./lib/server')
const Reply = require('./lib/reply')
const Request = require('./lib/request')
const Context = require('./lib/context.js')
const decorator = require('./lib/decorate')
const ContentTypeParser = require('./lib/content-type-parser.js')
const SchemaController = require('./lib/schema-controller')
const { Hooks, hookRunnerApplication, supportedHooks } = require('./lib/hooks')
const { createChildLogger, defaultChildLoggerFactory, createLogger } = require('./lib/logger-factory')
const pluginUtils = require('./lib/plugin-utils.js')
const { getGenReqId, reqIdGenFactory } = require('./lib/req-id-gen-factory.js')
const { buildRouting, validateBodyLimitOption, buildRouterOptions } = require('./lib/route')
const build404 = require('./lib/four-oh-four')
const getSecuredInitialConfig = require('./lib/initial-config-validation.js')
const override = require('./lib/plugin-override')
const {
  appendStackTrace,
  AVVIO_ERRORS_MAP,
  ...errorCodes
} = require('./lib/errors')
const PonyPromise = require('./lib/promise')

const { defaultInitOptions } = getSecuredInitialConfig
// ... (924 more lines)

Domain

Subdomains

Frequently Asked Questions

What does fastify.js do?
fastify.js is a source file in the fastify codebase, written in javascript. It belongs to the CoreKernel domain, InstanceFactory subdomain.
What functions are defined in fastify.js?
fastify.js defines 5 function(s): defaultBuildPrettyMeta, defaultClientErrorHandler, fastify, processOptions, validateSchemaErrorFormatter.
What files import fastify.js?
fastify.js is imported by 26 file(s): content-type-parser.test-d.ts, decorate-request-reply.test-d.ts, dummy-plugin.ts, errorCodes.test.mjs, errors.test-d.ts, esm.test.mjs, fastify.test-d.ts, hooks.test-d.ts, and 18 more.
Where is fastify.js in the architecture?
fastify.js is located at fastify.js (domain: CoreKernel, subdomain: InstanceFactory).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free