Built in code
Install Eli on a site built in code
If your site is built in code, on Vercel, Netlify or your own server, your developer adds one line once. After that Eli works by itself. It publishes your files for AI agents and adds your product data to your pages, with no deploy for each change.
Connect
In Eli, choose Built in code in the connect step and press Get my line.
Choose what your site is built with. Eli shows the line with your site key filled in.
Your developer adds the line once and deploys as usual.
Eli reads your live site, sees the line working and takes it from here. First the line serves one small file with your workspace's token at /.well-known/eli-site-verification.txt, so Eli can prove the website is yours. Until then it changes nothing on your pages.
Add the package
npm install https://www.hireeli.io/downloads/eli-server.tgzFor every framework below except plain PHP, add the package once. Eli serves it itself, so no npm account is needed. npm installs it straight from this address.
Next.js
import { eliProxy } from "@hireeli/server/next";
export default eliProxy({ siteKey: "YOUR_SITE_KEY" });
import { EliHead } from "@hireeli/server/next";
<EliHead siteKey="YOUR_SITE_KEY" />After the package, two lines. The first goes in proxy.ts (middleware.ts before Next 16), the second inside the head of app/layout.tsx.
The proxy runs before your app, so it cannot see your own files. Eli's install check reads which of /llms.txt, /agents.md and /.well-known/ucp your site serves itself, and Eli never answers those. A file you add later, name in skip, for example eliProxy({ siteKey: "YOUR_SITE_KEY", skip: ["/llms.txt"] }).
EliHead reads each request, so the pages under it are rendered on request. For a page that must stay fully static, give EliHead the host and the page's path, for example <EliHead siteKey="YOUR_SITE_KEY" host="www.example.com" path="/pricing" />; that page then shows Eli's additions as they were when it was built.
Express or Node
import { eli } from "@hireeli/server/node";
app.use(eli({ siteKey: "YOUR_SITE_KEY" }));Before your routes.
Astro
import { eliAstro } from "@hireeli/server/frameworks";
export const onRequest = eliAstro({ siteKey: "YOUR_SITE_KEY" });In src/middleware.ts, for pages rendered on request.
Remix, Hono, Workers, Deno or Bun
import { withEli } from "@hireeli/server";
export default { fetch: withEli(handler, { siteKey: "YOUR_SITE_KEY" }) };Wrap the fetch handler your server already has.
Nuxt
import { eliNitro } from "@hireeli/server/frameworks";
export default defineNitroPlugin(eliNitro({ siteKey: "YOUR_SITE_KEY" }));In server/plugins/eli.ts.
Plain PHP
<?php const ELI_SITE_KEY = 'YOUR_SITE_KEY'; require __DIR__ . '/eli.php';Download the one file eli.php from https://www.hireeli.io/downloads/eli.php, put it beside your index.php and add this line at the very top of index.php. It needs PHP 7.4 or newer and nothing else.
What the line does
- Answers /llms.txt, /.well-known/ucp and /agents.md with the files Eli publishes for your site, only where your site serves none of its own.
- Adds your product data as JSON-LD to the head of your home page and of each product page, and the facts block where a fix puts one.
- Adds a small marker to each page, so Eli can see the line works.
- Serves /.well-known/eli-site-verification.txt with your workspace's token, which proves to Eli that the website is yours. Before that proof it serves only this file.
- Gives every visitor, person or AI agent, exactly the same page. It never reads a user agent, a cookie or an address.
It fails open
If Eli does not answer within a second and a half, or answers something the line cannot read, your site goes out exactly as your code wrote it. The last good answer is kept for a day, so a short outage at Eli changes nothing. Streams, downloads, redirects and compressed pages pass through untouched.
Eli applies a fix by changing what it serves for your site. Your site picks the change up within about ten minutes, and Eli reads your public page to confirm it. A change your site does not show within two hours is taken out again.
Remove Eli
Remove Eli in your report and within ten minutes the line serves nothing. Then delete the line from your code.
