Astro
Astro’s static-first rendering is a great fit for nlqdb-embedded pages — most of the markup is HTML, and the dynamic part lives inside <nlq-data> rather than a heavy client framework.
Run it
Section titled “Run it”npm create astro@latest nlqdb-orders -- --template minimal --typescript strictcd nlqdb-ordersReplace src/pages/index.astro with the file in this folder, then:
echo "PUBLIC_NLQDB_KEY=pk_live_yourkey" > .envnpm install && npm run devis:inlineon the<script>tells Astro not to bundle / process the import — the elements package is loaded directly fromelements.nlqdb.com, so we want it as-is.PUBLIC_*env prefix is Astro-mandated for any env var the browser sees.- This is the same pattern
apps/web(thenlqdb.commarketing site) will use — Astro is the in-house frontend framework.
Live code
Section titled “Live code”Source on GitHub: examples/astro/.