This repository contains a small Deno project that serves a static site from public/ and a couple of demo APIs. The front-end fetches npm package metadata directly from the npm APIs and registers a service worker for basic offline support.
public/index.html– UI for viewing npm package statsapp.js– client logic (fetches npm registry + downloads APIs)styles.css– stylesmanifest.webmanifest– PWA manifestservice-worker.js– network-first for HTML/APIs, cache-first for static
main.ts– Deno server for local development; also exposes/api/addand/api/npmmain_test.ts– tiny unit test foradd(a, b)deno.json– tasks and import mappingsnetlify.toml– static deploy: publishpublic/with no build step
deno task devThen open http://localhost:8000
This site is configured for static deploys:
- Publish directory:
public/ - Build command: none (handled by
netlify.toml)
Deploy status: see badge above. Click through to Netlify for deploy details/logs.
- Live site: https://waelio.com
- Netlify subdomain: https://waelio.netlify.app
- Deploys dashboard: https://app.netlify.com/sites/waelio/deploys
- The client fetches
https://registry.npmjs.organdhttps://api.npmjs.orgdirectly (CORS-enabled), so no server or Node build step is required for deployment.