Public: anyone can read this; nobody can change it.

Every page sends the forge's page-view beacon #2

Merged opened this

Check · Review · Land · Live done — Landed and live in production.

Merged

measure → main 0 commits

  • Merged. measure was merged into main as 75c05b4.

Review

Sign in to review this change.
10 files changed +22 −0
build/layout.ts +1
@@ -122,6 +122,7 @@ export function page(p: Page): string {
122122 <meta name="twitter:image" content="${image}">
123123 <meta name="twitter:image:alt" content="${esc(alt)}">
124124 <link rel="stylesheet" href="/app.css">
125 <script defer src="/beacon.js"></script>
125126 <script type="application/ld+json">${JSON.stringify(graph).replace(/</g, "\\u003c")}</script>
126127 </head>
127128 <body${p.bodyClass ? ` class="${p.bodyClass}"` : ""}>
static/architecture.html +1
@@ -32,6 +32,7 @@
3232 <meta name="twitter:image" content="{{site}}/og-architecture.png">
3333 <meta name="twitter:image:alt" content="Architecture: Request workflow and reference architecture">
3434 <link rel="stylesheet" href="/app.css?v=ogprpsib">
35 <script defer src="/beacon.js"></script>
3536 <script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"WebSite","@id":"{{site}}/#website","url":"{{site}}/","name":"Open Platform","inLanguage":"en","publisher":{"@id":"{{site}}/#espodev"}},{"@type":"Organization","@id":"{{site}}/#espodev","name":"EspoDev","url":"https://www.espodev.com"},{"@type":"WebPage","@id":"{{site}}/architecture#page","url":"{{site}}/architecture","name":"Architecture: Open Platform","description":"The request workflow, the reference architecture, and which parts of Open Platform are its own code and which are standard, replaceable components.","isPartOf":{"@id":"{{site}}/#website"},"primaryImageOfPage":{"@type":"ImageObject","url":"{{site}}/og-architecture.png","width":1200,"height":630},"breadcrumb":{"@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Open Platform","item":"{{site}}/"},{"@type":"ListItem","position":2,"name":"Architecture","item":"{{site}}/architecture"}]}}]}</script>
3637 </head>
3738 <body>
static/beacon.js added +13
@@ -0,0 +1,13 @@
1 !function(n,d,w){
2 if(n.doNotTrack=="1"||/(^|; )forge_measure=off/.test(d.cookie)||!n.sendBeacon||!w.PerformanceObserver)return;
3 var c=0,i=0,l=0,x=0,u="",a=location.pathname;
4 function o(t,f,e){try{new PerformanceObserver(function(s){s.getEntries().forEach(f)}).observe(Object.assign({type:t,buffered:true},e))}catch(_){}}
5 o("largest-contentful-paint",function(e){l=e.startTime});
6 o("layout-shift",function(e){e.hadRecentInput||(c+=e.value)});
7 o("event",function(e){e.interactionId&&e.duration>i&&(i=e.duration)},{durationThreshold:40});
8 d.addEventListener("click",function(e){var t=e.target,k=t&&t.closest&&t.closest("a[href]");k&&k.hostname&&k.hostname!=location.hostname&&(u=k.hostname)},true);
9 function s(){if(x)return;x=1;var v=performance.getEntriesByType("navigation")[0]||{};
10 n.sendBeacon("/__forge/measure",JSON.stringify({path:a,ttfb:v.responseStart||0,load:v.loadEventEnd||0,lcp:l,inp:i,cls:c,ref:d.referrer.slice(0,300),q:location.search.slice(0,300),out:u}))}
11 d.addEventListener("visibilitychange",function(){d.visibilityState=="hidden"&&s()});
12 w.addEventListener("pagehide",s)
13 }(navigator,document,window)
static/bill-of-materials.html +1
@@ -32,6 +32,7 @@
3232 <meta name="twitter:image" content="{{site}}/og-bill-of-materials.png">
3333 <meta name="twitter:image:alt" content="Bill of materials: Infrastructure components and alternatives">
3434 <link rel="stylesheet" href="/app.css?v=ogprpsib">
35 <script defer src="/beacon.js"></script>
3536 <script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"WebSite","@id":"{{site}}/#website","url":"{{site}}/","name":"Open Platform","inLanguage":"en","publisher":{"@id":"{{site}}/#espodev"}},{"@type":"Organization","@id":"{{site}}/#espodev","name":"EspoDev","url":"https://www.espodev.com"},{"@type":"WebPage","@id":"{{site}}/bill-of-materials#page","url":"{{site}}/bill-of-materials","name":"Bill of materials: Open Platform","description":"Default components, built-in options and integration options for each of Open Platform's 23 infrastructure layers.","isPartOf":{"@id":"{{site}}/#website"},"primaryImageOfPage":{"@type":"ImageObject","url":"{{site}}/og-bill-of-materials.png","width":1200,"height":630},"breadcrumb":{"@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Open Platform","item":"{{site}}/"},{"@type":"ListItem","position":2,"name":"Bill of materials","item":"{{site}}/bill-of-materials"}]}}]}</script>
3637 </head>
3738 <body>
static/brief.html +1
@@ -32,6 +32,7 @@
3232 <meta name="twitter:image" content="{{site}}/og-brief.png">
3333 <meta name="twitter:image:alt" content="Brief: Internal applications, built in house with the people who use them">
3434 <link rel="stylesheet" href="/app.css?v=ogprpsib">
35 <script defer src="/beacon.js"></script>
3536 <script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"WebSite","@id":"{{site}}/#website","url":"{{site}}/","name":"Open Platform","inLanguage":"en","publisher":{"@id":"{{site}}/#espodev"}},{"@type":"Organization","@id":"{{site}}/#espodev","name":"EspoDev","url":"https://www.espodev.com"},{"@type":"WebPage","@id":"{{site}}/brief#page","url":"{{site}}/brief","name":"Brief: Open Platform","description":"A printable summary of Open Platform for architecture and security reviews.","isPartOf":{"@id":"{{site}}/#website"},"primaryImageOfPage":{"@type":"ImageObject","url":"{{site}}/og-brief.png","width":1200,"height":630},"breadcrumb":{"@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Open Platform","item":"{{site}}/"},{"@type":"ListItem","position":2,"name":"Brief","item":"{{site}}/brief"}]}}]}</script>
3637 </head>
3738 <body class="brief">
static/evaluation.html +1

