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

@page-chat/core

v0.1.2

Published

GUI agent for web applications - add intelligent automation to any webpage with a single script

Readme

Page Chat

License: MIT TypeScript

The lightweight in-page chatbot, built on top of page-agent.js. Ask questions about the current page, attach files, and chat with any AI model — no function/tool calling required.


✨ Features

  • 🎯 Easy integration
    • No need for browser extension / python / headless browser.
    • Just in-page JavaScript. Everything happens in your web page.
  • 🧠 Works with any AI model
    • No function/tool calling required — compatible with every OpenAI-compatible endpoint.
  • 📖 Page-aware chat
    • Reads the current page content so the AI can answer questions about what's on screen.
  • 📎 File & screenshot attachments
    • Attach local files or capture a screenshot as context for the conversation.
  • 🔌 Built on page-agent.js
    • Shares the same battle-tested DOM extraction engine, packaged as a simpler chat-only interface.

💡 Use Cases

  • SaaS AI Copilot — Ship an AI assistant in your product in lines of code. No backend rewrite.
  • Page Q&A — Let users ask questions about the current page content in plain language.
  • Document Chat — Attach PDFs, images, or text files and discuss them with the AI.
  • Accessibility — Make any web app accessible through natural language. Voice commands, screen readers, zero barrier.

🚀 Quick Start

One-line integration

Fastest way to try PageChat with our free Demo LLM:

<script src="{URL}" crossorigin="true"></script>
# Run the demo server locally (requires Node.js)
git clone https://github.com/pwwang/page-chat.git
cd page-chat/
npm install
# Change the API endpoint in packages/page-chat/src/demo.ts if needed, then run:
npm run dev:demo

NPM Installation

npm install page-chat
import { PageChat } from 'page-chat'

const chat = new PageChat({
    model: 'qwen3.5-plus',
    baseURL: 'https://dashscope.aliyuncs.com/compatible-mode/v1',
    apiKey: 'YOUR_API_KEY',
    language: 'en-US',
    persist: true, // optional, enable conversation history persistence across page reloads
    title: 'My Assistant', // optional — customises the chat panel title
})

For more programmatic usage, see 📖 Documentations.

🤝 Contributing

We welcome contributions from the community! Follow our instructions in CONTRIBUTING.md for setup and guidelines.

Please read the maintainer note and Code of Conduct before opening issues or PRs.

Contributions generated entirely by bots or agents without substantial human involvement will not be accepted.

👏 Acknowledgments

page-chat is built on top of page-agent.js, a full GUI automation agent for the browser. page-chat takes the same DOM extraction engine and page-reading infrastructure, strips out the automation layer, and exposes it as a simple chat interface that works with any AI model — including those without function/tool calling support.

The underlying DOM processing components were originally derived from browser-use.

DOM processing components and prompt are derived from browser-use:

Browser Use <https://github.com/browser-use/browser-use>
Copyright (c) 2024 Gregor Zunic
Licensed under the MIT License

We gratefully acknowledge the browser-use project and its contributors for their
excellent work on web automation and DOM interaction patterns that helped make
this project possible.

Third-party dependencies and their licenses can be found in the package.json
file and in the node_modules directory after installation.

📄 License

MIT License