npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@waelio/agent

v0.1.3

Published

Cloudflare-ready PWA frontend for ADK and Worker backends.

Readme

@waelio/agent

@waelio/agent is the Cloudflare-ready PWA frontend package for the waelio Google ADK project.

It provides the browser UI used to talk to either a local ADK API server or the included Cloudflare Worker backend.

  • Live app: https://waelio-agent.pages.dev/
  • Repository: https://github.com/waelio/agent
  • Changelog: https://github.com/waelio/agent/blob/default/frontend/CHANGELOG.md

Highlights

  • Installable PWA powered by Vite
  • Simple chat UI for an ADK or Worker backend
  • Backend URL override saved in the browser
  • Cloudflare Pages friendly static frontend
  • Designed to run locally with the companion Python ADK service

Try it quickly

Live demo

  • Open https://waelio-agent.pages.dev/
  • Save your deployed Worker or ADK backend URL in the sidebar
  • Start chatting immediately

Local development

From the repository root:

pnpm install
pnpm dev
source .venv/bin/activate
adk api_server --port 8000 --allow_origins "regex:http://(127\\.0\\.0\\.1|localhost):3000" .

Then open http://127.0.0.1:3000.

How the frontend connects

The app resolves its backend in this order:

  1. a saved browser override from the sidebar
  2. VITE_API_BASE_URL from the environment
  3. http://localhost:8000 when running on localhost

That makes local development friction-free while still letting deployed builds point at a production Worker or remote ADK server.

Local development

From the repository root:

  1. Install workspace dependencies.
  2. Start the frontend dev server.
  3. Run the ADK backend API server.

Frontend

Use the workspace script from the repository root:

  • pnpm dev

Or run the frontend package directly:

  • pnpm --filter ./frontend dev

Backend

Start the ADK API server from the repository root:

  • source .venv/bin/activate
  • adk api_server --port 8000 --allow_origins "regex:http://(127\\.0\\.0\\.1|localhost):3000" .

Then open http://127.0.0.1:3000.

The frontend will automatically use http://localhost:8000 on localhost, so no manual sidebar setup is needed for the default local flow.

Environment variables

  • VITE_API_BASE_URL — optional default backend URL for deployed builds
  • VITE_AGENT_APP_NAME — app name used for ADK sessions, defaults to Agent

The package ships frontend/.env.example values in the published tarball as .env.example.

Deploy on Cloudflare Pages

This repository is ready to host the frontend only on Cloudflare Pages as a PWA.

For production in this repo, the intended backend is now the Worker in ../backend/, deployed separately on Cloudflare Workers.

Recommended Cloudflare Pages settings

  • Project root: repository root
  • Build command: pnpm --filter ./frontend build
  • Build output directory: frontend/dist
  • Deploy command: leave empty

Required environment variables

Set these in your Cloudflare Pages project:

  • VITE_API_BASE_URL=https://your-api.example.com
  • VITE_AGENT_APP_NAME=Agent

If VITE_API_BASE_URL is not set, the app still supports a saved browser override, and it only falls back to http://localhost:8000 on local development hosts.

Recommended production pairing

  • deploy ../backend/ to Cloudflare Workers
  • use the resulting Worker URL as VITE_API_BASE_URL
  • deploy the built frontend to Cloudflare Pages

Important backend note

Cloudflare Pages hosts the static frontend, not the Python ADK backend. You should either:

  • use the included Cloudflare Worker backend in ../backend/, or
  • run the ADK API server somewhere else (for example a VM, Cloud Run, or another HTTPS host) and allow your Pages domain in backend CORS.

Example production backend command:

  • adk api_server --port 8000 --allow_origins "https://your-pages-domain.example.com" .

Troubleshooting workspace deploy errors

If Cloudflare is trying to run npx wrangler deploy from the repository root, that is the wrong deploy flow for this Pages setup.

This repository is a pnpm workspace, so a root-level Wrangler deploy without a specific Wrangler configuration will fail with a workspace detection error.

To make that workflow safer, the repo now includes frontend/wrangler.jsonc plus a root redirect file at .wrangler/deploy/config.json, so root-level wrangler deploy resolves to the frontend app instead of the workspace root.

For Cloudflare Pages, keep the deploy command empty and use the build settings above.

If you want a manual CLI upload, use a Pages command instead:

  • npx wrangler pages deploy frontend/dist --project-name <your-pages-project>

PWA behavior

  • The app generates a web manifest and service worker at build time.
  • Cloudflare SPA routing is enabled via public/_redirects.
  • An install button appears automatically in supported browsers.

What gets published

The npm package intentionally ships the frontend source, PWA assets, deploy config, and docs needed to inspect or build the app:

  • src/
  • public/
  • index.html
  • vite.config.ts
  • wrangler.jsonc
  • .env.example

It does not publish dist/ or workspace-only lockfiles.

Repository

  • GitHub: https://github.com/waelio/agent
  • Releases: https://github.com/waelio/agent/releases
  • Changelog: https://github.com/waelio/agent/blob/default/frontend/CHANGELOG.md

License

MIT