[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-meta-test-on-device":3,"mdc--ezipcr-key":34,"related-org-meta-test-on-device":3513,"related-repo-meta-test-on-device":3702},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":12,"stars":23,"repoUrl":24,"updatedAt":25,"license":26,"forks":27,"topics":28,"repo":29,"sourceUrl":32,"mdContent":33},"test-on-device","test webapps on physical devices","Deploy uncommitted webapp changes to a public staging URL for live HTTPS testing on Meta Display Glasses. Use when the user wants to test, debug, preview, or try their webapp on the glasses without committing code. Uses Vercel by default.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},"meta","Meta Open Source","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Fmeta.png","facebook",[13,17,20],{"name":14,"slug":15,"type":16},"Deployment","deployment","tag",{"name":18,"slug":19,"type":16},"Testing","testing",{"name":21,"slug":22,"type":16},"Debugging","debugging",189,"https:\u002F\u002Fgithub.com\u002Ffacebook\u002Fmeta-wearables-webapp","2026-09-01T08:30:34.220631",null,33,[],{"repoUrl":24,"stars":23,"forks":27,"topics":30,"description":31},[],"AI-assisted development toolkit for building web applications on Meta Ray-Ban Display glasses.","https:\u002F\u002Fgithub.com\u002Ffacebook\u002Fmeta-wearables-webapp\u002Ftree\u002FHEAD\u002Fplugins\u002Fmeta-wearables-webapp\u002Fskills\u002Ftest-on-device","---\nname: test-on-device\ndescription: >-\n  Deploy uncommitted webapp changes to a public staging URL for live HTTPS testing\n  on Meta Display Glasses. Use when the user wants to test, debug, preview, or try\n  their webapp on the glasses without committing code. Uses Vercel by default.\nargument-hint: \"[app-directory]\"\n---\n\n# Test on Device\n\nPush uncommitted webapp changes to a public staging URL and open it on Meta Display Glasses — without committing code. Defaults to Vercel for hosting; you can also self-host on any HTTPS server and skip this skill.\n\n## Prerequisites\n\n### 1. Vercel-Compatible Node Server\n\nThe app directory must have these three files. If they don't exist, create them before proceeding.\n\n**`package.json`:**\n\n```json\n{\n  \"name\": \"\u003Capp-name>\",\n  \"version\": \"1.0.0\",\n  \"private\": true,\n  \"scripts\": {\n    \"start\": \"node server.js\"\n  }\n}\n```\n\n**`server.js`** — lightweight static file server:\n\n```javascript\nvar http = require('http');\nvar fs = require('fs');\nvar path = require('path');\n\nvar PORT = process.env.PORT || 3000;\n\nvar mimeTypes = {\n  '.html': 'text\u002Fhtml',\n  '.css': 'text\u002Fcss',\n  '.js': 'application\u002Fjavascript',\n  '.json': 'application\u002Fjson',\n  '.png': 'image\u002Fpng',\n  '.jpg': 'image\u002Fjpeg',\n  '.svg': 'image\u002Fsvg+xml',\n};\n\nvar server = http.createServer(function(req, res) {\n  var filePath = '.' + (req.url === '\u002F' ? '\u002Findex.html' : req.url);\n  var ext = path.extname(filePath);\n  var contentType = mimeTypes[ext] || 'application\u002Foctet-stream';\n\n  fs.readFile(filePath, function(err, content) {\n    if (err) {\n      res.writeHead(404, { 'Content-Type': 'text\u002Fhtml' });\n      res.end('\u003Ch1>404 Not Found\u003C\u002Fh1>');\n      return;\n    }\n    res.writeHead(200, { 'Content-Type': contentType });\n    res.end(content);\n  });\n});\n\nserver.listen(PORT, function() {\n  console.log('Server running at http:\u002F\u002Flocalhost:' + PORT);\n});\n```\n\n**`vercel.json`:**\n\n```json\n{\n  \"rewrites\": [\n    { \"source\": \"\u002F(.*)\", \"destination\": \"\u002F$1\" }\n  ]\n}\n```\n\nIf a server already exists, verify Vercel compatibility:\n- Port must use `process.env.PORT || 3000` (not hard-coded)\n- `vercel.json` must exist with rewrites config\n- Server must only serve static files (no Express routes or SSR)\n- `package.json` must have a `start` script\n\n### 2. Existing Webapp\n\n- Existing webapp with `index.html` (created via `\u002Fcreate-webapp` or manually)\n\n## Steps\n\nFor advice or planning questions, explain this workflow and provide the commands, but do not install global packages, deploy, or mutate the user's app. Only execute setup commands when the user explicitly asks you to perform the setup and provides the app directory.\n\n### 0. Verify Vercel Setup\n\nRun `vercel whoami` to detect the user's current state, then branch:\n\n**a. Authenticated** — `vercel whoami` returns a username. Skip to Step 0.5.\n\n**b. CLI not installed** — command returns `vercel: command not found` (or similar). Tell the user:\n\n> Testing on Meta Display Glasses needs a public HTTPS URL. I can set this up for you via Vercel — it's free and takes a couple of minutes. You'll need to create a Vercel account at https:\u002F\u002Fvercel.com\u002Fsignup (free tier is fine), and then I'll handle installing the CLI and walking you through the rest.\n>\n> If you'd rather host this yourself on any HTTPS server, you can skip this skill entirely.\n>\n> Want me to proceed with Vercel?\n\nIf yes, wait for the user to confirm they've created the Vercel account and explicitly asks you to perform setup, then run `npm i -g vercel` yourself. After install completes, proceed to the login branch below.\n\n**c. Not logged in** — CLI is installed but `vercel whoami` returns an auth error. Tell the user:\n\n> Vercel CLI is installed but not logged in. `vercel login` is interactive and needs your input — please type `! vercel login` in this prompt to run it in this session.\n\nAfter they complete login, re-run `vercel whoami` to confirm. Only proceed once it returns a valid user.\n\n### 0.5. Optional Passcode Lock\n\nThe staging URL will be publicly reachable by anyone with the link (Vercel's deployment protection is disabled in Step 1 so the glasses browser can access it).\n\nCheck if `lock.html` already exists in the app directory:\n\n- **If `lock.html` exists** — passcode is already in place. Skip to Step 1.\n- **If `lock.html` does not exist** — ask the user:\n\n> Want to add a 3-digit lock screen as a soft gate before the app loads? It's not real security — just keeps casual visitors out if someone guesses the URL. (default: no)\n\nIf yes, run `\u002Fpasscode-for-testing`. If no, skip to Step 1.\n\n### 1. Deploy Uncommitted Changes, Disable Auth, and Alias\n\nDeploy with `vercel` (without `--prod`), disable Vercel Authentication via CLI so the glasses browser can access it without login, then alias to a stable URL:\n\n```bash\n# Deploy and capture the preview URL\nURL=$(vercel --yes)\n\n# Disable Vercel Authentication (glasses browser can't log in)\n# Safe to run every time — no-op if already disabled\nPROJECT_ID=$(python3 -c \"import json; print(json.load(open('.vercel\u002Fproject.json'))['projectId'])\")\necho '{\"ssoProtection\":null}' | vercel api \"\u002Fv9\u002Fprojects\u002F$PROJECT_ID\" -X PATCH --input - --silent\n\n# Alias to a stable, predictable URL\nvercel alias set \"$URL\" stage-\u003Cproject-name>.vercel.app\n```\n\nReplace `\u003Cproject-name>` with the actual project name (from `package.json` or the `.vercel\u002Fproject.json`). For example, if the project is `my-glasses-app`, the stable URL becomes `https:\u002F\u002Fstage-my-glasses-app.vercel.app`.\n\nDo **not** use `--prod`. Preview deploys keep your production URL unaffected.\n\n### 2. Generate QR Code for Easy Device Setup\n\nGenerate a QR code that the user can scan from their phone to automatically add the webapp — no manual URL typing needed.\n\nThe QR code data must use this deep link format:\n```\nfb-viewapp:\u002F\u002Fweb_app_deep_link?appName=stage-\u003Capp-name>&appUrl=\u003Curl-encoded-stage-url>\n```\n\nFor example, if the app is called `my-glasses-app` and the stable URL is `https:\u002F\u002Fstage-my-glasses-app.vercel.app`:\n```\nfb-viewapp:\u002F\u002Fweb_app_deep_link?appName=stage-my-glasses-app&appUrl=https%3A%2F%2Fstage-my-glasses-app.vercel.app\n```\n\nUse the `\u002Fqr-code` skill to generate the QR code:\n\n```bash\npython3 skills\u002Fqr-code\u002Fscripts\u002Fqr_generator.py --png \u003Capp-dir>\u002Fqr-test-on-device.png \"fb-viewapp:\u002F\u002Fweb_app_deep_link?appName=stage-\u003Capp-name>&appUrl=\u003Curl-encoded-stage-url>\"\n```\n\nThe PNG is saved to the app directory. If your environment supports rendering images inline (e.g. Claude Code's Read tool), display the QR code directly. Otherwise, provide the file path and tell the user to open it and scan from their phone.\n\n> This QR code only needs to be generated once (on first deploy). The stable URL never changes, so the same QR code works for all future deploys.\n\n### 3. Give the User the Stable URL and Setup Instructions\n\nAfter deploy, alias, and QR generation, present the user with:\n\n**Stable URL:**\n```\nhttps:\u002F\u002Fstage-\u003Cproject-name>.vercel.app\n```\n\n**Option A — Scan QR code (recommended):**\nScan the generated QR code with your phone camera. It will open the Meta AI app and automatically add the webapp.\n\n**Option B — Manual setup:**\n1. Open the **Meta AI app** on your phone\n2. Go to **Devices** > **Display Glasses settings**\n3. Navigate to **App connections** > **Web apps**\n4. Tap **Add a web app**\n5. Enter the name: `stage-\u003Capp-name>`\n6. Enter the URL: `https:\u002F\u002Fstage-\u003Cproject-name>.vercel.app`\n\nBoth options only need to be done once — the URL never changes between deploys.\n\n### 4. Iterate\n\nMake changes locally, then deploy, disable auth, re-alias, and regenerate the QR code every time:\n\n```bash\n# Edit code...\nURL=$(vercel --yes)\n\n# Disable auth (safe to run every time)\nPROJECT_ID=$(python3 -c \"import json; print(json.load(open('.vercel\u002Fproject.json'))['projectId'])\")\necho '{\"ssoProtection\":null}' | vercel api \"\u002Fv9\u002Fprojects\u002F$PROJECT_ID\" -X PATCH --input - --silent\n\n# Re-alias\nvercel alias set \"$URL\" stage-\u003Cproject-name>.vercel.app\n\n# Regenerate QR code\npython3 skills\u002Fqr-code\u002Fscripts\u002Fqr_generator.py --png \u003Capp-dir>\u002Fqr-test-on-device.png \"fb-viewapp:\u002F\u002Fweb_app_deep_link?appName=stage-\u003Capp-name>&appUrl=\u003Curl-encoded-stage-url>\"\n```\n\nAfter each deploy, show the QR code and setup instructions (following Steps 2-3).\n\n> **PS:** If you've already added this webapp to your glasses, no need to re-add — the stable URL automatically serves the latest deploy.\n\n## Verification\n\n- [ ] Step 0 verified Vercel setup (`vercel whoami` returns a user) before any deploy\n- [ ] User was offered the passcode lock as opt-in (not auto-added)\n- [ ] `package.json`, `server.js`, and `vercel.json` exist in app directory\n- [ ] `.vercel\u002F` directory exists in app folder\n- [ ] Deployment Protection is disabled (ssoProtection is null)\n- [ ] `vercel` (no flags) completes and returns a preview URL\n- [ ] `vercel alias set` succeeds and maps to `stage-\u003Cproject-name>.vercel.app`\n- [ ] Stable URL is accessible in an incognito browser (no login prompt)\n- [ ] Webapp loads on Meta Display Glasses via the stable URL\n- [ ] Subsequent deploys + alias keep the same URL working\n\n## Troubleshooting\n\n| Issue | Solution |\n|-------|----------|\n| Preview URL shows Vercel login page | Run: `echo '{\"ssoProtection\":null}' \\| vercel api \"\u002Fv9\u002Fprojects\u002F$PROJECT_ID\" -X PATCH --input - --silent` |\n| `vercel: command not found` | Run `npm i -g vercel` |\n| No `.vercel\u002F` directory | Run `\u002Fpublish-to-vercel` first to set up the project |\n| Glasses show blank page | Check browser console — likely a JS error. Test URL in desktop browser first |\n| Old version showing on glasses | Clear the glasses browser cache or hard-refresh — the stable URL should auto-serve the latest deploy |\n| Alias name taken | The `stage-\u003Cproject-name>.vercel.app` subdomain may already be claimed by another Vercel user. Try a more specific name like `stage-\u003Cproject-name>-\u003Cteam>.vercel.app` |\n| CORS errors on API calls | APIs must allow cross-origin requests. Use a proxy or CORS-friendly API |\n| QR code won't scan | Ensure the deep link format is correct and the URL is properly percent-encoded. Try increasing `--scale` for a larger QR image |\n\n## Related Skills\n\n| Skill | Purpose | When to Use |\n|-------|---------|-------------|\n| `\u002Fpasscode-for-testing` | Add an optional passcode lock screen | Offered as opt-in in Step 0.5 to gate the public staging URL |\n| `\u002Fpublish-to-vercel` | Publish to stable production URL | Shipping a ready version |\n| `\u002Fcreate-webapp` | Create a new webapp | Before you have an app to debug |\n| `\u002Fconnect-api` | Add API connections | If debugging API integration issues |\n| `\u002Fqr-code` | Generate QR codes | Used automatically by this skill for device setup |\n",{"data":35,"body":37},{"name":4,"description":6,"argument-hint":36},"[app-directory]",{"type":38,"children":39},"root",[40,48,54,61,68,73,89,301,315,1620,1633,1764,1769,1819,1825,1849,1855,1860,1866,1879,1896,1914,1943,1956,1973,1997,2009,2015,2020,2033,2069,2077,2090,2096,2117,2378,2421,2440,2446,2451,2456,2466,2484,2493,2506,2567,2572,2580,2586,2591,2599,2608,2618,2626,2707,2712,2718,2723,3006,3011,3024,3030,3182,3188,3368,3374,3507],{"type":41,"tag":42,"props":43,"children":44},"element","h1",{"id":4},[45],{"type":46,"value":47},"text","Test on Device",{"type":41,"tag":49,"props":50,"children":51},"p",{},[52],{"type":46,"value":53},"Push uncommitted webapp changes to a public staging URL and open it on Meta Display Glasses — without committing code. Defaults to Vercel for hosting; you can also self-host on any HTTPS server and skip this skill.",{"type":41,"tag":55,"props":56,"children":58},"h2",{"id":57},"prerequisites",[59],{"type":46,"value":60},"Prerequisites",{"type":41,"tag":62,"props":63,"children":65},"h3",{"id":64},"_1-vercel-compatible-node-server",[66],{"type":46,"value":67},"1. Vercel-Compatible Node Server",{"type":41,"tag":49,"props":69,"children":70},{},[71],{"type":46,"value":72},"The app directory must have these three files. If they don't exist, create them before proceeding.",{"type":41,"tag":49,"props":74,"children":75},{},[76],{"type":41,"tag":77,"props":78,"children":79},"strong",{},[80,87],{"type":41,"tag":81,"props":82,"children":84},"code",{"className":83},[],[85],{"type":46,"value":86},"package.json",{"type":46,"value":88},":",{"type":41,"tag":90,"props":91,"children":96},"pre",{"className":92,"code":93,"language":94,"meta":95,"style":95},"language-json shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","{\n  \"name\": \"\u003Capp-name>\",\n  \"version\": \"1.0.0\",\n  \"private\": true,\n  \"scripts\": {\n    \"start\": \"node server.js\"\n  }\n}\n","json","",[97],{"type":41,"tag":81,"props":98,"children":99},{"__ignoreMap":95},[100,112,156,194,220,246,283,292],{"type":41,"tag":101,"props":102,"children":105},"span",{"class":103,"line":104},"line",1,[106],{"type":41,"tag":101,"props":107,"children":109},{"style":108},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[110],{"type":46,"value":111},"{\n",{"type":41,"tag":101,"props":113,"children":115},{"class":103,"line":114},2,[116,121,127,132,136,141,147,151],{"type":41,"tag":101,"props":117,"children":118},{"style":108},[119],{"type":46,"value":120},"  \"",{"type":41,"tag":101,"props":122,"children":124},{"style":123},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[125],{"type":46,"value":126},"name",{"type":41,"tag":101,"props":128,"children":129},{"style":108},[130],{"type":46,"value":131},"\"",{"type":41,"tag":101,"props":133,"children":134},{"style":108},[135],{"type":46,"value":88},{"type":41,"tag":101,"props":137,"children":138},{"style":108},[139],{"type":46,"value":140}," \"",{"type":41,"tag":101,"props":142,"children":144},{"style":143},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[145],{"type":46,"value":146},"\u003Capp-name>",{"type":41,"tag":101,"props":148,"children":149},{"style":108},[150],{"type":46,"value":131},{"type":41,"tag":101,"props":152,"children":153},{"style":108},[154],{"type":46,"value":155},",\n",{"type":41,"tag":101,"props":157,"children":159},{"class":103,"line":158},3,[160,164,169,173,177,181,186,190],{"type":41,"tag":101,"props":161,"children":162},{"style":108},[163],{"type":46,"value":120},{"type":41,"tag":101,"props":165,"children":166},{"style":123},[167],{"type":46,"value":168},"version",{"type":41,"tag":101,"props":170,"children":171},{"style":108},[172],{"type":46,"value":131},{"type":41,"tag":101,"props":174,"children":175},{"style":108},[176],{"type":46,"value":88},{"type":41,"tag":101,"props":178,"children":179},{"style":108},[180],{"type":46,"value":140},{"type":41,"tag":101,"props":182,"children":183},{"style":143},[184],{"type":46,"value":185},"1.0.0",{"type":41,"tag":101,"props":187,"children":188},{"style":108},[189],{"type":46,"value":131},{"type":41,"tag":101,"props":191,"children":192},{"style":108},[193],{"type":46,"value":155},{"type":41,"tag":101,"props":195,"children":197},{"class":103,"line":196},4,[198,202,207,211,215],{"type":41,"tag":101,"props":199,"children":200},{"style":108},[201],{"type":46,"value":120},{"type":41,"tag":101,"props":203,"children":204},{"style":123},[205],{"type":46,"value":206},"private",{"type":41,"tag":101,"props":208,"children":209},{"style":108},[210],{"type":46,"value":131},{"type":41,"tag":101,"props":212,"children":213},{"style":108},[214],{"type":46,"value":88},{"type":41,"tag":101,"props":216,"children":217},{"style":108},[218],{"type":46,"value":219}," true,\n",{"type":41,"tag":101,"props":221,"children":223},{"class":103,"line":222},5,[224,228,233,237,241],{"type":41,"tag":101,"props":225,"children":226},{"style":108},[227],{"type":46,"value":120},{"type":41,"tag":101,"props":229,"children":230},{"style":123},[231],{"type":46,"value":232},"scripts",{"type":41,"tag":101,"props":234,"children":235},{"style":108},[236],{"type":46,"value":131},{"type":41,"tag":101,"props":238,"children":239},{"style":108},[240],{"type":46,"value":88},{"type":41,"tag":101,"props":242,"children":243},{"style":108},[244],{"type":46,"value":245}," {\n",{"type":41,"tag":101,"props":247,"children":249},{"class":103,"line":248},6,[250,255,261,265,269,273,278],{"type":41,"tag":101,"props":251,"children":252},{"style":108},[253],{"type":46,"value":254},"    \"",{"type":41,"tag":101,"props":256,"children":258},{"style":257},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[259],{"type":46,"value":260},"start",{"type":41,"tag":101,"props":262,"children":263},{"style":108},[264],{"type":46,"value":131},{"type":41,"tag":101,"props":266,"children":267},{"style":108},[268],{"type":46,"value":88},{"type":41,"tag":101,"props":270,"children":271},{"style":108},[272],{"type":46,"value":140},{"type":41,"tag":101,"props":274,"children":275},{"style":143},[276],{"type":46,"value":277},"node server.js",{"type":41,"tag":101,"props":279,"children":280},{"style":108},[281],{"type":46,"value":282},"\"\n",{"type":41,"tag":101,"props":284,"children":286},{"class":103,"line":285},7,[287],{"type":41,"tag":101,"props":288,"children":289},{"style":108},[290],{"type":46,"value":291},"  }\n",{"type":41,"tag":101,"props":293,"children":295},{"class":103,"line":294},8,[296],{"type":41,"tag":101,"props":297,"children":298},{"style":108},[299],{"type":46,"value":300},"}\n",{"type":41,"tag":49,"props":302,"children":303},{},[304,313],{"type":41,"tag":77,"props":305,"children":306},{},[307],{"type":41,"tag":81,"props":308,"children":310},{"className":309},[],[311],{"type":46,"value":312},"server.js",{"type":46,"value":314}," — lightweight static file server:",{"type":41,"tag":90,"props":316,"children":320},{"className":317,"code":318,"language":319,"meta":95,"style":95},"language-javascript shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","var http = require('http');\nvar fs = require('fs');\nvar path = require('path');\n\nvar PORT = process.env.PORT || 3000;\n\nvar mimeTypes = {\n  '.html': 'text\u002Fhtml',\n  '.css': 'text\u002Fcss',\n  '.js': 'application\u002Fjavascript',\n  '.json': 'application\u002Fjson',\n  '.png': 'image\u002Fpng',\n  '.jpg': 'image\u002Fjpeg',\n  '.svg': 'image\u002Fsvg+xml',\n};\n\nvar server = http.createServer(function(req, res) {\n  var filePath = '.' + (req.url === '\u002F' ? '\u002Findex.html' : req.url);\n  var ext = path.extname(filePath);\n  var contentType = mimeTypes[ext] || 'application\u002Foctet-stream';\n\n  fs.readFile(filePath, function(err, content) {\n    if (err) {\n      res.writeHead(404, { 'Content-Type': 'text\u002Fhtml' });\n      res.end('\u003Ch1>404 Not Found\u003C\u002Fh1>');\n      return;\n    }\n    res.writeHead(200, { 'Content-Type': contentType });\n    res.end(content);\n  });\n});\n\nserver.listen(PORT, function() {\n  console.log('Server running at http:\u002F\u002Flocalhost:' + PORT);\n});\n","javascript",[321],{"type":41,"tag":81,"props":322,"children":323},{"__ignoreMap":95},[324,378,423,468,477,532,539,559,599,637,675,713,751,789,827,836,844,912,1028,1076,1134,1142,1203,1230,1308,1350,1363,1372,1438,1471,1488,1505,1513,1552,1604],{"type":41,"tag":101,"props":325,"children":326},{"class":103,"line":104},[327,332,338,343,349,354,359,364,368,373],{"type":41,"tag":101,"props":328,"children":329},{"style":123},[330],{"type":46,"value":331},"var",{"type":41,"tag":101,"props":333,"children":335},{"style":334},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[336],{"type":46,"value":337}," http ",{"type":41,"tag":101,"props":339,"children":340},{"style":108},[341],{"type":46,"value":342},"=",{"type":41,"tag":101,"props":344,"children":346},{"style":345},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[347],{"type":46,"value":348}," require",{"type":41,"tag":101,"props":350,"children":351},{"style":334},[352],{"type":46,"value":353},"(",{"type":41,"tag":101,"props":355,"children":356},{"style":108},[357],{"type":46,"value":358},"'",{"type":41,"tag":101,"props":360,"children":361},{"style":143},[362],{"type":46,"value":363},"http",{"type":41,"tag":101,"props":365,"children":366},{"style":108},[367],{"type":46,"value":358},{"type":41,"tag":101,"props":369,"children":370},{"style":334},[371],{"type":46,"value":372},")",{"type":41,"tag":101,"props":374,"children":375},{"style":108},[376],{"type":46,"value":377},";\n",{"type":41,"tag":101,"props":379,"children":380},{"class":103,"line":114},[381,385,390,394,398,402,406,411,415,419],{"type":41,"tag":101,"props":382,"children":383},{"style":123},[384],{"type":46,"value":331},{"type":41,"tag":101,"props":386,"children":387},{"style":334},[388],{"type":46,"value":389}," fs ",{"type":41,"tag":101,"props":391,"children":392},{"style":108},[393],{"type":46,"value":342},{"type":41,"tag":101,"props":395,"children":396},{"style":345},[397],{"type":46,"value":348},{"type":41,"tag":101,"props":399,"children":400},{"style":334},[401],{"type":46,"value":353},{"type":41,"tag":101,"props":403,"children":404},{"style":108},[405],{"type":46,"value":358},{"type":41,"tag":101,"props":407,"children":408},{"style":143},[409],{"type":46,"value":410},"fs",{"type":41,"tag":101,"props":412,"children":413},{"style":108},[414],{"type":46,"value":358},{"type":41,"tag":101,"props":416,"children":417},{"style":334},[418],{"type":46,"value":372},{"type":41,"tag":101,"props":420,"children":421},{"style":108},[422],{"type":46,"value":377},{"type":41,"tag":101,"props":424,"children":425},{"class":103,"line":158},[426,430,435,439,443,447,451,456,460,464],{"type":41,"tag":101,"props":427,"children":428},{"style":123},[429],{"type":46,"value":331},{"type":41,"tag":101,"props":431,"children":432},{"style":334},[433],{"type":46,"value":434}," path ",{"type":41,"tag":101,"props":436,"children":437},{"style":108},[438],{"type":46,"value":342},{"type":41,"tag":101,"props":440,"children":441},{"style":345},[442],{"type":46,"value":348},{"type":41,"tag":101,"props":444,"children":445},{"style":334},[446],{"type":46,"value":353},{"type":41,"tag":101,"props":448,"children":449},{"style":108},[450],{"type":46,"value":358},{"type":41,"tag":101,"props":452,"children":453},{"style":143},[454],{"type":46,"value":455},"path",{"type":41,"tag":101,"props":457,"children":458},{"style":108},[459],{"type":46,"value":358},{"type":41,"tag":101,"props":461,"children":462},{"style":334},[463],{"type":46,"value":372},{"type":41,"tag":101,"props":465,"children":466},{"style":108},[467],{"type":46,"value":377},{"type":41,"tag":101,"props":469,"children":470},{"class":103,"line":196},[471],{"type":41,"tag":101,"props":472,"children":474},{"emptyLinePlaceholder":473},true,[475],{"type":46,"value":476},"\n",{"type":41,"tag":101,"props":478,"children":479},{"class":103,"line":222},[480,484,489,493,498,503,508,512,517,522,528],{"type":41,"tag":101,"props":481,"children":482},{"style":123},[483],{"type":46,"value":331},{"type":41,"tag":101,"props":485,"children":486},{"style":334},[487],{"type":46,"value":488}," PORT ",{"type":41,"tag":101,"props":490,"children":491},{"style":108},[492],{"type":46,"value":342},{"type":41,"tag":101,"props":494,"children":495},{"style":334},[496],{"type":46,"value":497}," process",{"type":41,"tag":101,"props":499,"children":500},{"style":108},[501],{"type":46,"value":502},".",{"type":41,"tag":101,"props":504,"children":505},{"style":334},[506],{"type":46,"value":507},"env",{"type":41,"tag":101,"props":509,"children":510},{"style":108},[511],{"type":46,"value":502},{"type":41,"tag":101,"props":513,"children":514},{"style":334},[515],{"type":46,"value":516},"PORT ",{"type":41,"tag":101,"props":518,"children":519},{"style":108},[520],{"type":46,"value":521},"||",{"type":41,"tag":101,"props":523,"children":525},{"style":524},"--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C",[526],{"type":46,"value":527}," 3000",{"type":41,"tag":101,"props":529,"children":530},{"style":108},[531],{"type":46,"value":377},{"type":41,"tag":101,"props":533,"children":534},{"class":103,"line":248},[535],{"type":41,"tag":101,"props":536,"children":537},{"emptyLinePlaceholder":473},[538],{"type":46,"value":476},{"type":41,"tag":101,"props":540,"children":541},{"class":103,"line":285},[542,546,551,555],{"type":41,"tag":101,"props":543,"children":544},{"style":123},[545],{"type":46,"value":331},{"type":41,"tag":101,"props":547,"children":548},{"style":334},[549],{"type":46,"value":550}," mimeTypes ",{"type":41,"tag":101,"props":552,"children":553},{"style":108},[554],{"type":46,"value":342},{"type":41,"tag":101,"props":556,"children":557},{"style":108},[558],{"type":46,"value":245},{"type":41,"tag":101,"props":560,"children":561},{"class":103,"line":294},[562,567,573,577,581,586,591,595],{"type":41,"tag":101,"props":563,"children":564},{"style":108},[565],{"type":46,"value":566},"  '",{"type":41,"tag":101,"props":568,"children":570},{"style":569},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[571],{"type":46,"value":572},".html",{"type":41,"tag":101,"props":574,"children":575},{"style":108},[576],{"type":46,"value":358},{"type":41,"tag":101,"props":578,"children":579},{"style":108},[580],{"type":46,"value":88},{"type":41,"tag":101,"props":582,"children":583},{"style":108},[584],{"type":46,"value":585}," '",{"type":41,"tag":101,"props":587,"children":588},{"style":143},[589],{"type":46,"value":590},"text\u002Fhtml",{"type":41,"tag":101,"props":592,"children":593},{"style":108},[594],{"type":46,"value":358},{"type":41,"tag":101,"props":596,"children":597},{"style":108},[598],{"type":46,"value":155},{"type":41,"tag":101,"props":600,"children":602},{"class":103,"line":601},9,[603,607,612,616,620,624,629,633],{"type":41,"tag":101,"props":604,"children":605},{"style":108},[606],{"type":46,"value":566},{"type":41,"tag":101,"props":608,"children":609},{"style":569},[610],{"type":46,"value":611},".css",{"type":41,"tag":101,"props":613,"children":614},{"style":108},[615],{"type":46,"value":358},{"type":41,"tag":101,"props":617,"children":618},{"style":108},[619],{"type":46,"value":88},{"type":41,"tag":101,"props":621,"children":622},{"style":108},[623],{"type":46,"value":585},{"type":41,"tag":101,"props":625,"children":626},{"style":143},[627],{"type":46,"value":628},"text\u002Fcss",{"type":41,"tag":101,"props":630,"children":631},{"style":108},[632],{"type":46,"value":358},{"type":41,"tag":101,"props":634,"children":635},{"style":108},[636],{"type":46,"value":155},{"type":41,"tag":101,"props":638,"children":640},{"class":103,"line":639},10,[641,645,650,654,658,662,667,671],{"type":41,"tag":101,"props":642,"children":643},{"style":108},[644],{"type":46,"value":566},{"type":41,"tag":101,"props":646,"children":647},{"style":569},[648],{"type":46,"value":649},".js",{"type":41,"tag":101,"props":651,"children":652},{"style":108},[653],{"type":46,"value":358},{"type":41,"tag":101,"props":655,"children":656},{"style":108},[657],{"type":46,"value":88},{"type":41,"tag":101,"props":659,"children":660},{"style":108},[661],{"type":46,"value":585},{"type":41,"tag":101,"props":663,"children":664},{"style":143},[665],{"type":46,"value":666},"application\u002Fjavascript",{"type":41,"tag":101,"props":668,"children":669},{"style":108},[670],{"type":46,"value":358},{"type":41,"tag":101,"props":672,"children":673},{"style":108},[674],{"type":46,"value":155},{"type":41,"tag":101,"props":676,"children":678},{"class":103,"line":677},11,[679,683,688,692,696,700,705,709],{"type":41,"tag":101,"props":680,"children":681},{"style":108},[682],{"type":46,"value":566},{"type":41,"tag":101,"props":684,"children":685},{"style":569},[686],{"type":46,"value":687},".json",{"type":41,"tag":101,"props":689,"children":690},{"style":108},[691],{"type":46,"value":358},{"type":41,"tag":101,"props":693,"children":694},{"style":108},[695],{"type":46,"value":88},{"type":41,"tag":101,"props":697,"children":698},{"style":108},[699],{"type":46,"value":585},{"type":41,"tag":101,"props":701,"children":702},{"style":143},[703],{"type":46,"value":704},"application\u002Fjson",{"type":41,"tag":101,"props":706,"children":707},{"style":108},[708],{"type":46,"value":358},{"type":41,"tag":101,"props":710,"children":711},{"style":108},[712],{"type":46,"value":155},{"type":41,"tag":101,"props":714,"children":716},{"class":103,"line":715},12,[717,721,726,730,734,738,743,747],{"type":41,"tag":101,"props":718,"children":719},{"style":108},[720],{"type":46,"value":566},{"type":41,"tag":101,"props":722,"children":723},{"style":569},[724],{"type":46,"value":725},".png",{"type":41,"tag":101,"props":727,"children":728},{"style":108},[729],{"type":46,"value":358},{"type":41,"tag":101,"props":731,"children":732},{"style":108},[733],{"type":46,"value":88},{"type":41,"tag":101,"props":735,"children":736},{"style":108},[737],{"type":46,"value":585},{"type":41,"tag":101,"props":739,"children":740},{"style":143},[741],{"type":46,"value":742},"image\u002Fpng",{"type":41,"tag":101,"props":744,"children":745},{"style":108},[746],{"type":46,"value":358},{"type":41,"tag":101,"props":748,"children":749},{"style":108},[750],{"type":46,"value":155},{"type":41,"tag":101,"props":752,"children":754},{"class":103,"line":753},13,[755,759,764,768,772,776,781,785],{"type":41,"tag":101,"props":756,"children":757},{"style":108},[758],{"type":46,"value":566},{"type":41,"tag":101,"props":760,"children":761},{"style":569},[762],{"type":46,"value":763},".jpg",{"type":41,"tag":101,"props":765,"children":766},{"style":108},[767],{"type":46,"value":358},{"type":41,"tag":101,"props":769,"children":770},{"style":108},[771],{"type":46,"value":88},{"type":41,"tag":101,"props":773,"children":774},{"style":108},[775],{"type":46,"value":585},{"type":41,"tag":101,"props":777,"children":778},{"style":143},[779],{"type":46,"value":780},"image\u002Fjpeg",{"type":41,"tag":101,"props":782,"children":783},{"style":108},[784],{"type":46,"value":358},{"type":41,"tag":101,"props":786,"children":787},{"style":108},[788],{"type":46,"value":155},{"type":41,"tag":101,"props":790,"children":792},{"class":103,"line":791},14,[793,797,802,806,810,814,819,823],{"type":41,"tag":101,"props":794,"children":795},{"style":108},[796],{"type":46,"value":566},{"type":41,"tag":101,"props":798,"children":799},{"style":569},[800],{"type":46,"value":801},".svg",{"type":41,"tag":101,"props":803,"children":804},{"style":108},[805],{"type":46,"value":358},{"type":41,"tag":101,"props":807,"children":808},{"style":108},[809],{"type":46,"value":88},{"type":41,"tag":101,"props":811,"children":812},{"style":108},[813],{"type":46,"value":585},{"type":41,"tag":101,"props":815,"children":816},{"style":143},[817],{"type":46,"value":818},"image\u002Fsvg+xml",{"type":41,"tag":101,"props":820,"children":821},{"style":108},[822],{"type":46,"value":358},{"type":41,"tag":101,"props":824,"children":825},{"style":108},[826],{"type":46,"value":155},{"type":41,"tag":101,"props":828,"children":830},{"class":103,"line":829},15,[831],{"type":41,"tag":101,"props":832,"children":833},{"style":108},[834],{"type":46,"value":835},"};\n",{"type":41,"tag":101,"props":837,"children":839},{"class":103,"line":838},16,[840],{"type":41,"tag":101,"props":841,"children":842},{"emptyLinePlaceholder":473},[843],{"type":46,"value":476},{"type":41,"tag":101,"props":845,"children":847},{"class":103,"line":846},17,[848,852,857,861,866,870,875,879,884,888,894,899,904,908],{"type":41,"tag":101,"props":849,"children":850},{"style":123},[851],{"type":46,"value":331},{"type":41,"tag":101,"props":853,"children":854},{"style":334},[855],{"type":46,"value":856}," server ",{"type":41,"tag":101,"props":858,"children":859},{"style":108},[860],{"type":46,"value":342},{"type":41,"tag":101,"props":862,"children":863},{"style":334},[864],{"type":46,"value":865}," http",{"type":41,"tag":101,"props":867,"children":868},{"style":108},[869],{"type":46,"value":502},{"type":41,"tag":101,"props":871,"children":872},{"style":345},[873],{"type":46,"value":874},"createServer",{"type":41,"tag":101,"props":876,"children":877},{"style":334},[878],{"type":46,"value":353},{"type":41,"tag":101,"props":880,"children":881},{"style":123},[882],{"type":46,"value":883},"function",{"type":41,"tag":101,"props":885,"children":886},{"style":108},[887],{"type":46,"value":353},{"type":41,"tag":101,"props":889,"children":891},{"style":890},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic",[892],{"type":46,"value":893},"req",{"type":41,"tag":101,"props":895,"children":896},{"style":108},[897],{"type":46,"value":898},",",{"type":41,"tag":101,"props":900,"children":901},{"style":890},[902],{"type":46,"value":903}," res",{"type":41,"tag":101,"props":905,"children":906},{"style":108},[907],{"type":46,"value":372},{"type":41,"tag":101,"props":909,"children":910},{"style":108},[911],{"type":46,"value":245},{"type":41,"tag":101,"props":913,"children":915},{"class":103,"line":914},18,[916,921,926,931,935,939,943,948,953,957,961,966,971,975,980,984,989,993,998,1002,1007,1012,1016,1020,1024],{"type":41,"tag":101,"props":917,"children":918},{"style":123},[919],{"type":46,"value":920},"  var",{"type":41,"tag":101,"props":922,"children":923},{"style":334},[924],{"type":46,"value":925}," filePath",{"type":41,"tag":101,"props":927,"children":928},{"style":108},[929],{"type":46,"value":930}," =",{"type":41,"tag":101,"props":932,"children":933},{"style":108},[934],{"type":46,"value":585},{"type":41,"tag":101,"props":936,"children":937},{"style":143},[938],{"type":46,"value":502},{"type":41,"tag":101,"props":940,"children":941},{"style":108},[942],{"type":46,"value":358},{"type":41,"tag":101,"props":944,"children":945},{"style":108},[946],{"type":46,"value":947}," +",{"type":41,"tag":101,"props":949,"children":950},{"style":569},[951],{"type":46,"value":952}," (",{"type":41,"tag":101,"props":954,"children":955},{"style":334},[956],{"type":46,"value":893},{"type":41,"tag":101,"props":958,"children":959},{"style":108},[960],{"type":46,"value":502},{"type":41,"tag":101,"props":962,"children":963},{"style":334},[964],{"type":46,"value":965},"url",{"type":41,"tag":101,"props":967,"children":968},{"style":108},[969],{"type":46,"value":970}," ===",{"type":41,"tag":101,"props":972,"children":973},{"style":108},[974],{"type":46,"value":585},{"type":41,"tag":101,"props":976,"children":977},{"style":143},[978],{"type":46,"value":979},"\u002F",{"type":41,"tag":101,"props":981,"children":982},{"style":108},[983],{"type":46,"value":358},{"type":41,"tag":101,"props":985,"children":986},{"style":108},[987],{"type":46,"value":988}," ?",{"type":41,"tag":101,"props":990,"children":991},{"style":108},[992],{"type":46,"value":585},{"type":41,"tag":101,"props":994,"children":995},{"style":143},[996],{"type":46,"value":997},"\u002Findex.html",{"type":41,"tag":101,"props":999,"children":1000},{"style":108},[1001],{"type":46,"value":358},{"type":41,"tag":101,"props":1003,"children":1004},{"style":108},[1005],{"type":46,"value":1006}," :",{"type":41,"tag":101,"props":1008,"children":1009},{"style":334},[1010],{"type":46,"value":1011}," req",{"type":41,"tag":101,"props":1013,"children":1014},{"style":108},[1015],{"type":46,"value":502},{"type":41,"tag":101,"props":1017,"children":1018},{"style":334},[1019],{"type":46,"value":965},{"type":41,"tag":101,"props":1021,"children":1022},{"style":569},[1023],{"type":46,"value":372},{"type":41,"tag":101,"props":1025,"children":1026},{"style":108},[1027],{"type":46,"value":377},{"type":41,"tag":101,"props":1029,"children":1031},{"class":103,"line":1030},19,[1032,1036,1041,1045,1050,1054,1059,1063,1068,1072],{"type":41,"tag":101,"props":1033,"children":1034},{"style":123},[1035],{"type":46,"value":920},{"type":41,"tag":101,"props":1037,"children":1038},{"style":334},[1039],{"type":46,"value":1040}," ext",{"type":41,"tag":101,"props":1042,"children":1043},{"style":108},[1044],{"type":46,"value":930},{"type":41,"tag":101,"props":1046,"children":1047},{"style":334},[1048],{"type":46,"value":1049}," path",{"type":41,"tag":101,"props":1051,"children":1052},{"style":108},[1053],{"type":46,"value":502},{"type":41,"tag":101,"props":1055,"children":1056},{"style":345},[1057],{"type":46,"value":1058},"extname",{"type":41,"tag":101,"props":1060,"children":1061},{"style":569},[1062],{"type":46,"value":353},{"type":41,"tag":101,"props":1064,"children":1065},{"style":334},[1066],{"type":46,"value":1067},"filePath",{"type":41,"tag":101,"props":1069,"children":1070},{"style":569},[1071],{"type":46,"value":372},{"type":41,"tag":101,"props":1073,"children":1074},{"style":108},[1075],{"type":46,"value":377},{"type":41,"tag":101,"props":1077,"children":1079},{"class":103,"line":1078},20,[1080,1084,1089,1093,1098,1103,1108,1113,1117,1121,1126,1130],{"type":41,"tag":101,"props":1081,"children":1082},{"style":123},[1083],{"type":46,"value":920},{"type":41,"tag":101,"props":1085,"children":1086},{"style":334},[1087],{"type":46,"value":1088}," contentType",{"type":41,"tag":101,"props":1090,"children":1091},{"style":108},[1092],{"type":46,"value":930},{"type":41,"tag":101,"props":1094,"children":1095},{"style":334},[1096],{"type":46,"value":1097}," mimeTypes",{"type":41,"tag":101,"props":1099,"children":1100},{"style":569},[1101],{"type":46,"value":1102},"[",{"type":41,"tag":101,"props":1104,"children":1105},{"style":334},[1106],{"type":46,"value":1107},"ext",{"type":41,"tag":101,"props":1109,"children":1110},{"style":569},[1111],{"type":46,"value":1112},"] ",{"type":41,"tag":101,"props":1114,"children":1115},{"style":108},[1116],{"type":46,"value":521},{"type":41,"tag":101,"props":1118,"children":1119},{"style":108},[1120],{"type":46,"value":585},{"type":41,"tag":101,"props":1122,"children":1123},{"style":143},[1124],{"type":46,"value":1125},"application\u002Foctet-stream",{"type":41,"tag":101,"props":1127,"children":1128},{"style":108},[1129],{"type":46,"value":358},{"type":41,"tag":101,"props":1131,"children":1132},{"style":108},[1133],{"type":46,"value":377},{"type":41,"tag":101,"props":1135,"children":1137},{"class":103,"line":1136},21,[1138],{"type":41,"tag":101,"props":1139,"children":1140},{"emptyLinePlaceholder":473},[1141],{"type":46,"value":476},{"type":41,"tag":101,"props":1143,"children":1145},{"class":103,"line":1144},22,[1146,1151,1155,1160,1164,1168,1172,1177,1181,1186,1190,1195,1199],{"type":41,"tag":101,"props":1147,"children":1148},{"style":334},[1149],{"type":46,"value":1150},"  fs",{"type":41,"tag":101,"props":1152,"children":1153},{"style":108},[1154],{"type":46,"value":502},{"type":41,"tag":101,"props":1156,"children":1157},{"style":345},[1158],{"type":46,"value":1159},"readFile",{"type":41,"tag":101,"props":1161,"children":1162},{"style":569},[1163],{"type":46,"value":353},{"type":41,"tag":101,"props":1165,"children":1166},{"style":334},[1167],{"type":46,"value":1067},{"type":41,"tag":101,"props":1169,"children":1170},{"style":108},[1171],{"type":46,"value":898},{"type":41,"tag":101,"props":1173,"children":1174},{"style":123},[1175],{"type":46,"value":1176}," function",{"type":41,"tag":101,"props":1178,"children":1179},{"style":108},[1180],{"type":46,"value":353},{"type":41,"tag":101,"props":1182,"children":1183},{"style":890},[1184],{"type":46,"value":1185},"err",{"type":41,"tag":101,"props":1187,"children":1188},{"style":108},[1189],{"type":46,"value":898},{"type":41,"tag":101,"props":1191,"children":1192},{"style":890},[1193],{"type":46,"value":1194}," content",{"type":41,"tag":101,"props":1196,"children":1197},{"style":108},[1198],{"type":46,"value":372},{"type":41,"tag":101,"props":1200,"children":1201},{"style":108},[1202],{"type":46,"value":245},{"type":41,"tag":101,"props":1204,"children":1206},{"class":103,"line":1205},23,[1207,1213,1217,1221,1226],{"type":41,"tag":101,"props":1208,"children":1210},{"style":1209},"--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic",[1211],{"type":46,"value":1212},"    if",{"type":41,"tag":101,"props":1214,"children":1215},{"style":569},[1216],{"type":46,"value":952},{"type":41,"tag":101,"props":1218,"children":1219},{"style":334},[1220],{"type":46,"value":1185},{"type":41,"tag":101,"props":1222,"children":1223},{"style":569},[1224],{"type":46,"value":1225},") ",{"type":41,"tag":101,"props":1227,"children":1228},{"style":108},[1229],{"type":46,"value":111},{"type":41,"tag":101,"props":1231,"children":1233},{"class":103,"line":1232},24,[1234,1239,1243,1248,1252,1257,1261,1266,1270,1275,1279,1283,1287,1291,1295,1300,1304],{"type":41,"tag":101,"props":1235,"children":1236},{"style":334},[1237],{"type":46,"value":1238},"      res",{"type":41,"tag":101,"props":1240,"children":1241},{"style":108},[1242],{"type":46,"value":502},{"type":41,"tag":101,"props":1244,"children":1245},{"style":345},[1246],{"type":46,"value":1247},"writeHead",{"type":41,"tag":101,"props":1249,"children":1250},{"style":569},[1251],{"type":46,"value":353},{"type":41,"tag":101,"props":1253,"children":1254},{"style":524},[1255],{"type":46,"value":1256},"404",{"type":41,"tag":101,"props":1258,"children":1259},{"style":108},[1260],{"type":46,"value":898},{"type":41,"tag":101,"props":1262,"children":1263},{"style":108},[1264],{"type":46,"value":1265}," {",{"type":41,"tag":101,"props":1267,"children":1268},{"style":108},[1269],{"type":46,"value":585},{"type":41,"tag":101,"props":1271,"children":1272},{"style":569},[1273],{"type":46,"value":1274},"Content-Type",{"type":41,"tag":101,"props":1276,"children":1277},{"style":108},[1278],{"type":46,"value":358},{"type":41,"tag":101,"props":1280,"children":1281},{"style":108},[1282],{"type":46,"value":88},{"type":41,"tag":101,"props":1284,"children":1285},{"style":108},[1286],{"type":46,"value":585},{"type":41,"tag":101,"props":1288,"children":1289},{"style":143},[1290],{"type":46,"value":590},{"type":41,"tag":101,"props":1292,"children":1293},{"style":108},[1294],{"type":46,"value":358},{"type":41,"tag":101,"props":1296,"children":1297},{"style":108},[1298],{"type":46,"value":1299}," }",{"type":41,"tag":101,"props":1301,"children":1302},{"style":569},[1303],{"type":46,"value":372},{"type":41,"tag":101,"props":1305,"children":1306},{"style":108},[1307],{"type":46,"value":377},{"type":41,"tag":101,"props":1309,"children":1311},{"class":103,"line":1310},25,[1312,1316,1320,1325,1329,1333,1338,1342,1346],{"type":41,"tag":101,"props":1313,"children":1314},{"style":334},[1315],{"type":46,"value":1238},{"type":41,"tag":101,"props":1317,"children":1318},{"style":108},[1319],{"type":46,"value":502},{"type":41,"tag":101,"props":1321,"children":1322},{"style":345},[1323],{"type":46,"value":1324},"end",{"type":41,"tag":101,"props":1326,"children":1327},{"style":569},[1328],{"type":46,"value":353},{"type":41,"tag":101,"props":1330,"children":1331},{"style":108},[1332],{"type":46,"value":358},{"type":41,"tag":101,"props":1334,"children":1335},{"style":143},[1336],{"type":46,"value":1337},"\u003Ch1>404 Not Found\u003C\u002Fh1>",{"type":41,"tag":101,"props":1339,"children":1340},{"style":108},[1341],{"type":46,"value":358},{"type":41,"tag":101,"props":1343,"children":1344},{"style":569},[1345],{"type":46,"value":372},{"type":41,"tag":101,"props":1347,"children":1348},{"style":108},[1349],{"type":46,"value":377},{"type":41,"tag":101,"props":1351,"children":1353},{"class":103,"line":1352},26,[1354,1359],{"type":41,"tag":101,"props":1355,"children":1356},{"style":1209},[1357],{"type":46,"value":1358},"      return",{"type":41,"tag":101,"props":1360,"children":1361},{"style":108},[1362],{"type":46,"value":377},{"type":41,"tag":101,"props":1364,"children":1366},{"class":103,"line":1365},27,[1367],{"type":41,"tag":101,"props":1368,"children":1369},{"style":108},[1370],{"type":46,"value":1371},"    }\n",{"type":41,"tag":101,"props":1373,"children":1375},{"class":103,"line":1374},28,[1376,1381,1385,1389,1393,1398,1402,1406,1410,1414,1418,1422,1426,1430,1434],{"type":41,"tag":101,"props":1377,"children":1378},{"style":334},[1379],{"type":46,"value":1380},"    res",{"type":41,"tag":101,"props":1382,"children":1383},{"style":108},[1384],{"type":46,"value":502},{"type":41,"tag":101,"props":1386,"children":1387},{"style":345},[1388],{"type":46,"value":1247},{"type":41,"tag":101,"props":1390,"children":1391},{"style":569},[1392],{"type":46,"value":353},{"type":41,"tag":101,"props":1394,"children":1395},{"style":524},[1396],{"type":46,"value":1397},"200",{"type":41,"tag":101,"props":1399,"children":1400},{"style":108},[1401],{"type":46,"value":898},{"type":41,"tag":101,"props":1403,"children":1404},{"style":108},[1405],{"type":46,"value":1265},{"type":41,"tag":101,"props":1407,"children":1408},{"style":108},[1409],{"type":46,"value":585},{"type":41,"tag":101,"props":1411,"children":1412},{"style":569},[1413],{"type":46,"value":1274},{"type":41,"tag":101,"props":1415,"children":1416},{"style":108},[1417],{"type":46,"value":358},{"type":41,"tag":101,"props":1419,"children":1420},{"style":108},[1421],{"type":46,"value":88},{"type":41,"tag":101,"props":1423,"children":1424},{"style":334},[1425],{"type":46,"value":1088},{"type":41,"tag":101,"props":1427,"children":1428},{"style":108},[1429],{"type":46,"value":1299},{"type":41,"tag":101,"props":1431,"children":1432},{"style":569},[1433],{"type":46,"value":372},{"type":41,"tag":101,"props":1435,"children":1436},{"style":108},[1437],{"type":46,"value":377},{"type":41,"tag":101,"props":1439,"children":1441},{"class":103,"line":1440},29,[1442,1446,1450,1454,1458,1463,1467],{"type":41,"tag":101,"props":1443,"children":1444},{"style":334},[1445],{"type":46,"value":1380},{"type":41,"tag":101,"props":1447,"children":1448},{"style":108},[1449],{"type":46,"value":502},{"type":41,"tag":101,"props":1451,"children":1452},{"style":345},[1453],{"type":46,"value":1324},{"type":41,"tag":101,"props":1455,"children":1456},{"style":569},[1457],{"type":46,"value":353},{"type":41,"tag":101,"props":1459,"children":1460},{"style":334},[1461],{"type":46,"value":1462},"content",{"type":41,"tag":101,"props":1464,"children":1465},{"style":569},[1466],{"type":46,"value":372},{"type":41,"tag":101,"props":1468,"children":1469},{"style":108},[1470],{"type":46,"value":377},{"type":41,"tag":101,"props":1472,"children":1474},{"class":103,"line":1473},30,[1475,1480,1484],{"type":41,"tag":101,"props":1476,"children":1477},{"style":108},[1478],{"type":46,"value":1479},"  }",{"type":41,"tag":101,"props":1481,"children":1482},{"style":569},[1483],{"type":46,"value":372},{"type":41,"tag":101,"props":1485,"children":1486},{"style":108},[1487],{"type":46,"value":377},{"type":41,"tag":101,"props":1489,"children":1491},{"class":103,"line":1490},31,[1492,1497,1501],{"type":41,"tag":101,"props":1493,"children":1494},{"style":108},[1495],{"type":46,"value":1496},"}",{"type":41,"tag":101,"props":1498,"children":1499},{"style":334},[1500],{"type":46,"value":372},{"type":41,"tag":101,"props":1502,"children":1503},{"style":108},[1504],{"type":46,"value":377},{"type":41,"tag":101,"props":1506,"children":1508},{"class":103,"line":1507},32,[1509],{"type":41,"tag":101,"props":1510,"children":1511},{"emptyLinePlaceholder":473},[1512],{"type":46,"value":476},{"type":41,"tag":101,"props":1514,"children":1515},{"class":103,"line":27},[1516,1521,1525,1530,1535,1539,1543,1548],{"type":41,"tag":101,"props":1517,"children":1518},{"style":334},[1519],{"type":46,"value":1520},"server",{"type":41,"tag":101,"props":1522,"children":1523},{"style":108},[1524],{"type":46,"value":502},{"type":41,"tag":101,"props":1526,"children":1527},{"style":345},[1528],{"type":46,"value":1529},"listen",{"type":41,"tag":101,"props":1531,"children":1532},{"style":334},[1533],{"type":46,"value":1534},"(PORT",{"type":41,"tag":101,"props":1536,"children":1537},{"style":108},[1538],{"type":46,"value":898},{"type":41,"tag":101,"props":1540,"children":1541},{"style":123},[1542],{"type":46,"value":1176},{"type":41,"tag":101,"props":1544,"children":1545},{"style":108},[1546],{"type":46,"value":1547},"()",{"type":41,"tag":101,"props":1549,"children":1550},{"style":108},[1551],{"type":46,"value":245},{"type":41,"tag":101,"props":1553,"children":1555},{"class":103,"line":1554},34,[1556,1561,1565,1570,1574,1578,1583,1587,1591,1596,1600],{"type":41,"tag":101,"props":1557,"children":1558},{"style":334},[1559],{"type":46,"value":1560},"  console",{"type":41,"tag":101,"props":1562,"children":1563},{"style":108},[1564],{"type":46,"value":502},{"type":41,"tag":101,"props":1566,"children":1567},{"style":345},[1568],{"type":46,"value":1569},"log",{"type":41,"tag":101,"props":1571,"children":1572},{"style":569},[1573],{"type":46,"value":353},{"type":41,"tag":101,"props":1575,"children":1576},{"style":108},[1577],{"type":46,"value":358},{"type":41,"tag":101,"props":1579,"children":1580},{"style":143},[1581],{"type":46,"value":1582},"Server running at http:\u002F\u002Flocalhost:",{"type":41,"tag":101,"props":1584,"children":1585},{"style":108},[1586],{"type":46,"value":358},{"type":41,"tag":101,"props":1588,"children":1589},{"style":108},[1590],{"type":46,"value":947},{"type":41,"tag":101,"props":1592,"children":1593},{"style":334},[1594],{"type":46,"value":1595}," PORT",{"type":41,"tag":101,"props":1597,"children":1598},{"style":569},[1599],{"type":46,"value":372},{"type":41,"tag":101,"props":1601,"children":1602},{"style":108},[1603],{"type":46,"value":377},{"type":41,"tag":101,"props":1605,"children":1607},{"class":103,"line":1606},35,[1608,1612,1616],{"type":41,"tag":101,"props":1609,"children":1610},{"style":108},[1611],{"type":46,"value":1496},{"type":41,"tag":101,"props":1613,"children":1614},{"style":334},[1615],{"type":46,"value":372},{"type":41,"tag":101,"props":1617,"children":1618},{"style":108},[1619],{"type":46,"value":377},{"type":41,"tag":49,"props":1621,"children":1622},{},[1623],{"type":41,"tag":77,"props":1624,"children":1625},{},[1626,1632],{"type":41,"tag":81,"props":1627,"children":1629},{"className":1628},[],[1630],{"type":46,"value":1631},"vercel.json",{"type":46,"value":88},{"type":41,"tag":90,"props":1634,"children":1636},{"className":92,"code":1635,"language":94,"meta":95,"style":95},"{\n  \"rewrites\": [\n    { \"source\": \"\u002F(.*)\", \"destination\": \"\u002F$1\" }\n  ]\n}\n",[1637],{"type":41,"tag":81,"props":1638,"children":1639},{"__ignoreMap":95},[1640,1647,1672,1749,1757],{"type":41,"tag":101,"props":1641,"children":1642},{"class":103,"line":104},[1643],{"type":41,"tag":101,"props":1644,"children":1645},{"style":108},[1646],{"type":46,"value":111},{"type":41,"tag":101,"props":1648,"children":1649},{"class":103,"line":114},[1650,1654,1659,1663,1667],{"type":41,"tag":101,"props":1651,"children":1652},{"style":108},[1653],{"type":46,"value":120},{"type":41,"tag":101,"props":1655,"children":1656},{"style":123},[1657],{"type":46,"value":1658},"rewrites",{"type":41,"tag":101,"props":1660,"children":1661},{"style":108},[1662],{"type":46,"value":131},{"type":41,"tag":101,"props":1664,"children":1665},{"style":108},[1666],{"type":46,"value":88},{"type":41,"tag":101,"props":1668,"children":1669},{"style":108},[1670],{"type":46,"value":1671}," [\n",{"type":41,"tag":101,"props":1673,"children":1674},{"class":103,"line":158},[1675,1680,1684,1689,1693,1697,1701,1706,1710,1714,1718,1723,1727,1731,1735,1740,1744],{"type":41,"tag":101,"props":1676,"children":1677},{"style":108},[1678],{"type":46,"value":1679},"    {",{"type":41,"tag":101,"props":1681,"children":1682},{"style":108},[1683],{"type":46,"value":140},{"type":41,"tag":101,"props":1685,"children":1686},{"style":257},[1687],{"type":46,"value":1688},"source",{"type":41,"tag":101,"props":1690,"children":1691},{"style":108},[1692],{"type":46,"value":131},{"type":41,"tag":101,"props":1694,"children":1695},{"style":108},[1696],{"type":46,"value":88},{"type":41,"tag":101,"props":1698,"children":1699},{"style":108},[1700],{"type":46,"value":140},{"type":41,"tag":101,"props":1702,"children":1703},{"style":143},[1704],{"type":46,"value":1705},"\u002F(.*)",{"type":41,"tag":101,"props":1707,"children":1708},{"style":108},[1709],{"type":46,"value":131},{"type":41,"tag":101,"props":1711,"children":1712},{"style":108},[1713],{"type":46,"value":898},{"type":41,"tag":101,"props":1715,"children":1716},{"style":108},[1717],{"type":46,"value":140},{"type":41,"tag":101,"props":1719,"children":1720},{"style":257},[1721],{"type":46,"value":1722},"destination",{"type":41,"tag":101,"props":1724,"children":1725},{"style":108},[1726],{"type":46,"value":131},{"type":41,"tag":101,"props":1728,"children":1729},{"style":108},[1730],{"type":46,"value":88},{"type":41,"tag":101,"props":1732,"children":1733},{"style":108},[1734],{"type":46,"value":140},{"type":41,"tag":101,"props":1736,"children":1737},{"style":143},[1738],{"type":46,"value":1739},"\u002F$1",{"type":41,"tag":101,"props":1741,"children":1742},{"style":108},[1743],{"type":46,"value":131},{"type":41,"tag":101,"props":1745,"children":1746},{"style":108},[1747],{"type":46,"value":1748}," }\n",{"type":41,"tag":101,"props":1750,"children":1751},{"class":103,"line":196},[1752],{"type":41,"tag":101,"props":1753,"children":1754},{"style":108},[1755],{"type":46,"value":1756},"  ]\n",{"type":41,"tag":101,"props":1758,"children":1759},{"class":103,"line":222},[1760],{"type":41,"tag":101,"props":1761,"children":1762},{"style":108},[1763],{"type":46,"value":300},{"type":41,"tag":49,"props":1765,"children":1766},{},[1767],{"type":46,"value":1768},"If a server already exists, verify Vercel compatibility:",{"type":41,"tag":1770,"props":1771,"children":1772},"ul",{},[1773,1787,1797,1802],{"type":41,"tag":1774,"props":1775,"children":1776},"li",{},[1777,1779,1785],{"type":46,"value":1778},"Port must use ",{"type":41,"tag":81,"props":1780,"children":1782},{"className":1781},[],[1783],{"type":46,"value":1784},"process.env.PORT || 3000",{"type":46,"value":1786}," (not hard-coded)",{"type":41,"tag":1774,"props":1788,"children":1789},{},[1790,1795],{"type":41,"tag":81,"props":1791,"children":1793},{"className":1792},[],[1794],{"type":46,"value":1631},{"type":46,"value":1796}," must exist with rewrites config",{"type":41,"tag":1774,"props":1798,"children":1799},{},[1800],{"type":46,"value":1801},"Server must only serve static files (no Express routes or SSR)",{"type":41,"tag":1774,"props":1803,"children":1804},{},[1805,1810,1812,1817],{"type":41,"tag":81,"props":1806,"children":1808},{"className":1807},[],[1809],{"type":46,"value":86},{"type":46,"value":1811}," must have a ",{"type":41,"tag":81,"props":1813,"children":1815},{"className":1814},[],[1816],{"type":46,"value":260},{"type":46,"value":1818}," script",{"type":41,"tag":62,"props":1820,"children":1822},{"id":1821},"_2-existing-webapp",[1823],{"type":46,"value":1824},"2. Existing Webapp",{"type":41,"tag":1770,"props":1826,"children":1827},{},[1828],{"type":41,"tag":1774,"props":1829,"children":1830},{},[1831,1833,1839,1841,1847],{"type":46,"value":1832},"Existing webapp with ",{"type":41,"tag":81,"props":1834,"children":1836},{"className":1835},[],[1837],{"type":46,"value":1838},"index.html",{"type":46,"value":1840}," (created via ",{"type":41,"tag":81,"props":1842,"children":1844},{"className":1843},[],[1845],{"type":46,"value":1846},"\u002Fcreate-webapp",{"type":46,"value":1848}," or manually)",{"type":41,"tag":55,"props":1850,"children":1852},{"id":1851},"steps",[1853],{"type":46,"value":1854},"Steps",{"type":41,"tag":49,"props":1856,"children":1857},{},[1858],{"type":46,"value":1859},"For advice or planning questions, explain this workflow and provide the commands, but do not install global packages, deploy, or mutate the user's app. Only execute setup commands when the user explicitly asks you to perform the setup and provides the app directory.",{"type":41,"tag":62,"props":1861,"children":1863},{"id":1862},"_0-verify-vercel-setup",[1864],{"type":46,"value":1865},"0. Verify Vercel Setup",{"type":41,"tag":49,"props":1867,"children":1868},{},[1869,1871,1877],{"type":46,"value":1870},"Run ",{"type":41,"tag":81,"props":1872,"children":1874},{"className":1873},[],[1875],{"type":46,"value":1876},"vercel whoami",{"type":46,"value":1878}," to detect the user's current state, then branch:",{"type":41,"tag":49,"props":1880,"children":1881},{},[1882,1887,1889,1894],{"type":41,"tag":77,"props":1883,"children":1884},{},[1885],{"type":46,"value":1886},"a. Authenticated",{"type":46,"value":1888}," — ",{"type":41,"tag":81,"props":1890,"children":1892},{"className":1891},[],[1893],{"type":46,"value":1876},{"type":46,"value":1895}," returns a username. Skip to Step 0.5.",{"type":41,"tag":49,"props":1897,"children":1898},{},[1899,1904,1906,1912],{"type":41,"tag":77,"props":1900,"children":1901},{},[1902],{"type":46,"value":1903},"b. CLI not installed",{"type":46,"value":1905}," — command returns ",{"type":41,"tag":81,"props":1907,"children":1909},{"className":1908},[],[1910],{"type":46,"value":1911},"vercel: command not found",{"type":46,"value":1913}," (or similar). Tell the user:",{"type":41,"tag":1915,"props":1916,"children":1917},"blockquote",{},[1918,1933,1938],{"type":41,"tag":49,"props":1919,"children":1920},{},[1921,1923,1931],{"type":46,"value":1922},"Testing on Meta Display Glasses needs a public HTTPS URL. I can set this up for you via Vercel — it's free and takes a couple of minutes. You'll need to create a Vercel account at ",{"type":41,"tag":1924,"props":1925,"children":1929},"a",{"href":1926,"rel":1927},"https:\u002F\u002Fvercel.com\u002Fsignup",[1928],"nofollow",[1930],{"type":46,"value":1926},{"type":46,"value":1932}," (free tier is fine), and then I'll handle installing the CLI and walking you through the rest.",{"type":41,"tag":49,"props":1934,"children":1935},{},[1936],{"type":46,"value":1937},"If you'd rather host this yourself on any HTTPS server, you can skip this skill entirely.",{"type":41,"tag":49,"props":1939,"children":1940},{},[1941],{"type":46,"value":1942},"Want me to proceed with Vercel?",{"type":41,"tag":49,"props":1944,"children":1945},{},[1946,1948,1954],{"type":46,"value":1947},"If yes, wait for the user to confirm they've created the Vercel account and explicitly asks you to perform setup, then run ",{"type":41,"tag":81,"props":1949,"children":1951},{"className":1950},[],[1952],{"type":46,"value":1953},"npm i -g vercel",{"type":46,"value":1955}," yourself. After install completes, proceed to the login branch below.",{"type":41,"tag":49,"props":1957,"children":1958},{},[1959,1964,1966,1971],{"type":41,"tag":77,"props":1960,"children":1961},{},[1962],{"type":46,"value":1963},"c. Not logged in",{"type":46,"value":1965}," — CLI is installed but ",{"type":41,"tag":81,"props":1967,"children":1969},{"className":1968},[],[1970],{"type":46,"value":1876},{"type":46,"value":1972}," returns an auth error. Tell the user:",{"type":41,"tag":1915,"props":1974,"children":1975},{},[1976],{"type":41,"tag":49,"props":1977,"children":1978},{},[1979,1981,1987,1989,1995],{"type":46,"value":1980},"Vercel CLI is installed but not logged in. ",{"type":41,"tag":81,"props":1982,"children":1984},{"className":1983},[],[1985],{"type":46,"value":1986},"vercel login",{"type":46,"value":1988}," is interactive and needs your input — please type ",{"type":41,"tag":81,"props":1990,"children":1992},{"className":1991},[],[1993],{"type":46,"value":1994},"! vercel login",{"type":46,"value":1996}," in this prompt to run it in this session.",{"type":41,"tag":49,"props":1998,"children":1999},{},[2000,2002,2007],{"type":46,"value":2001},"After they complete login, re-run ",{"type":41,"tag":81,"props":2003,"children":2005},{"className":2004},[],[2006],{"type":46,"value":1876},{"type":46,"value":2008}," to confirm. Only proceed once it returns a valid user.",{"type":41,"tag":62,"props":2010,"children":2012},{"id":2011},"_05-optional-passcode-lock",[2013],{"type":46,"value":2014},"0.5. Optional Passcode Lock",{"type":41,"tag":49,"props":2016,"children":2017},{},[2018],{"type":46,"value":2019},"The staging URL will be publicly reachable by anyone with the link (Vercel's deployment protection is disabled in Step 1 so the glasses browser can access it).",{"type":41,"tag":49,"props":2021,"children":2022},{},[2023,2025,2031],{"type":46,"value":2024},"Check if ",{"type":41,"tag":81,"props":2026,"children":2028},{"className":2027},[],[2029],{"type":46,"value":2030},"lock.html",{"type":46,"value":2032}," already exists in the app directory:",{"type":41,"tag":1770,"props":2034,"children":2035},{},[2036,2053],{"type":41,"tag":1774,"props":2037,"children":2038},{},[2039,2051],{"type":41,"tag":77,"props":2040,"children":2041},{},[2042,2044,2049],{"type":46,"value":2043},"If ",{"type":41,"tag":81,"props":2045,"children":2047},{"className":2046},[],[2048],{"type":46,"value":2030},{"type":46,"value":2050}," exists",{"type":46,"value":2052}," — passcode is already in place. Skip to Step 1.",{"type":41,"tag":1774,"props":2054,"children":2055},{},[2056,2067],{"type":41,"tag":77,"props":2057,"children":2058},{},[2059,2060,2065],{"type":46,"value":2043},{"type":41,"tag":81,"props":2061,"children":2063},{"className":2062},[],[2064],{"type":46,"value":2030},{"type":46,"value":2066}," does not exist",{"type":46,"value":2068}," — ask the user:",{"type":41,"tag":1915,"props":2070,"children":2071},{},[2072],{"type":41,"tag":49,"props":2073,"children":2074},{},[2075],{"type":46,"value":2076},"Want to add a 3-digit lock screen as a soft gate before the app loads? It's not real security — just keeps casual visitors out if someone guesses the URL. (default: no)",{"type":41,"tag":49,"props":2078,"children":2079},{},[2080,2082,2088],{"type":46,"value":2081},"If yes, run ",{"type":41,"tag":81,"props":2083,"children":2085},{"className":2084},[],[2086],{"type":46,"value":2087},"\u002Fpasscode-for-testing",{"type":46,"value":2089},". If no, skip to Step 1.",{"type":41,"tag":62,"props":2091,"children":2093},{"id":2092},"_1-deploy-uncommitted-changes-disable-auth-and-alias",[2094],{"type":46,"value":2095},"1. Deploy Uncommitted Changes, Disable Auth, and Alias",{"type":41,"tag":49,"props":2097,"children":2098},{},[2099,2101,2107,2109,2115],{"type":46,"value":2100},"Deploy with ",{"type":41,"tag":81,"props":2102,"children":2104},{"className":2103},[],[2105],{"type":46,"value":2106},"vercel",{"type":46,"value":2108}," (without ",{"type":41,"tag":81,"props":2110,"children":2112},{"className":2111},[],[2113],{"type":46,"value":2114},"--prod",{"type":46,"value":2116},"), disable Vercel Authentication via CLI so the glasses browser can access it without login, then alias to a stable URL:",{"type":41,"tag":90,"props":2118,"children":2122},{"className":2119,"code":2120,"language":2121,"meta":95,"style":95},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","# Deploy and capture the preview URL\nURL=$(vercel --yes)\n\n# Disable Vercel Authentication (glasses browser can't log in)\n# Safe to run every time — no-op if already disabled\nPROJECT_ID=$(python3 -c \"import json; print(json.load(open('.vercel\u002Fproject.json'))['projectId'])\")\necho '{\"ssoProtection\":null}' | vercel api \"\u002Fv9\u002Fprojects\u002F$PROJECT_ID\" -X PATCH --input - --silent\n\n# Alias to a stable, predictable URL\nvercel alias set \"$URL\" stage-\u003Cproject-name>.vercel.app\n","bash",[2123],{"type":41,"tag":81,"props":2124,"children":2125},{"__ignoreMap":95},[2126,2135,2162,2169,2177,2185,2224,2303,2310,2318],{"type":41,"tag":101,"props":2127,"children":2128},{"class":103,"line":104},[2129],{"type":41,"tag":101,"props":2130,"children":2132},{"style":2131},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic",[2133],{"type":46,"value":2134},"# Deploy and capture the preview URL\n",{"type":41,"tag":101,"props":2136,"children":2137},{"class":103,"line":114},[2138,2143,2148,2152,2157],{"type":41,"tag":101,"props":2139,"children":2140},{"style":334},[2141],{"type":46,"value":2142},"URL",{"type":41,"tag":101,"props":2144,"children":2145},{"style":108},[2146],{"type":46,"value":2147},"=$(",{"type":41,"tag":101,"props":2149,"children":2150},{"style":257},[2151],{"type":46,"value":2106},{"type":41,"tag":101,"props":2153,"children":2154},{"style":143},[2155],{"type":46,"value":2156}," --yes",{"type":41,"tag":101,"props":2158,"children":2159},{"style":108},[2160],{"type":46,"value":2161},")\n",{"type":41,"tag":101,"props":2163,"children":2164},{"class":103,"line":158},[2165],{"type":41,"tag":101,"props":2166,"children":2167},{"emptyLinePlaceholder":473},[2168],{"type":46,"value":476},{"type":41,"tag":101,"props":2170,"children":2171},{"class":103,"line":196},[2172],{"type":41,"tag":101,"props":2173,"children":2174},{"style":2131},[2175],{"type":46,"value":2176},"# Disable Vercel Authentication (glasses browser can't log in)\n",{"type":41,"tag":101,"props":2178,"children":2179},{"class":103,"line":222},[2180],{"type":41,"tag":101,"props":2181,"children":2182},{"style":2131},[2183],{"type":46,"value":2184},"# Safe to run every time — no-op if already disabled\n",{"type":41,"tag":101,"props":2186,"children":2187},{"class":103,"line":248},[2188,2193,2197,2202,2207,2211,2216,2220],{"type":41,"tag":101,"props":2189,"children":2190},{"style":334},[2191],{"type":46,"value":2192},"PROJECT_ID",{"type":41,"tag":101,"props":2194,"children":2195},{"style":108},[2196],{"type":46,"value":2147},{"type":41,"tag":101,"props":2198,"children":2199},{"style":257},[2200],{"type":46,"value":2201},"python3",{"type":41,"tag":101,"props":2203,"children":2204},{"style":143},[2205],{"type":46,"value":2206}," -c",{"type":41,"tag":101,"props":2208,"children":2209},{"style":108},[2210],{"type":46,"value":140},{"type":41,"tag":101,"props":2212,"children":2213},{"style":143},[2214],{"type":46,"value":2215},"import json; print(json.load(open('.vercel\u002Fproject.json'))['projectId'])",{"type":41,"tag":101,"props":2217,"children":2218},{"style":108},[2219],{"type":46,"value":131},{"type":41,"tag":101,"props":2221,"children":2222},{"style":108},[2223],{"type":46,"value":2161},{"type":41,"tag":101,"props":2225,"children":2226},{"class":103,"line":285},[2227,2232,2236,2241,2245,2250,2255,2260,2264,2269,2274,2278,2283,2288,2293,2298],{"type":41,"tag":101,"props":2228,"children":2229},{"style":345},[2230],{"type":46,"value":2231},"echo",{"type":41,"tag":101,"props":2233,"children":2234},{"style":108},[2235],{"type":46,"value":585},{"type":41,"tag":101,"props":2237,"children":2238},{"style":143},[2239],{"type":46,"value":2240},"{\"ssoProtection\":null}",{"type":41,"tag":101,"props":2242,"children":2243},{"style":108},[2244],{"type":46,"value":358},{"type":41,"tag":101,"props":2246,"children":2247},{"style":108},[2248],{"type":46,"value":2249}," |",{"type":41,"tag":101,"props":2251,"children":2252},{"style":257},[2253],{"type":46,"value":2254}," vercel",{"type":41,"tag":101,"props":2256,"children":2257},{"style":143},[2258],{"type":46,"value":2259}," api",{"type":41,"tag":101,"props":2261,"children":2262},{"style":108},[2263],{"type":46,"value":140},{"type":41,"tag":101,"props":2265,"children":2266},{"style":143},[2267],{"type":46,"value":2268},"\u002Fv9\u002Fprojects\u002F",{"type":41,"tag":101,"props":2270,"children":2271},{"style":334},[2272],{"type":46,"value":2273},"$PROJECT_ID",{"type":41,"tag":101,"props":2275,"children":2276},{"style":108},[2277],{"type":46,"value":131},{"type":41,"tag":101,"props":2279,"children":2280},{"style":143},[2281],{"type":46,"value":2282}," -X",{"type":41,"tag":101,"props":2284,"children":2285},{"style":143},[2286],{"type":46,"value":2287}," PATCH",{"type":41,"tag":101,"props":2289,"children":2290},{"style":143},[2291],{"type":46,"value":2292}," --input",{"type":41,"tag":101,"props":2294,"children":2295},{"style":143},[2296],{"type":46,"value":2297}," -",{"type":41,"tag":101,"props":2299,"children":2300},{"style":143},[2301],{"type":46,"value":2302}," --silent\n",{"type":41,"tag":101,"props":2304,"children":2305},{"class":103,"line":294},[2306],{"type":41,"tag":101,"props":2307,"children":2308},{"emptyLinePlaceholder":473},[2309],{"type":46,"value":476},{"type":41,"tag":101,"props":2311,"children":2312},{"class":103,"line":601},[2313],{"type":41,"tag":101,"props":2314,"children":2315},{"style":2131},[2316],{"type":46,"value":2317},"# Alias to a stable, predictable URL\n",{"type":41,"tag":101,"props":2319,"children":2320},{"class":103,"line":639},[2321,2325,2330,2335,2339,2344,2348,2353,2358,2363,2368,2373],{"type":41,"tag":101,"props":2322,"children":2323},{"style":257},[2324],{"type":46,"value":2106},{"type":41,"tag":101,"props":2326,"children":2327},{"style":143},[2328],{"type":46,"value":2329}," alias",{"type":41,"tag":101,"props":2331,"children":2332},{"style":143},[2333],{"type":46,"value":2334}," set",{"type":41,"tag":101,"props":2336,"children":2337},{"style":108},[2338],{"type":46,"value":140},{"type":41,"tag":101,"props":2340,"children":2341},{"style":334},[2342],{"type":46,"value":2343},"$URL",{"type":41,"tag":101,"props":2345,"children":2346},{"style":108},[2347],{"type":46,"value":131},{"type":41,"tag":101,"props":2349,"children":2350},{"style":143},[2351],{"type":46,"value":2352}," stage-",{"type":41,"tag":101,"props":2354,"children":2355},{"style":108},[2356],{"type":46,"value":2357},"\u003C",{"type":41,"tag":101,"props":2359,"children":2360},{"style":143},[2361],{"type":46,"value":2362},"project-nam",{"type":41,"tag":101,"props":2364,"children":2365},{"style":334},[2366],{"type":46,"value":2367},"e",{"type":41,"tag":101,"props":2369,"children":2370},{"style":108},[2371],{"type":46,"value":2372},">",{"type":41,"tag":101,"props":2374,"children":2375},{"style":143},[2376],{"type":46,"value":2377},".vercel.app\n",{"type":41,"tag":49,"props":2379,"children":2380},{},[2381,2383,2389,2391,2396,2398,2404,2406,2412,2414,2420],{"type":46,"value":2382},"Replace ",{"type":41,"tag":81,"props":2384,"children":2386},{"className":2385},[],[2387],{"type":46,"value":2388},"\u003Cproject-name>",{"type":46,"value":2390}," with the actual project name (from ",{"type":41,"tag":81,"props":2392,"children":2394},{"className":2393},[],[2395],{"type":46,"value":86},{"type":46,"value":2397}," or the ",{"type":41,"tag":81,"props":2399,"children":2401},{"className":2400},[],[2402],{"type":46,"value":2403},".vercel\u002Fproject.json",{"type":46,"value":2405},"). For example, if the project is ",{"type":41,"tag":81,"props":2407,"children":2409},{"className":2408},[],[2410],{"type":46,"value":2411},"my-glasses-app",{"type":46,"value":2413},", the stable URL becomes ",{"type":41,"tag":81,"props":2415,"children":2417},{"className":2416},[],[2418],{"type":46,"value":2419},"https:\u002F\u002Fstage-my-glasses-app.vercel.app",{"type":46,"value":502},{"type":41,"tag":49,"props":2422,"children":2423},{},[2424,2426,2431,2433,2438],{"type":46,"value":2425},"Do ",{"type":41,"tag":77,"props":2427,"children":2428},{},[2429],{"type":46,"value":2430},"not",{"type":46,"value":2432}," use ",{"type":41,"tag":81,"props":2434,"children":2436},{"className":2435},[],[2437],{"type":46,"value":2114},{"type":46,"value":2439},". Preview deploys keep your production URL unaffected.",{"type":41,"tag":62,"props":2441,"children":2443},{"id":2442},"_2-generate-qr-code-for-easy-device-setup",[2444],{"type":46,"value":2445},"2. Generate QR Code for Easy Device Setup",{"type":41,"tag":49,"props":2447,"children":2448},{},[2449],{"type":46,"value":2450},"Generate a QR code that the user can scan from their phone to automatically add the webapp — no manual URL typing needed.",{"type":41,"tag":49,"props":2452,"children":2453},{},[2454],{"type":46,"value":2455},"The QR code data must use this deep link format:",{"type":41,"tag":90,"props":2457,"children":2461},{"className":2458,"code":2460,"language":46},[2459],"language-text","fb-viewapp:\u002F\u002Fweb_app_deep_link?appName=stage-\u003Capp-name>&appUrl=\u003Curl-encoded-stage-url>\n",[2462],{"type":41,"tag":81,"props":2463,"children":2464},{"__ignoreMap":95},[2465],{"type":46,"value":2460},{"type":41,"tag":49,"props":2467,"children":2468},{},[2469,2471,2476,2478,2483],{"type":46,"value":2470},"For example, if the app is called ",{"type":41,"tag":81,"props":2472,"children":2474},{"className":2473},[],[2475],{"type":46,"value":2411},{"type":46,"value":2477}," and the stable URL is ",{"type":41,"tag":81,"props":2479,"children":2481},{"className":2480},[],[2482],{"type":46,"value":2419},{"type":46,"value":88},{"type":41,"tag":90,"props":2485,"children":2488},{"className":2486,"code":2487,"language":46},[2459],"fb-viewapp:\u002F\u002Fweb_app_deep_link?appName=stage-my-glasses-app&appUrl=https%3A%2F%2Fstage-my-glasses-app.vercel.app\n",[2489],{"type":41,"tag":81,"props":2490,"children":2491},{"__ignoreMap":95},[2492],{"type":46,"value":2487},{"type":41,"tag":49,"props":2494,"children":2495},{},[2496,2498,2504],{"type":46,"value":2497},"Use the ",{"type":41,"tag":81,"props":2499,"children":2501},{"className":2500},[],[2502],{"type":46,"value":2503},"\u002Fqr-code",{"type":46,"value":2505}," skill to generate the QR code:",{"type":41,"tag":90,"props":2507,"children":2509},{"className":2119,"code":2508,"language":2121,"meta":95,"style":95},"python3 skills\u002Fqr-code\u002Fscripts\u002Fqr_generator.py --png \u003Capp-dir>\u002Fqr-test-on-device.png \"fb-viewapp:\u002F\u002Fweb_app_deep_link?appName=stage-\u003Capp-name>&appUrl=\u003Curl-encoded-stage-url>\"\n",[2510],{"type":41,"tag":81,"props":2511,"children":2512},{"__ignoreMap":95},[2513],{"type":41,"tag":101,"props":2514,"children":2515},{"class":103,"line":104},[2516,2520,2525,2530,2535,2540,2545,2549,2554,2558,2563],{"type":41,"tag":101,"props":2517,"children":2518},{"style":257},[2519],{"type":46,"value":2201},{"type":41,"tag":101,"props":2521,"children":2522},{"style":143},[2523],{"type":46,"value":2524}," skills\u002Fqr-code\u002Fscripts\u002Fqr_generator.py",{"type":41,"tag":101,"props":2526,"children":2527},{"style":143},[2528],{"type":46,"value":2529}," --png",{"type":41,"tag":101,"props":2531,"children":2532},{"style":108},[2533],{"type":46,"value":2534}," \u003C",{"type":41,"tag":101,"props":2536,"children":2537},{"style":143},[2538],{"type":46,"value":2539},"app-di",{"type":41,"tag":101,"props":2541,"children":2542},{"style":334},[2543],{"type":46,"value":2544},"r",{"type":41,"tag":101,"props":2546,"children":2547},{"style":108},[2548],{"type":46,"value":2372},{"type":41,"tag":101,"props":2550,"children":2551},{"style":143},[2552],{"type":46,"value":2553},"\u002Fqr-test-on-device.png",{"type":41,"tag":101,"props":2555,"children":2556},{"style":108},[2557],{"type":46,"value":140},{"type":41,"tag":101,"props":2559,"children":2560},{"style":143},[2561],{"type":46,"value":2562},"fb-viewapp:\u002F\u002Fweb_app_deep_link?appName=stage-\u003Capp-name>&appUrl=\u003Curl-encoded-stage-url>",{"type":41,"tag":101,"props":2564,"children":2565},{"style":108},[2566],{"type":46,"value":282},{"type":41,"tag":49,"props":2568,"children":2569},{},[2570],{"type":46,"value":2571},"The PNG is saved to the app directory. If your environment supports rendering images inline (e.g. Claude Code's Read tool), display the QR code directly. Otherwise, provide the file path and tell the user to open it and scan from their phone.",{"type":41,"tag":1915,"props":2573,"children":2574},{},[2575],{"type":41,"tag":49,"props":2576,"children":2577},{},[2578],{"type":46,"value":2579},"This QR code only needs to be generated once (on first deploy). The stable URL never changes, so the same QR code works for all future deploys.",{"type":41,"tag":62,"props":2581,"children":2583},{"id":2582},"_3-give-the-user-the-stable-url-and-setup-instructions",[2584],{"type":46,"value":2585},"3. Give the User the Stable URL and Setup Instructions",{"type":41,"tag":49,"props":2587,"children":2588},{},[2589],{"type":46,"value":2590},"After deploy, alias, and QR generation, present the user with:",{"type":41,"tag":49,"props":2592,"children":2593},{},[2594],{"type":41,"tag":77,"props":2595,"children":2596},{},[2597],{"type":46,"value":2598},"Stable URL:",{"type":41,"tag":90,"props":2600,"children":2603},{"className":2601,"code":2602,"language":46},[2459],"https:\u002F\u002Fstage-\u003Cproject-name>.vercel.app\n",[2604],{"type":41,"tag":81,"props":2605,"children":2606},{"__ignoreMap":95},[2607],{"type":46,"value":2602},{"type":41,"tag":49,"props":2609,"children":2610},{},[2611,2616],{"type":41,"tag":77,"props":2612,"children":2613},{},[2614],{"type":46,"value":2615},"Option A — Scan QR code (recommended):",{"type":46,"value":2617},"\nScan the generated QR code with your phone camera. It will open the Meta AI app and automatically add the webapp.",{"type":41,"tag":49,"props":2619,"children":2620},{},[2621],{"type":41,"tag":77,"props":2622,"children":2623},{},[2624],{"type":46,"value":2625},"Option B — Manual setup:",{"type":41,"tag":2627,"props":2628,"children":2629},"ol",{},[2630,2642,2659,2675,2685,2696],{"type":41,"tag":1774,"props":2631,"children":2632},{},[2633,2635,2640],{"type":46,"value":2634},"Open the ",{"type":41,"tag":77,"props":2636,"children":2637},{},[2638],{"type":46,"value":2639},"Meta AI app",{"type":46,"value":2641}," on your phone",{"type":41,"tag":1774,"props":2643,"children":2644},{},[2645,2647,2652,2654],{"type":46,"value":2646},"Go to ",{"type":41,"tag":77,"props":2648,"children":2649},{},[2650],{"type":46,"value":2651},"Devices",{"type":46,"value":2653}," > ",{"type":41,"tag":77,"props":2655,"children":2656},{},[2657],{"type":46,"value":2658},"Display Glasses settings",{"type":41,"tag":1774,"props":2660,"children":2661},{},[2662,2664,2669,2670],{"type":46,"value":2663},"Navigate to ",{"type":41,"tag":77,"props":2665,"children":2666},{},[2667],{"type":46,"value":2668},"App connections",{"type":46,"value":2653},{"type":41,"tag":77,"props":2671,"children":2672},{},[2673],{"type":46,"value":2674},"Web apps",{"type":41,"tag":1774,"props":2676,"children":2677},{},[2678,2680],{"type":46,"value":2679},"Tap ",{"type":41,"tag":77,"props":2681,"children":2682},{},[2683],{"type":46,"value":2684},"Add a web app",{"type":41,"tag":1774,"props":2686,"children":2687},{},[2688,2690],{"type":46,"value":2689},"Enter the name: ",{"type":41,"tag":81,"props":2691,"children":2693},{"className":2692},[],[2694],{"type":46,"value":2695},"stage-\u003Capp-name>",{"type":41,"tag":1774,"props":2697,"children":2698},{},[2699,2701],{"type":46,"value":2700},"Enter the URL: ",{"type":41,"tag":81,"props":2702,"children":2704},{"className":2703},[],[2705],{"type":46,"value":2706},"https:\u002F\u002Fstage-\u003Cproject-name>.vercel.app",{"type":41,"tag":49,"props":2708,"children":2709},{},[2710],{"type":46,"value":2711},"Both options only need to be done once — the URL never changes between deploys.",{"type":41,"tag":62,"props":2713,"children":2715},{"id":2714},"_4-iterate",[2716],{"type":46,"value":2717},"4. Iterate",{"type":41,"tag":49,"props":2719,"children":2720},{},[2721],{"type":46,"value":2722},"Make changes locally, then deploy, disable auth, re-alias, and regenerate the QR code every time:",{"type":41,"tag":90,"props":2724,"children":2726},{"className":2119,"code":2725,"language":2121,"meta":95,"style":95},"# Edit code...\nURL=$(vercel --yes)\n\n# Disable auth (safe to run every time)\nPROJECT_ID=$(python3 -c \"import json; print(json.load(open('.vercel\u002Fproject.json'))['projectId'])\")\necho '{\"ssoProtection\":null}' | vercel api \"\u002Fv9\u002Fprojects\u002F$PROJECT_ID\" -X PATCH --input - --silent\n\n# Re-alias\nvercel alias set \"$URL\" stage-\u003Cproject-name>.vercel.app\n\n# Regenerate QR code\npython3 skills\u002Fqr-code\u002Fscripts\u002Fqr_generator.py --png \u003Capp-dir>\u002Fqr-test-on-device.png \"fb-viewapp:\u002F\u002Fweb_app_deep_link?appName=stage-\u003Capp-name>&appUrl=\u003Curl-encoded-stage-url>\"\n",[2727],{"type":41,"tag":81,"props":2728,"children":2729},{"__ignoreMap":95},[2730,2738,2761,2768,2776,2811,2878,2885,2893,2944,2951,2959],{"type":41,"tag":101,"props":2731,"children":2732},{"class":103,"line":104},[2733],{"type":41,"tag":101,"props":2734,"children":2735},{"style":2131},[2736],{"type":46,"value":2737},"# Edit code...\n",{"type":41,"tag":101,"props":2739,"children":2740},{"class":103,"line":114},[2741,2745,2749,2753,2757],{"type":41,"tag":101,"props":2742,"children":2743},{"style":334},[2744],{"type":46,"value":2142},{"type":41,"tag":101,"props":2746,"children":2747},{"style":108},[2748],{"type":46,"value":2147},{"type":41,"tag":101,"props":2750,"children":2751},{"style":257},[2752],{"type":46,"value":2106},{"type":41,"tag":101,"props":2754,"children":2755},{"style":143},[2756],{"type":46,"value":2156},{"type":41,"tag":101,"props":2758,"children":2759},{"style":108},[2760],{"type":46,"value":2161},{"type":41,"tag":101,"props":2762,"children":2763},{"class":103,"line":158},[2764],{"type":41,"tag":101,"props":2765,"children":2766},{"emptyLinePlaceholder":473},[2767],{"type":46,"value":476},{"type":41,"tag":101,"props":2769,"children":2770},{"class":103,"line":196},[2771],{"type":41,"tag":101,"props":2772,"children":2773},{"style":2131},[2774],{"type":46,"value":2775},"# Disable auth (safe to run every time)\n",{"type":41,"tag":101,"props":2777,"children":2778},{"class":103,"line":222},[2779,2783,2787,2791,2795,2799,2803,2807],{"type":41,"tag":101,"props":2780,"children":2781},{"style":334},[2782],{"type":46,"value":2192},{"type":41,"tag":101,"props":2784,"children":2785},{"style":108},[2786],{"type":46,"value":2147},{"type":41,"tag":101,"props":2788,"children":2789},{"style":257},[2790],{"type":46,"value":2201},{"type":41,"tag":101,"props":2792,"children":2793},{"style":143},[2794],{"type":46,"value":2206},{"type":41,"tag":101,"props":2796,"children":2797},{"style":108},[2798],{"type":46,"value":140},{"type":41,"tag":101,"props":2800,"children":2801},{"style":143},[2802],{"type":46,"value":2215},{"type":41,"tag":101,"props":2804,"children":2805},{"style":108},[2806],{"type":46,"value":131},{"type":41,"tag":101,"props":2808,"children":2809},{"style":108},[2810],{"type":46,"value":2161},{"type":41,"tag":101,"props":2812,"children":2813},{"class":103,"line":248},[2814,2818,2822,2826,2830,2834,2838,2842,2846,2850,2854,2858,2862,2866,2870,2874],{"type":41,"tag":101,"props":2815,"children":2816},{"style":345},[2817],{"type":46,"value":2231},{"type":41,"tag":101,"props":2819,"children":2820},{"style":108},[2821],{"type":46,"value":585},{"type":41,"tag":101,"props":2823,"children":2824},{"style":143},[2825],{"type":46,"value":2240},{"type":41,"tag":101,"props":2827,"children":2828},{"style":108},[2829],{"type":46,"value":358},{"type":41,"tag":101,"props":2831,"children":2832},{"style":108},[2833],{"type":46,"value":2249},{"type":41,"tag":101,"props":2835,"children":2836},{"style":257},[2837],{"type":46,"value":2254},{"type":41,"tag":101,"props":2839,"children":2840},{"style":143},[2841],{"type":46,"value":2259},{"type":41,"tag":101,"props":2843,"children":2844},{"style":108},[2845],{"type":46,"value":140},{"type":41,"tag":101,"props":2847,"children":2848},{"style":143},[2849],{"type":46,"value":2268},{"type":41,"tag":101,"props":2851,"children":2852},{"style":334},[2853],{"type":46,"value":2273},{"type":41,"tag":101,"props":2855,"children":2856},{"style":108},[2857],{"type":46,"value":131},{"type":41,"tag":101,"props":2859,"children":2860},{"style":143},[2861],{"type":46,"value":2282},{"type":41,"tag":101,"props":2863,"children":2864},{"style":143},[2865],{"type":46,"value":2287},{"type":41,"tag":101,"props":2867,"children":2868},{"style":143},[2869],{"type":46,"value":2292},{"type":41,"tag":101,"props":2871,"children":2872},{"style":143},[2873],{"type":46,"value":2297},{"type":41,"tag":101,"props":2875,"children":2876},{"style":143},[2877],{"type":46,"value":2302},{"type":41,"tag":101,"props":2879,"children":2880},{"class":103,"line":285},[2881],{"type":41,"tag":101,"props":2882,"children":2883},{"emptyLinePlaceholder":473},[2884],{"type":46,"value":476},{"type":41,"tag":101,"props":2886,"children":2887},{"class":103,"line":294},[2888],{"type":41,"tag":101,"props":2889,"children":2890},{"style":2131},[2891],{"type":46,"value":2892},"# Re-alias\n",{"type":41,"tag":101,"props":2894,"children":2895},{"class":103,"line":601},[2896,2900,2904,2908,2912,2916,2920,2924,2928,2932,2936,2940],{"type":41,"tag":101,"props":2897,"children":2898},{"style":257},[2899],{"type":46,"value":2106},{"type":41,"tag":101,"props":2901,"children":2902},{"style":143},[2903],{"type":46,"value":2329},{"type":41,"tag":101,"props":2905,"children":2906},{"style":143},[2907],{"type":46,"value":2334},{"type":41,"tag":101,"props":2909,"children":2910},{"style":108},[2911],{"type":46,"value":140},{"type":41,"tag":101,"props":2913,"children":2914},{"style":334},[2915],{"type":46,"value":2343},{"type":41,"tag":101,"props":2917,"children":2918},{"style":108},[2919],{"type":46,"value":131},{"type":41,"tag":101,"props":2921,"children":2922},{"style":143},[2923],{"type":46,"value":2352},{"type":41,"tag":101,"props":2925,"children":2926},{"style":108},[2927],{"type":46,"value":2357},{"type":41,"tag":101,"props":2929,"children":2930},{"style":143},[2931],{"type":46,"value":2362},{"type":41,"tag":101,"props":2933,"children":2934},{"style":334},[2935],{"type":46,"value":2367},{"type":41,"tag":101,"props":2937,"children":2938},{"style":108},[2939],{"type":46,"value":2372},{"type":41,"tag":101,"props":2941,"children":2942},{"style":143},[2943],{"type":46,"value":2377},{"type":41,"tag":101,"props":2945,"children":2946},{"class":103,"line":639},[2947],{"type":41,"tag":101,"props":2948,"children":2949},{"emptyLinePlaceholder":473},[2950],{"type":46,"value":476},{"type":41,"tag":101,"props":2952,"children":2953},{"class":103,"line":677},[2954],{"type":41,"tag":101,"props":2955,"children":2956},{"style":2131},[2957],{"type":46,"value":2958},"# Regenerate QR code\n",{"type":41,"tag":101,"props":2960,"children":2961},{"class":103,"line":715},[2962,2966,2970,2974,2978,2982,2986,2990,2994,2998,3002],{"type":41,"tag":101,"props":2963,"children":2964},{"style":257},[2965],{"type":46,"value":2201},{"type":41,"tag":101,"props":2967,"children":2968},{"style":143},[2969],{"type":46,"value":2524},{"type":41,"tag":101,"props":2971,"children":2972},{"style":143},[2973],{"type":46,"value":2529},{"type":41,"tag":101,"props":2975,"children":2976},{"style":108},[2977],{"type":46,"value":2534},{"type":41,"tag":101,"props":2979,"children":2980},{"style":143},[2981],{"type":46,"value":2539},{"type":41,"tag":101,"props":2983,"children":2984},{"style":334},[2985],{"type":46,"value":2544},{"type":41,"tag":101,"props":2987,"children":2988},{"style":108},[2989],{"type":46,"value":2372},{"type":41,"tag":101,"props":2991,"children":2992},{"style":143},[2993],{"type":46,"value":2553},{"type":41,"tag":101,"props":2995,"children":2996},{"style":108},[2997],{"type":46,"value":140},{"type":41,"tag":101,"props":2999,"children":3000},{"style":143},[3001],{"type":46,"value":2562},{"type":41,"tag":101,"props":3003,"children":3004},{"style":108},[3005],{"type":46,"value":282},{"type":41,"tag":49,"props":3007,"children":3008},{},[3009],{"type":46,"value":3010},"After each deploy, show the QR code and setup instructions (following Steps 2-3).",{"type":41,"tag":1915,"props":3012,"children":3013},{},[3014],{"type":41,"tag":49,"props":3015,"children":3016},{},[3017,3022],{"type":41,"tag":77,"props":3018,"children":3019},{},[3020],{"type":46,"value":3021},"PS:",{"type":46,"value":3023}," If you've already added this webapp to your glasses, no need to re-add — the stable URL automatically serves the latest deploy.",{"type":41,"tag":55,"props":3025,"children":3027},{"id":3026},"verification",[3028],{"type":46,"value":3029},"Verification",{"type":41,"tag":1770,"props":3031,"children":3034},{"className":3032},[3033],"contains-task-list",[3035,3054,3063,3093,3109,3118,3133,3155,3164,3173],{"type":41,"tag":1774,"props":3036,"children":3039},{"className":3037},[3038],"task-list-item",[3040,3045,3047,3052],{"type":41,"tag":3041,"props":3042,"children":3044},"input",{"disabled":473,"type":3043},"checkbox",[],{"type":46,"value":3046}," Step 0 verified Vercel setup (",{"type":41,"tag":81,"props":3048,"children":3050},{"className":3049},[],[3051],{"type":46,"value":1876},{"type":46,"value":3053}," returns a user) before any deploy",{"type":41,"tag":1774,"props":3055,"children":3057},{"className":3056},[3038],[3058,3061],{"type":41,"tag":3041,"props":3059,"children":3060},{"disabled":473,"type":3043},[],{"type":46,"value":3062}," User was offered the passcode lock as opt-in (not auto-added)",{"type":41,"tag":1774,"props":3064,"children":3066},{"className":3065},[3038],[3067,3070,3072,3077,3079,3084,3086,3091],{"type":41,"tag":3041,"props":3068,"children":3069},{"disabled":473,"type":3043},[],{"type":46,"value":3071}," ",{"type":41,"tag":81,"props":3073,"children":3075},{"className":3074},[],[3076],{"type":46,"value":86},{"type":46,"value":3078},", ",{"type":41,"tag":81,"props":3080,"children":3082},{"className":3081},[],[3083],{"type":46,"value":312},{"type":46,"value":3085},", and ",{"type":41,"tag":81,"props":3087,"children":3089},{"className":3088},[],[3090],{"type":46,"value":1631},{"type":46,"value":3092}," exist in app directory",{"type":41,"tag":1774,"props":3094,"children":3096},{"className":3095},[3038],[3097,3100,3101,3107],{"type":41,"tag":3041,"props":3098,"children":3099},{"disabled":473,"type":3043},[],{"type":46,"value":3071},{"type":41,"tag":81,"props":3102,"children":3104},{"className":3103},[],[3105],{"type":46,"value":3106},".vercel\u002F",{"type":46,"value":3108}," directory exists in app folder",{"type":41,"tag":1774,"props":3110,"children":3112},{"className":3111},[3038],[3113,3116],{"type":41,"tag":3041,"props":3114,"children":3115},{"disabled":473,"type":3043},[],{"type":46,"value":3117}," Deployment Protection is disabled (ssoProtection is null)",{"type":41,"tag":1774,"props":3119,"children":3121},{"className":3120},[3038],[3122,3125,3126,3131],{"type":41,"tag":3041,"props":3123,"children":3124},{"disabled":473,"type":3043},[],{"type":46,"value":3071},{"type":41,"tag":81,"props":3127,"children":3129},{"className":3128},[],[3130],{"type":46,"value":2106},{"type":46,"value":3132}," (no flags) completes and returns a preview URL",{"type":41,"tag":1774,"props":3134,"children":3136},{"className":3135},[3038],[3137,3140,3141,3147,3149],{"type":41,"tag":3041,"props":3138,"children":3139},{"disabled":473,"type":3043},[],{"type":46,"value":3071},{"type":41,"tag":81,"props":3142,"children":3144},{"className":3143},[],[3145],{"type":46,"value":3146},"vercel alias set",{"type":46,"value":3148}," succeeds and maps to ",{"type":41,"tag":81,"props":3150,"children":3152},{"className":3151},[],[3153],{"type":46,"value":3154},"stage-\u003Cproject-name>.vercel.app",{"type":41,"tag":1774,"props":3156,"children":3158},{"className":3157},[3038],[3159,3162],{"type":41,"tag":3041,"props":3160,"children":3161},{"disabled":473,"type":3043},[],{"type":46,"value":3163}," Stable URL is accessible in an incognito browser (no login prompt)",{"type":41,"tag":1774,"props":3165,"children":3167},{"className":3166},[3038],[3168,3171],{"type":41,"tag":3041,"props":3169,"children":3170},{"disabled":473,"type":3043},[],{"type":46,"value":3172}," Webapp loads on Meta Display Glasses via the stable URL",{"type":41,"tag":1774,"props":3174,"children":3176},{"className":3175},[3038],[3177,3180],{"type":41,"tag":3041,"props":3178,"children":3179},{"disabled":473,"type":3043},[],{"type":46,"value":3181}," Subsequent deploys + alias keep the same URL working",{"type":41,"tag":55,"props":3183,"children":3185},{"id":3184},"troubleshooting",[3186],{"type":46,"value":3187},"Troubleshooting",{"type":41,"tag":3189,"props":3190,"children":3191},"table",{},[3192,3211],{"type":41,"tag":3193,"props":3194,"children":3195},"thead",{},[3196],{"type":41,"tag":3197,"props":3198,"children":3199},"tr",{},[3200,3206],{"type":41,"tag":3201,"props":3202,"children":3203},"th",{},[3204],{"type":46,"value":3205},"Issue",{"type":41,"tag":3201,"props":3207,"children":3208},{},[3209],{"type":46,"value":3210},"Solution",{"type":41,"tag":3212,"props":3213,"children":3214},"tbody",{},[3215,3235,3255,3282,3295,3308,3334,3347],{"type":41,"tag":3197,"props":3216,"children":3217},{},[3218,3224],{"type":41,"tag":3219,"props":3220,"children":3221},"td",{},[3222],{"type":46,"value":3223},"Preview URL shows Vercel login page",{"type":41,"tag":3219,"props":3225,"children":3226},{},[3227,3229],{"type":46,"value":3228},"Run: ",{"type":41,"tag":81,"props":3230,"children":3232},{"className":3231},[],[3233],{"type":46,"value":3234},"echo '{\"ssoProtection\":null}' | vercel api \"\u002Fv9\u002Fprojects\u002F$PROJECT_ID\" -X PATCH --input - --silent",{"type":41,"tag":3197,"props":3236,"children":3237},{},[3238,3246],{"type":41,"tag":3219,"props":3239,"children":3240},{},[3241],{"type":41,"tag":81,"props":3242,"children":3244},{"className":3243},[],[3245],{"type":46,"value":1911},{"type":41,"tag":3219,"props":3247,"children":3248},{},[3249,3250],{"type":46,"value":1870},{"type":41,"tag":81,"props":3251,"children":3253},{"className":3252},[],[3254],{"type":46,"value":1953},{"type":41,"tag":3197,"props":3256,"children":3257},{},[3258,3270],{"type":41,"tag":3219,"props":3259,"children":3260},{},[3261,3263,3268],{"type":46,"value":3262},"No ",{"type":41,"tag":81,"props":3264,"children":3266},{"className":3265},[],[3267],{"type":46,"value":3106},{"type":46,"value":3269}," directory",{"type":41,"tag":3219,"props":3271,"children":3272},{},[3273,3274,3280],{"type":46,"value":1870},{"type":41,"tag":81,"props":3275,"children":3277},{"className":3276},[],[3278],{"type":46,"value":3279},"\u002Fpublish-to-vercel",{"type":46,"value":3281}," first to set up the project",{"type":41,"tag":3197,"props":3283,"children":3284},{},[3285,3290],{"type":41,"tag":3219,"props":3286,"children":3287},{},[3288],{"type":46,"value":3289},"Glasses show blank page",{"type":41,"tag":3219,"props":3291,"children":3292},{},[3293],{"type":46,"value":3294},"Check browser console — likely a JS error. Test URL in desktop browser first",{"type":41,"tag":3197,"props":3296,"children":3297},{},[3298,3303],{"type":41,"tag":3219,"props":3299,"children":3300},{},[3301],{"type":46,"value":3302},"Old version showing on glasses",{"type":41,"tag":3219,"props":3304,"children":3305},{},[3306],{"type":46,"value":3307},"Clear the glasses browser cache or hard-refresh — the stable URL should auto-serve the latest deploy",{"type":41,"tag":3197,"props":3309,"children":3310},{},[3311,3316],{"type":41,"tag":3219,"props":3312,"children":3313},{},[3314],{"type":46,"value":3315},"Alias name taken",{"type":41,"tag":3219,"props":3317,"children":3318},{},[3319,3321,3326,3328],{"type":46,"value":3320},"The ",{"type":41,"tag":81,"props":3322,"children":3324},{"className":3323},[],[3325],{"type":46,"value":3154},{"type":46,"value":3327}," subdomain may already be claimed by another Vercel user. Try a more specific name like ",{"type":41,"tag":81,"props":3329,"children":3331},{"className":3330},[],[3332],{"type":46,"value":3333},"stage-\u003Cproject-name>-\u003Cteam>.vercel.app",{"type":41,"tag":3197,"props":3335,"children":3336},{},[3337,3342],{"type":41,"tag":3219,"props":3338,"children":3339},{},[3340],{"type":46,"value":3341},"CORS errors on API calls",{"type":41,"tag":3219,"props":3343,"children":3344},{},[3345],{"type":46,"value":3346},"APIs must allow cross-origin requests. Use a proxy or CORS-friendly API",{"type":41,"tag":3197,"props":3348,"children":3349},{},[3350,3355],{"type":41,"tag":3219,"props":3351,"children":3352},{},[3353],{"type":46,"value":3354},"QR code won't scan",{"type":41,"tag":3219,"props":3356,"children":3357},{},[3358,3360,3366],{"type":46,"value":3359},"Ensure the deep link format is correct and the URL is properly percent-encoded. Try increasing ",{"type":41,"tag":81,"props":3361,"children":3363},{"className":3362},[],[3364],{"type":46,"value":3365},"--scale",{"type":46,"value":3367}," for a larger QR image",{"type":41,"tag":55,"props":3369,"children":3371},{"id":3370},"related-skills",[3372],{"type":46,"value":3373},"Related Skills",{"type":41,"tag":3189,"props":3375,"children":3376},{},[3377,3398],{"type":41,"tag":3193,"props":3378,"children":3379},{},[3380],{"type":41,"tag":3197,"props":3381,"children":3382},{},[3383,3388,3393],{"type":41,"tag":3201,"props":3384,"children":3385},{},[3386],{"type":46,"value":3387},"Skill",{"type":41,"tag":3201,"props":3389,"children":3390},{},[3391],{"type":46,"value":3392},"Purpose",{"type":41,"tag":3201,"props":3394,"children":3395},{},[3396],{"type":46,"value":3397},"When to Use",{"type":41,"tag":3212,"props":3399,"children":3400},{},[3401,3422,3443,3464,3486],{"type":41,"tag":3197,"props":3402,"children":3403},{},[3404,3412,3417],{"type":41,"tag":3219,"props":3405,"children":3406},{},[3407],{"type":41,"tag":81,"props":3408,"children":3410},{"className":3409},[],[3411],{"type":46,"value":2087},{"type":41,"tag":3219,"props":3413,"children":3414},{},[3415],{"type":46,"value":3416},"Add an optional passcode lock screen",{"type":41,"tag":3219,"props":3418,"children":3419},{},[3420],{"type":46,"value":3421},"Offered as opt-in in Step 0.5 to gate the public staging URL",{"type":41,"tag":3197,"props":3423,"children":3424},{},[3425,3433,3438],{"type":41,"tag":3219,"props":3426,"children":3427},{},[3428],{"type":41,"tag":81,"props":3429,"children":3431},{"className":3430},[],[3432],{"type":46,"value":3279},{"type":41,"tag":3219,"props":3434,"children":3435},{},[3436],{"type":46,"value":3437},"Publish to stable production URL",{"type":41,"tag":3219,"props":3439,"children":3440},{},[3441],{"type":46,"value":3442},"Shipping a ready version",{"type":41,"tag":3197,"props":3444,"children":3445},{},[3446,3454,3459],{"type":41,"tag":3219,"props":3447,"children":3448},{},[3449],{"type":41,"tag":81,"props":3450,"children":3452},{"className":3451},[],[3453],{"type":46,"value":1846},{"type":41,"tag":3219,"props":3455,"children":3456},{},[3457],{"type":46,"value":3458},"Create a new webapp",{"type":41,"tag":3219,"props":3460,"children":3461},{},[3462],{"type":46,"value":3463},"Before you have an app to debug",{"type":41,"tag":3197,"props":3465,"children":3466},{},[3467,3476,3481],{"type":41,"tag":3219,"props":3468,"children":3469},{},[3470],{"type":41,"tag":81,"props":3471,"children":3473},{"className":3472},[],[3474],{"type":46,"value":3475},"\u002Fconnect-api",{"type":41,"tag":3219,"props":3477,"children":3478},{},[3479],{"type":46,"value":3480},"Add API connections",{"type":41,"tag":3219,"props":3482,"children":3483},{},[3484],{"type":46,"value":3485},"If debugging API integration issues",{"type":41,"tag":3197,"props":3487,"children":3488},{},[3489,3497,3502],{"type":41,"tag":3219,"props":3490,"children":3491},{},[3492],{"type":41,"tag":81,"props":3493,"children":3495},{"className":3494},[],[3496],{"type":46,"value":2503},{"type":41,"tag":3219,"props":3498,"children":3499},{},[3500],{"type":46,"value":3501},"Generate QR codes",{"type":41,"tag":3219,"props":3503,"children":3504},{},[3505],{"type":46,"value":3506},"Used automatically by this skill for device setup",{"type":41,"tag":3508,"props":3509,"children":3510},"style",{},[3511],{"type":46,"value":3512},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"items":3514,"total":1554},[3515,3539,3553,3574,3595,3612,3621,3641,3654,3667,3680,3692],{"slug":3516,"name":3516,"fn":3517,"description":3518,"org":3519,"tags":3520,"stars":3536,"repoUrl":3537,"updatedAt":3538},"relay-best-practices","write idiomatic Relay code","Best practices for writing idiomatic Relay code. ALWAYS use this skill when writing or modifying React components that use Relay for data fetching. Covers fragments, queries, mutations, pagination, and common anti-patterns. Use when you see `useFragment`, `useLazyLoadQuery`, `usePreloadedQuery`, `useMutation`, `usePaginationFragment`, `graphql` template literals, `react-relay` imports, or `__generated__\u002F*.graphql` files. Also use when asked to explain Relay concepts, debug Relay issues, or review Relay code.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3521,3524,3527,3530,3533],{"name":3522,"slug":3523,"type":16},"Engineering","engineering",{"name":3525,"slug":3526,"type":16},"Frontend","frontend",{"name":3528,"slug":3529,"type":16},"GraphQL","graphql",{"name":3531,"slug":3532,"type":16},"React","react",{"name":3534,"slug":3535,"type":16},"Relay","relay",18950,"https:\u002F\u002Fgithub.com\u002Ffacebook\u002Frelay","2026-04-22T04:58:15.370563",{"slug":3540,"name":3540,"fn":3541,"description":3542,"org":3543,"tags":3544,"stars":3536,"repoUrl":3537,"updatedAt":3552},"relay-performance","optimize Relay application performance","Performance best practices for Relay applications. Use when optimizing data fetching, reducing re-renders, configuring caching, or improving time to first meaningful paint. Covers query placement, @defer, pagination, fetch policies, garbage collection, fragment granularity, and server-side filtering. Companion to the relay-best-practices skill which covers correctness and architecture.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3545,3546,3547,3550,3551],{"name":3525,"slug":3526,"type":16},{"name":3528,"slug":3529,"type":16},{"name":3548,"slug":3549,"type":16},"Performance","performance",{"name":3531,"slug":3532,"type":16},{"name":3534,"slug":3535,"type":16},"2026-06-10T07:30:28.726513",{"slug":3554,"name":3554,"fn":3555,"description":3556,"org":3557,"tags":3558,"stars":3571,"repoUrl":3572,"updatedAt":3573},"add-shape-types-to-torch-model","annotate PyTorch models with tensor shapes","Port a PyTorch model to use pyrefly's tensor shape type system (Tensor[[B, C, H, W]], Int[T]). Use this skill whenever the user wants to add shape annotations to a PyTorch model, type a model with tensor dimensions, port a model to use shape tracking, or annotate model forward methods with tensor shapes. Also use when the user mentions tensor shape ports, Int types for PyTorch, or pyrefly shape checking on a model file. Invoke BEFORE starting any model port — the skill's gated workflow prevents common failure modes.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3559,3562,3565,3568],{"name":3560,"slug":3561,"type":16},"Data Modeling","data-modeling",{"name":3563,"slug":3564,"type":16},"Deep Learning","deep-learning",{"name":3566,"slug":3567,"type":16},"Python","python",{"name":3569,"slug":3570,"type":16},"PyTorch","pytorch",6833,"https:\u002F\u002Fgithub.com\u002Ffacebook\u002Fpyrefly","2026-07-18T05:12:08.515952",{"slug":3575,"name":3575,"fn":3576,"description":3577,"org":3578,"tags":3579,"stars":3592,"repoUrl":3593,"updatedAt":3594},"camera-streaming","configure camera streaming and photo capture","Stream, video frames, photo capture, resolution\u002Fframe rate configuration",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3580,3583,3586,3589],{"name":3581,"slug":3582,"type":16},"Camera","camera",{"name":3584,"slug":3585,"type":16},"Hardware","hardware",{"name":3587,"slug":3588,"type":16},"iOS","ios",{"name":3590,"slug":3591,"type":16},"Video","video",488,"https:\u002F\u002Fgithub.com\u002Ffacebook\u002Fmeta-wearables-dat-ios","2026-08-06T05:38:47.523424",{"slug":3596,"name":3596,"fn":3597,"description":3598,"org":3599,"tags":3600,"stars":3592,"repoUrl":3593,"updatedAt":3611},"dat-conventions","develop iOS applications with DAT SDK","Swift patterns, async\u002Fawait, naming conventions, key types for DAT SDK iOS development",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3601,3602,3605,3608],{"name":3587,"slug":3588,"type":16},{"name":3603,"slug":3604,"type":16},"Mobile","mobile",{"name":3606,"slug":3607,"type":16},"SDK","sdk",{"name":3609,"slug":3610,"type":16},"Swift","swift","2026-08-06T05:38:49.536777",{"slug":22,"name":22,"fn":3613,"description":3614,"org":3615,"tags":3616,"stars":3592,"repoUrl":3593,"updatedAt":3620},"debug wearable device software","Common issues, Developer Mode, version compatibility, state machine diagnosis",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3617,3618,3619],{"name":21,"slug":22,"type":16},{"name":3522,"slug":3523,"type":16},{"name":3587,"slug":3588,"type":16},"2026-08-06T05:38:50.51086",{"slug":3622,"name":3622,"fn":3623,"description":3624,"org":3625,"tags":3626,"stars":3592,"repoUrl":3593,"updatedAt":3640},"display-access","manage display capabilities on wearable devices","Display capability setup, display-capable device selection, UI DSL, icons, buttons, images, and video playback",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3627,3630,3633,3636,3639],{"name":3628,"slug":3629,"type":16},"Design","design",{"name":3631,"slug":3632,"type":16},"Images","images",{"name":3634,"slug":3635,"type":16},"Interaction","interaction",{"name":3637,"slug":3638,"type":16},"UI Components","ui-components",{"name":3590,"slug":3591,"type":16},"2026-08-06T05:38:53.520488",{"slug":3642,"name":3642,"fn":3643,"description":3644,"org":3645,"tags":3646,"stars":3592,"repoUrl":3593,"updatedAt":3653},"getting-started","set up Meta wearable SDK integration","SDK setup, Swift Package Manager integration, Info.plist configuration, and first connection to Meta glasses",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3647,3650,3651,3652],{"name":3648,"slug":3649,"type":16},"Configuration","configuration",{"name":3587,"slug":3588,"type":16},{"name":3606,"slug":3607,"type":16},{"name":3609,"slug":3610,"type":16},"2026-08-06T05:38:48.514522",{"slug":3655,"name":3655,"fn":3656,"description":3657,"org":3658,"tags":3659,"stars":3592,"repoUrl":3593,"updatedAt":3666},"live-debugging-mcp","debug iOS wearable applications","Use this whenever debugging an iOS DAT app with local DAT Inspector MCP tools, live device events, Meta AI app\u002Fdevice boundary issues, permissions, registration, sessions, streaming, callbacks, or user reports that the app cannot communicate with glasses.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3660,3661,3662,3665],{"name":21,"slug":22,"type":16},{"name":3587,"slug":3588,"type":16},{"name":3663,"slug":3664,"type":16},"MCP","mcp",{"name":3603,"slug":3604,"type":16},"2026-08-06T06:09:15.013902",{"slug":3668,"name":3668,"fn":3669,"description":3670,"org":3671,"tags":3672,"stars":3592,"repoUrl":3593,"updatedAt":3679},"mockdevice-testing","test wearable apps with mock devices","MockDeviceKit for testing without physical glasses hardware",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3673,3674,3675,3678],{"name":3587,"slug":3588,"type":16},{"name":3603,"slug":3604,"type":16},{"name":3676,"slug":3677,"type":16},"QA","qa",{"name":18,"slug":19,"type":16},"2026-05-15T06:14:37.406692",{"slug":3681,"name":3681,"fn":3682,"description":3683,"org":3684,"tags":3685,"stars":3592,"repoUrl":3593,"updatedAt":3691},"permissions-registration","register apps with Meta AI","App registration with Meta AI, camera permission flows",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3686,3687,3688],{"name":3581,"slug":3582,"type":16},{"name":3587,"slug":3588,"type":16},{"name":3689,"slug":3690,"type":16},"Permissions","permissions","2026-05-15T06:14:46.030253",{"slug":3693,"name":3693,"fn":3694,"description":3695,"org":3696,"tags":3697,"stars":3592,"repoUrl":3593,"updatedAt":3701},"sample-app-guide","build wearable apps with camera streaming","Building a complete DAT app with camera streaming and photo capture",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3698,3699,3700],{"name":3581,"slug":3582,"type":16},{"name":3587,"slug":3588,"type":16},{"name":3603,"slug":3604,"type":16},"2026-08-06T05:38:51.509255",{"items":3703,"total":715},[3704,3716,3726,3740,3752,3764,3776],{"slug":3705,"name":3705,"fn":3706,"description":3707,"org":3708,"tags":3709,"stars":23,"repoUrl":24,"updatedAt":3715},"add-device-sensors","integrate device sensor data","Add device sensor data to a Meta Display Glasses webapp — IMU (accelerometer, gyroscope, orientation) via DeviceMotionEvent\u002FDeviceOrientationEvent, and GPS location via navigator.geolocation. Use when the user wants motion tracking, compass, level tool, step counter, shake detection, head tracking, or location.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3710,3711,3712],{"name":3525,"slug":3526,"type":16},{"name":3584,"slug":3585,"type":16},{"name":3713,"slug":3714,"type":16},"IoT","iot","2026-09-01T08:30:33.453548",{"slug":3717,"name":3717,"fn":3718,"description":3719,"org":3720,"tags":3721,"stars":23,"repoUrl":24,"updatedAt":3725},"add-gestures","handle gesture interactions in webapps","Handle EMG pinch (tap-to-activate) and opt into continuous pinch-and-drag in a Meta Display Glasses webapp. Use when the user wants sliders, drawing, maps, drag interactions, or game-style continuous input.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3722,3723,3724],{"name":3628,"slug":3629,"type":16},{"name":3525,"slug":3526,"type":16},{"name":3634,"slug":3635,"type":16},"2026-09-01T08:30:53.889244",{"slug":3727,"name":3727,"fn":3728,"description":3729,"org":3730,"tags":3731,"stars":23,"repoUrl":24,"updatedAt":3739},"add-local-storage","add client-side data persistence","Add client-side data persistence to a Meta Display Glasses webapp using the W3C Web Storage API (localStorage and sessionStorage). Use when the user wants to save settings, cache data, persist state, or store user preferences.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3732,3733,3736],{"name":3525,"slug":3526,"type":16},{"name":3734,"slug":3735,"type":16},"Persistence","persistence",{"name":3737,"slug":3738,"type":16},"Storage","storage","2026-09-01T08:30:31.384362",{"slug":3741,"name":3741,"fn":3742,"description":3743,"org":3744,"tags":3745,"stars":23,"repoUrl":24,"updatedAt":3751},"add-offline","enable offline support for webapps","Make a Meta Display Glasses webapp work offline with a Service Worker + Cache API (precache the app shell, cache-first fetch, online\u002Foffline UI). Use when the user wants offline support or resilience to flaky Wi-Fi.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3746,3747,3750],{"name":3525,"slug":3526,"type":16},{"name":3748,"slug":3749,"type":16},"Offline","offline",{"name":3548,"slug":3549,"type":16},"2026-09-01T08:30:33.83287",{"slug":3753,"name":3753,"fn":3754,"description":3755,"org":3756,"tags":3757,"stars":23,"repoUrl":24,"updatedAt":3763},"add-text-input","add text input to webapps","Add text entry to a Meta Display Glasses webapp. Standard HTML inputs open the on-glasses composer (handwriting + voice) when focused and tapped. Use when the user wants a text field, search box, form input, or notes area.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3758,3761,3762],{"name":3759,"slug":3760,"type":16},"Forms","forms",{"name":3525,"slug":3526,"type":16},{"name":3637,"slug":3638,"type":16},"2026-09-01T08:30:30.563354",{"slug":3765,"name":3765,"fn":3766,"description":3767,"org":3768,"tags":3769,"stars":23,"repoUrl":24,"updatedAt":3775},"add-ui","add UI components to webapps","Add UI components to a Meta Display Glasses webapp — screens, buttons, lists, cards, forms, toggles, counters, or nav bars. Works with vanilla JS and React apps. Use when the user wants to add any interactive UI element or new screen.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3770,3771,3773,3774],{"name":3525,"slug":3526,"type":16},{"name":3772,"slug":319,"type":16},"JavaScript",{"name":3531,"slug":3532,"type":16},{"name":3637,"slug":3638,"type":16},"2026-09-01T08:30:27.477785",{"slug":3777,"name":3777,"fn":3778,"description":3779,"org":3780,"tags":3781,"stars":23,"repoUrl":24,"updatedAt":3792},"connect-api","connect webapps to REST APIs and WebSockets","Connect a Meta Display Glasses webapp to REST APIs or WebSockets. Use when the user wants to fetch data from an API, add real-time updates, show loading\u002Ferror states, or cache API responses.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3782,3785,3786,3789],{"name":3783,"slug":3784,"type":16},"API Development","api-development",{"name":3525,"slug":3526,"type":16},{"name":3787,"slug":3788,"type":16},"REST API","rest-api",{"name":3790,"slug":3791,"type":16},"WebSockets","websockets","2026-09-01T08:30:30.968156"]