Expose an NTL node over HTTP, gRPC, WebSocket or GraphQL, so existing clients reach a signal network without knowing the protocol changed.
Design document, not shipped code.adapters/web2, adapters/web3 and
adapters/legacy each contain a single doc comment and no implementation.
Nothing on this page can be configured or run today.What does exist is the contract they will implement: the Adapter trait in
ntl-core (spec/adapter-contract) is real,
normative and tested. This page describes the intended behaviour on top of
it, and the configuration keys below are proposed rather than parsed — no
[adapter.*] table is read by any binary.Tracking: openNTL/ntl#14.
The Web2 adapter translates traditional web protocols into NTL signals and back. It enables existing web applications, microservices, and APIs to participate in the NTL network without modification.
HTTP is inherently request-response. NTL is signal-based. The Web2 adapter bridges this gap using correlation:
HTTP request arrives, adapter creates a Signal with a unique ID
Adapter holds the HTTP connection open
Signal propagates through NTL
A response Signal arrives with correlation_id matching the original
Adapter translates the response Signal back to HTTP and sends it
The adapter maintains a correlation table with configurable timeout (default: 30 seconds).
WebSocket Mode
For WebSocket connections, the adapter operates in true bidirectional mode:
Each WebSocket message becomes a Signal
Signals addressed to the WebSocket client are pushed immediately
No correlation needed — the connection is persistent
This makes WebSocket the closest Web2 protocol to NTL’s native model.
Last modified on September 11, 2026
Was this page helpful?
{"docsConfig":{"theme":"aspen","$schema":"https://mintlify.com/docs.json","name":"Neural Transfer Layer","description":"NTL is an open source data transfer layer that replaces the request-response paradigm of traditional APIs with neural signal propagation. Built for the age of AI, Web3, and quantum computing.","colors":{"primary":"#8B4513","light":"#D4A574","dark":"#8B4513"},"logo":{"light":"https://mintcdn.com/nyuchiinstitute/3cEnyQmapw_aVprz/images/ntl-icon-light.png?fit=max\u0026auto=format\u0026n=3cEnyQmapw_aVprz\u0026q=85\u0026s=06b563d52807156423adddca61c507be","dark":"https://mintcdn.com/nyuchiinstitute/3cEnyQmapw_aVprz/images/ntl-icon-dark.png?fit=max\u0026auto=format\u0026n=3cEnyQmapw_aVprz\u0026q=85\u0026s=feb8717a4473fd413d1f7e21e399d361","href":"https://openntl.org"},"favicon":{"light":"https://mintcdn.com/nyuchiinstitute/L5Oo9PfB0A7RepWv/images/ntl-favicon-light.png?fit=max\u0026auto=format\u0026n=L5Oo9PfB0A7RepWv\u0026q=85\u0026s=2e6b3282a34139905ed56fa2390a0c6c","dark":"https://mintcdn.com/nyuchiinstitute/L5Oo9PfB0A7RepWv/images/ntl-favicon-dark.png?fit=max\u0026auto=format\u0026n=L5Oo9PfB0A7RepWv\u0026q=85\u0026s=e75938513a7e7e8022fbf15a95d21653"},"api":{"playground":{"display":"interactive"}},"appearance":{"default":"system"},"background":{"decoration":"grid","color":{"light":"#F3F2EE","dark":"#1B1A17"}},"navbar":{"links":[{"href":"https://github.com/openNTL/ntl","label":"GitHub"},{"href":"https://discord.gg/6R3wSv7HSY","label":"Discord","type":"discord"}],"primary":{"type":"button","label":"Get Started","href":"/guides/quickstart"}},"footer":{"socials":{"x":"https://x.com/nyuchiafrica","github":"https://github.com/openNTL","linkedin":"https://linkedin.com/company/nyuchi-africa"}},"seo":{"indexing":"all"},"fonts":{"heading":{"family":"Source Sans Pro","weight":500},"body":{"family":"Plus Jakarta Sans","weight":500}},"icons":{"library":"lucide"},"styling":{"eyebrows":"section","latex":true},"integrations":{"ga4":{"measurementId":"G-E4XLZ17VZS"}},"banner":{"content":"Maintained by The Bundu Foundation"},"thumbnails":{"appearance":"light"},"interaction":{"drilldown":true},"metadata":{"timestamp":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"nyuchiinstitute","hasAudioNarration":false,"actualSubdomain":"nyuchiinstitute","customDomains":["openntl.org"],"gitSource":{"type":"github","owner":"openntl","repo":"ntl","deployBranch":"main","contentDirectory":"docs","isPrivate":false,"mountPath":"","label":"","_id":"6b10e4429ffae5051c412a8c"},"feedback":{"thumbs":true,"agentFeedback":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6b1297cd92228a1efb5bf6b7","clientVersion":"0.0.4453","searchFilterCounts":[{"language":"default","tag":"Documentation","count":24},{"language":"default","tag":"Specification","count":22},{"language":"default","tag":"Research","count":16},{"language":"default","tag":"API Reference","count":10},{"language":"default","tag":"Core Concepts","count":5},{"language":"default","tag":"Guides","count":5},{"language":"default","tag":"Adapters","count":4},{"language":"default","tag":"Security","count":4},{"language":"default","tag":"Introduction","count":3},{"language":"default","tag":"Governance","count":3}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"adapters/web2","slug":"/adapters/web2","pageMetadata":{"title":"Web2 Adapter","description":"Expose an NTL node over HTTP, gRPC, WebSocket or GraphQL, so existing clients reach a signal network without knowing the protocol changed.","og:title":"Web2 Adapter — NTL Adapters","og:description":"Translate HTTP, gRPC, WebSocket, and GraphQL protocols into NTL signals and back.","twitter:title":"NTL Web2 Adapter","href":"/adapters/web2"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Expose an NTL node over HTTP, gRPC, WebSocket or GraphQL, so existing clients reach a signal network without knowing the protocol changed.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,em:`em`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(Warning,{children:[_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Design document, not shipped code.`}),` `,_jsx(_components.code,{children:`adapters/web2`}),`, `,_jsx(_components.code,{children:`adapters/web3`}),` and\n`,_jsx(_components.code,{children:`adapters/legacy`}),` each contain a single doc comment and no implementation.\nNothing on this page can be configured or run today.`]}),_jsxs(_components.p,{children:[`What `,_jsx(_components.em,{children:`does`}),` exist is the contract they will implement: the `,_jsx(_components.code,{children:`Adapter`}),` trait in\n`,_jsx(_components.code,{children:`ntl-core`}),` (`,_jsx(_components.a,{href:`/spec/adapter-contract`,children:`spec/adapter-contract`}),`) is real,\nnormative and tested. This page describes the intended behaviour on top of\nit, and the configuration keys below are proposed rather than parsed — no\n`,_jsx(_components.code,{children:`[adapter.*]`}),` table is read by any binary.`]}),_jsxs(_components.p,{children:[`Tracking: `,_jsx(_components.a,{href:`https://github.com/openNTL/ntl/issues/14`,children:`openNTL/ntl#14`}),`.`]})]}),`\n`,_jsx(_components.p,{children:`The Web2 adapter translates traditional web protocols into NTL signals and back. It enables existing web applications, microservices, and APIs to participate in the NTL network without modification.`}),`\n`,_jsx(Heading,{level:`2`,id:`supported-protocols`,children:`Supported Protocols`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Protocol`}),_jsx(_components.th,{children:`Ingest`}),_jsx(_components.th,{children:`Emit`}),_jsx(_components.th,{children:`Bidirectional`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`HTTP/HTTPS`}),_jsx(_components.td,{children:`✅`}),_jsx(_components.td,{children:`✅`}),_jsx(_components.td,{children:`Via correlation`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`gRPC`}),_jsx(_components.td,{children:`✅`}),_jsx(_components.td,{children:`✅`}),_jsx(_components.td,{children:`Via streaming`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`WebSocket`}),_jsx(_components.td,{children:`✅`}),_jsx(_components.td,{children:`✅`}),_jsx(_components.td,{children:`✅ Native`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`GraphQL`}),_jsx(_components.td,{children:`✅`}),_jsx(_components.td,{children:`✅`}),_jsx(_components.td,{children:`Subscriptions`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Server-Sent Events`}),_jsx(_components.td,{children:`—`}),_jsx(_components.td,{children:`✅`}),_jsx(_components.td,{children:`One-way`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`http-translation`,children:`HTTP Translation`}),`\n`,_jsx(Heading,{level:`3`,id:`request-→-signal`,children:`Request → Signal`}),`\n`,_jsx(CodeBlock,{numberOfLines:`13`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`13`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`GET /api/users/123`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Authorization: Bearer \u003ctoken>`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Becomes:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Signal {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` signal_type: Query,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` payload: { path: \"/api/users/123\", method: \"GET\" },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` weight: 0.5,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` tags: [\"http\", \"api\", \"users\"],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` metadata: { auth: \"\u003ctoken>\" },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`}`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`3`,id:`signal-→-response`,children:`Signal → Response`}),`\n`,_jsx(CodeBlock,{numberOfLines:`12`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`12`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Signal {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` signal_type: Data,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` correlation_id: \u003coriginal_signal_id>,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` payload: { id: 123, name: \"...\" },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`}`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Becomes:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`HTTP 200 OK`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Content-Type: application/json`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`{ \"id\": 123, \"name\": \"...\" }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`2`,id:`configuration`,children:`Configuration`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`21`,language:`toml`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`toml`,children:_jsxs(_components.code,{language:`toml`,numberOfLines:`21`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#D4D4D4`},children:`adapter`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#D4D4D4`},children:`web2`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`enabled`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` = `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`bind_address`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` = `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0.0.0.0:8080\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`tls`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` = `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#D4D4D4`},children:`adapter`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#D4D4D4`},children:`web2`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#D4D4D4`},children:`http`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`enabled`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` = `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`timeout_ms`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` = `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`30000`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`max_body_size`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` = `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"10MB\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#D4D4D4`},children:`adapter`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#D4D4D4`},children:`web2`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#D4D4D4`},children:`websocket`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`enabled`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` = `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ping_interval_ms`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` = `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`30000`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#D4D4D4`},children:`adapter`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#D4D4D4`},children:`web2`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#D4D4D4`},children:`grpc`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`enabled`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` = `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`reflection`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` = `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#D4D4D4`},children:`adapter`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#D4D4D4`},children:`web2`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#D4D4D4`},children:`graphql`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`enabled`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` = `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`playground`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` = `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`request-response-correlation`,children:`Request-Response Correlation`}),`\n`,_jsxs(_components.p,{children:[`HTTP is inherently request-response. NTL is signal-based. The Web2 adapter bridges this gap using `,_jsx(_components.strong,{children:`correlation`}),`:`]}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:`HTTP request arrives, adapter creates a Signal with a unique ID`}),`\n`,_jsx(_components.li,{children:`Adapter holds the HTTP connection open`}),`\n`,_jsx(_components.li,{children:`Signal propagates through NTL`}),`\n`,_jsxs(_components.li,{children:[`A response Signal arrives with `,_jsx(_components.code,{children:`correlation_id`}),` matching the original`]}),`\n`,_jsx(_components.li,{children:`Adapter translates the response Signal back to HTTP and sends it`}),`\n`]}),`\n`,_jsx(_components.p,{children:`The adapter maintains a correlation table with configurable timeout (default: 30 seconds).`}),`\n`,_jsx(Heading,{level:`2`,id:`websocket-mode`,children:`WebSocket Mode`}),`\n`,_jsx(_components.p,{children:`For WebSocket connections, the adapter operates in true bidirectional mode:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Each WebSocket message becomes a Signal`}),`\n`,_jsx(_components.li,{children:`Signals addressed to the WebSocket client are pushed immediately`}),`\n`,_jsx(_components.li,{children:`No correlation needed — the connection is persistent`}),`\n`]}),`\n`,_jsx(_components.p,{children:`This makes WebSocket the closest Web2 protocol to NTL’s native model.`})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Web2 Adapter","description":"Expose an NTL node over HTTP, gRPC, WebSocket or GraphQL, so existing clients reach a signal network without knowing the protocol changed.","og:title":"Web2 Adapter — NTL Adapters","og:description":"Translate HTTP, gRPC, WebSocket, and GraphQL protocols into NTL signals and back.","twitter:title":"NTL Web2 Adapter","href":"/adapters/web2"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Supported Protocols","slug":"supported-protocols","depth":2,"children":[]},{"title":"HTTP Translation","slug":"http-translation","depth":2,"children":[{"title":"Request → Signal","slug":"request-→-signal","depth":3,"children":[]},{"title":"Signal → Response","slug":"signal-→-response","depth":3,"children":[]}]},{"title":"Configuration","slug":"configuration","depth":2,"children":[]},{"title":"Request-Response Correlation","slug":"request-response-correlation","depth":2,"children":[]},{"title":"WebSocket Mode","slug":"websocket-mode","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"nyuchiinstitute","siteName":"Neural Transfer Layer","title":"Web2 Adapter — NTL Adapters","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-08-26T22:12:37.280Z","gitLastModified":"2026-09-11T18:46:10.000Z","originalFileLocation":"adapters/web2.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Expose an NTL node over HTTP, gRPC, WebSocket or GraphQL, so existing clients reach a signal network without knowing the protocol changed.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Neural Transfer Layer\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/nyuchiinstitute/rwY6TC31KCwl2Pxe/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/nyuchiinstitute/rwY6TC31KCwl2Pxe/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/nyuchiinstitute/rwY6TC31KCwl2Pxe/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/nyuchiinstitute/rwY6TC31KCwl2Pxe/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/nyuchiinstitute/rwY6TC31KCwl2Pxe/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/nyuchiinstitute/rwY6TC31KCwl2Pxe/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/nyuchiinstitute/rwY6TC31KCwl2Pxe/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/nyuchiinstitute/rwY6TC31KCwl2Pxe/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/nyuchiinstitute/rwY6TC31KCwl2Pxe/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Web2 Adapter — NTL Adapters\">\u003cmeta data-mint-head property=\"og:description\" content=\"Translate HTTP, gRPC, WebSocket, and GraphQL protocols into NTL signals and back.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Neural Transfer Layer\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://openntl.org/adapters/web2\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://nyuchiinstitute.mintlify.site/_mintlify/api/og/v2?division=Adapters\u0026amp;title=Web2+Adapter\u0026amp;description=Expose+an+NTL+node+over+HTTP%2C+gRPC%2C+WebSocket+or+GraphQL%2C+so+existing+clients+reach+a+signal+network+without+knowing+the+protocol+changed.\u0026amp;theme=a543be1cf90de1b740b10d36\u0026amp;signature=293160e332396b24fd84092c01c3f6030ab46bb9d40632034de2f10a1b388b98\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"NTL Web2 Adapter\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Translate HTTP, gRPC, WebSocket, and GraphQL protocols into NTL signals and back.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://nyuchiinstitute.mintlify.site/_mintlify/api/og/v2?division=Adapters\u0026amp;title=Web2+Adapter\u0026amp;description=Expose+an+NTL+node+over+HTTP%2C+gRPC%2C+WebSocket+or+GraphQL%2C+so+existing+clients+reach+a+signal+network+without+knowing+the+protocol+changed.\u0026amp;theme=a543be1cf90de1b740b10d36\u0026amp;signature=293160e332396b24fd84092c01c3f6030ab46bb9d40632034de2f10a1b388b98\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/nyuchiinstitute/rwY6TC31KCwl2Pxe/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Neural Transfer Layer\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#8B4513\">\u003clink data-mint-head rel=\"canonical\" href=\"https://openntl.org/adapters/web2\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/adapters/web2.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://openntl.org/#organization\",\"name\":\"Neural Transfer Layer\",\"url\":\"https://openntl.org\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/nyuchiinstitute/3cEnyQmapw_aVprz/images/ntl-icon-light.png?fit=max\u0026auto=format\u0026n=3cEnyQmapw_aVprz\u0026q=85\u0026s=06b563d52807156423adddca61c507be\"}},{\"@type\":\"WebSite\",\"@id\":\"https://openntl.org#website\",\"name\":\"Neural Transfer Layer\",\"url\":\"https://openntl.org\",\"publisher\":{\"@id\":\"https://openntl.org/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://openntl.org/adapters/web2#webpage\",\"url\":\"https://openntl.org/adapters/web2\",\"name\":\"Web2 Adapter\",\"description\":\"Expose an NTL node over HTTP, gRPC, WebSocket or GraphQL, so existing clients reach a signal network without knowing the protocol changed.\",\"dateModified\":\"2026-09-11T18:46:10.000Z\",\"isPartOf\":{\"@id\":\"https://openntl.org#website\"},\"breadcrumb\":{\"@id\":\"https://openntl.org/adapters/web2#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://openntl.org/adapters/web2#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Adapters\",\"item\":\"https://openntl.org/adapters/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Web2 Adapter\",\"item\":\"https://openntl.org/adapters/web2\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://openntl.org/adapters/web2#article\",\"headline\":\"Web2 Adapter\",\"name\":\"Web2 Adapter\",\"description\":\"Expose an NTL node over HTTP, gRPC, WebSocket or GraphQL, so existing clients reach a signal network without knowing the protocol changed.\",\"url\":\"https://openntl.org/adapters/web2\",\"mainEntityOfPage\":{\"@id\":\"https://openntl.org/adapters/web2#webpage\"},\"dateModified\":\"2026-09-11T18:46:10.000Z\",\"publisher\":{\"@id\":\"https://openntl.org/#organization\"},\"isPartOf\":{\"@id\":\"https://openntl.org#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Neural Transfer Layer\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Neural Transfer Layer\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/adapters/web2.md","siteName":"Neural Transfer Layer","nav":{"global":null,"tabs":[{"tab":"Documentation","groups":[{"group":"Introduction","pages":[{"title":"Neural Transfer Layer","mode":"wide","href":"/introduction"},{"title":"Why NTL","mode":"wide","href":"/why-ntl"},{"title":"Architecture","mode":"wide","href":"/architecture"}]},{"group":"Core Concepts","pages":[{"title":"Signals","href":"/concepts/signals"},{"title":"Synapses","href":"/concepts/synapses"},{"title":"Activation","href":"/concepts/activation"},{"title":"Propagation","href":"/concepts/propagation"},{"title":"Topology","href":"/concepts/topology"}]},{"group":"Guides","pages":[{"title":"Quickstart","href":"/guides/quickstart"},{"title":"Your First Signal Handler","href":"/guides/first-signal"},{"title":"Building Adapters","href":"/guides/building-adapters"},{"title":"Storage Backends","href":"/guides/storage-backends"},{"title":"Postgres MCP Server","href":"/guides/postgres-mcp"}]},{"group":"Adapters","pages":[{"title":"Adapters Overview","description":"How NTL connects to HTTP, gRPC, GraphQL, blockchains and legacy REST — adapters translate external protocols into signals at the network edge.","mode":"wide","href":"/adapters/overview"},{"title":"Web2 Adapter","href":"/adapters/web2"},{"title":"Web3 Adapter","description":"Connect NTL to blockchain networks, decentralised identifiers and token systems, so on-chain events become signals and signals can settle on-chain.","href":"/adapters/web3"},{"title":"Legacy API Adapter","href":"/adapters/legacy-api"}]},{"group":"Security","pages":[{"title":"Security Overview","mode":"wide","href":"/security/overview"},{"title":"Pluggable Cryptography","href":"/security/pluggable-crypto"},{"title":"Post-Quantum Readiness","href":"/security/post-quantum"},{"title":"Identity","href":"/security/identity"}]},{"group":"Governance","pages":[{"title":"Contributing","href":"/governance/contributing"},{"title":"Roadmap","mode":"wide","href":"/governance/roadmap"},{"title":"RFC Process","href":"/governance/rfc-process"}]}]},{"tab":"Specification","pages":[{"title":"Specification","href":"/spec/overview"}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/overview"}]},{"tab":"Research","pages":[{"title":"Research","href":"/research/overview"}]}]},"basePath":"","title":"Web2 Adapter — NTL Adapters","deploymentId":"dpl_BLZw3QngerHodH9E8mGgC4v752y3","buildId":"dpl_BLZw3QngerHodH9E8mGgC4v752y3","dynamics":[],"chunks":[]}