Home / Function/ htmlShell() — supabase Function Reference

htmlShell() — supabase Function Reference

Architecture documentation for the htmlShell() function in route.ts from the supabase codebase.

Entity Profile

Dependency Diagram

graph TD
  700ecce2_94c7_f681_04ee_018b8e7249d4["htmlShell()"]
  baab62ad_c9d1_f6b8_2d9f_eab32eddc062["GET()"]
  baab62ad_c9d1_f6b8_2d9f_eab32eddc062 -->|calls| 700ecce2_94c7_f681_04ee_018b8e7249d4
  style 700ecce2_94c7_f681_04ee_018b8e7249d4 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/docs/app/api/crawlers/route.ts lines 70–95

function htmlShell(
  lib: string,
  version: string | null,
  slug: string,
  section: AbbrevApiReferenceSection,
  body: string
) {
  const libraryName = REFERENCES[lib].name
  let title = libraryName + ': ' + (section.title ?? '')

  return (
    '<!doctype html><html>' +
    '<head>' +
    `<title>${title} | Supabase Docs</title>` +
    `<meta name="description" content="Supabase API reference for ${libraryName}${section.title ? ': ' + section.title : ''}">` +
    `<meta name="og:image" content="https://supabase.com/docs/img/supabase-og-image.png">` +
    `<meta name="twitter:image" content="https://supabase.com/docs/img/supabase-og-image.png">` +
    `<link rel="canonical" href="https://supabase.com/docs/reference/${lib}` +
    (slug ? '/' + slug : '') +
    `">` +
    '</head>' +
    '<body>' +
    body +
    '</body></html>'
  )
}

Subdomains

Called By

Frequently Asked Questions

What does htmlShell() do?
htmlShell() is a function in the supabase codebase.
What calls htmlShell()?
htmlShell() is called by 1 function(s): GET.

Analyze Your Own Codebase

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

Try Supermodel Free