Diff not shown — a line 9,837 characters wide (limit 2,000). +1

View file
static/index.html +1
@@ -32,6 +32,7 @@
3232 <meta name="twitter:image" content="{{site}}/og-home.png">
3333 <meta name="twitter:image:alt" content="Open Platform: Internal applications, built in house with the people who use them">
3434 <link rel="stylesheet" href="/app.css?v=ogprpsib">
35 <script defer src="/beacon.js"></script>
3536 <script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"WebSite","@id":"{{site}}/#website","url":"{{site}}/","name":"Open Platform","inLanguage":"en","publisher":{"@id":"{{site}}/#espodev"}},{"@type":"Organization","@id":"{{site}}/#espodev","name":"EspoDev","url":"https://www.espodev.com"},{"@type":"WebPage","@id":"{{site}}/#page","url":"{{site}}/","name":"Open Platform: internal applications, built in house with the people who use them","description":"One system for your internal applications. Staff request a change inside the application, developers and the crew build it, and people review it before it deploys on your infrastructure. Open source.","isPartOf":{"@id":"{{site}}/#website"},"primaryImageOfPage":{"@type":"ImageObject","url":"{{site}}/og-home.png","width":1200,"height":630},"breadcrumb":{"@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Open Platform","item":"{{site}}/"}]}},{"@type":"SoftwareApplication","name":"Open Platform","url":"https://www.open-platform.sh/","applicationCategory":"DeveloperApplication","applicationSubCategory":"Internal application platform","operatingSystem":"Linux, Kubernetes","license":"https://www.gnu.org/licenses/agpl-3.0.html","description":"Open source system for an organization's internal applications. Staff request a change inside the application. Developers and the crew, Open Platform's AI agents, build it with a preview environment. People review it, and it deploys on the organization's own infrastructure.","provider":{"@type":"Organization","name":"EspoDev","url":"https://www.espodev.com","parentOrganization":{"@type":"Organization","name":"Espo Corporation","url":"https://www.espocorp.com","address":{"@type":"PostalAddress","addressLocality":"Willowbrook","addressRegion":"IL","addressCountry":"US"}}},"sameAs":["https://forge.open-platform.sh/trevato/open-platform"]}]}</script>
3637 </head>
3738 <body>
static/mcp.html +1
@@ -32,6 +32,7 @@
3232 <meta name="twitter:image" content="{{site}}/og-mcp.png">
3333 <meta name="twitter:image:alt" content="MCP access: AI assistants connect through the Model Context Protocol">
3434 <link rel="stylesheet" href="/app.css?v=ogprpsib">
35 <script defer src="/beacon.js"></script>
3536 <script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"WebSite","@id":"{{site}}/#website","url":"{{site}}/","name":"Open Platform","inLanguage":"en","publisher":{"@id":"{{site}}/#espodev"}},{"@type":"Organization","@id":"{{site}}/#espodev","name":"EspoDev","url":"https://www.espodev.com"},{"@type":"WebPage","@id":"{{site}}/mcp#page","url":"{{site}}/mcp","name":"MCP access: Open Platform","description":"How AI assistants connect to Open Platform through the Model Context Protocol: OAuth authentication, per-call authorization, the same server code as the web interface, rate limits and audit logging.","isPartOf":{"@id":"{{site}}/#website"},"primaryImageOfPage":{"@type":"ImageObject","url":"{{site}}/og-mcp.png","width":1200,"height":630},"breadcrumb":{"@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Open Platform","item":"{{site}}/"},{"@type":"ListItem","position":2,"name":"MCP access","item":"{{site}}/mcp"}]}}]}</script>
3637 </head>
3738 <body>
static/security.html +1
@@ -32,6 +32,7 @@
3232 <meta name="twitter:image" content="{{site}}/og-security.png">
3333 <meta name="twitter:image:alt" content="Security: Security controls">
3434 <link rel="stylesheet" href="/app.css?v=ogprpsib">
35 <script defer src="/beacon.js"></script>
3536 <script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"WebSite","@id":"{{site}}/#website","url":"{{site}}/","name":"Open Platform","inLanguage":"en","publisher":{"@id":"{{site}}/#espodev"}},{"@type":"Organization","@id":"{{site}}/#espodev","name":"EspoDev","url":"https://www.espodev.com"},{"@type":"WebPage","@id":"{{site}}/security#page","url":"{{site}}/security","name":"Security: Open Platform","description":"Open Platform's security controls: change control, identity and access, workload isolation, secrets, backups and AI usage.","isPartOf":{"@id":"{{site}}/#website"},"primaryImageOfPage":{"@type":"ImageObject","url":"{{site}}/og-security.png","width":1200,"height":630},"breadcrumb":{"@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Open Platform","item":"{{site}}/"},{"@type":"ListItem","position":2,"name":"Security","item":"{{site}}/security"}]}}]}</script>
3637 </head>
3738 <body>
static/worksheet.html +1
@@ -32,6 +32,7 @@
3232 <meta name="twitter:image" content="{{site}}/og-worksheet.png">
3333 <meta name="twitter:image:alt" content="Design review worksheet: Select your components">
3434 <link rel="stylesheet" href="/app.css?v=ogprpsib">
35 <script defer src="/beacon.js"></script>
3536 <script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"WebSite","@id":"{{site}}/#website","url":"{{site}}/","name":"Open Platform","inLanguage":"en","publisher":{"@id":"{{site}}/#espodev"}},{"@type":"Organization","@id":"{{site}}/#espodev","name":"EspoDev","url":"https://www.espodev.com"},{"@type":"WebPage","@id":"{{site}}/worksheet#page","url":"{{site}}/worksheet","name":"Design review worksheet: Open Platform","description":"Select the component your organization uses for each infrastructure layer of Open Platform, then print the page or save it as a PDF.","isPartOf":{"@id":"{{site}}/#website"},"primaryImageOfPage":{"@type":"ImageObject","url":"{{site}}/og-worksheet.png","width":1200,"height":630},"breadcrumb":{"@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Open Platform","item":"{{site}}/"},{"@type":"ListItem","position":2,"name":"Design review worksheet","item":"{{site}}/worksheet"}]}}]}</script>
3637 </head>
3738 <body>

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs