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

@particle-academy/teachers-aid-ui

v0.2.1

Published

Teachers Aid Chat UX — an authoring chat with file drop and a propose-then-approve plan review, built on Fancy UI primitives.

Downloads

701

Readme

@particle-academy/teachers-aid-ui

Teachers Aid Chat UX — an authoring chat with file drop and a propose-then-approve plan review, built on Fancy UI primitives.

The React half of particle-academy/teachers-aid. Every component is controlled and transport-agnostic: it takes data and callbacks and imports no router or HTTP client, so the same surface sits on Inertia, a fetch call or a websocket.

Install

npm install @particle-academy/teachers-aid-ui

Peer deps: react 18/19 and @particle-academy/react-fancy v4+.

Tailwind must be told to scan the package, or it emits none of the classes:

@source "../../node_modules/@particle-academy/teachers-aid-ui/dist";

Use

import { TeachersAidChat } from '@particle-academy/teachers-aid-ui';

<TeachersAidChat
    agentName="TAC"
    history={history}
    plan={plan}
    busy={busy}
    pending={pending}
    configured={hasApiKey}
    onSend={(message, files, reset) => post(message, files, reset)}
    onApply={() => post('/plan/apply')}
    onDiscard={() => post('/plan/discard')}
    onReset={() => post('/reset')}
    banner={<Callout color="amber">…</Callout>}
/>

TeachersAidChat composes the three pieces below. Use them directly if you want a different arrangement.

Components

| | | |---|---| | TeachersAidChat | The whole surface: plan review, transcript, composer. | | PlanReview | The approval list. Renders nothing when the plan is empty. | | ChatTranscript | The conversation, with an optional working indicator. | | MessageComposer | Message box with drag-and-drop attachments. |

PlanReview is the approval step

It is the only place a proposal becomes rows, so every operation is inspectable before anything is written — raw attributes included. A reviewer who cannot see what they are approving is not really approving it, and "Apply" on an opaque list is just a slower yes.

Forward references are surfaced too: an operation carrying ref: "c1" reads "referenced later as $c1", so it is obvious that a later lesson attaches to the course above it rather than to something that already exists.

Two details that look like polish and are not

The transcript renders display, not content. content is what the model was sent, with extracted file text folded in — rendering it would paste a whole handbook back at the teacher.

MessageComposer takes busy and disabled separately. The box is also disabled when no model is configured, and wiring the spinner to disabled leaves it spinning forever, which reads as "working" when nothing is happening at all.

Why not react-fancy's PromptInput?

It is the closer fit on paper — slash commands, mentions, a token meter, drop-to-attach. But it maps dropped files to { id, name, bytes } and discards the File, so the chip renders and the upload can never happen. Reported upstream; MessageComposer goes away the day the attachment carries the file.

Types

ChangePlan, ChangeOperation, ChatEntry mirror what the PHP package serialises, but nothing here imports it — these components are a view over plain JSON, so a host on any backend can feed them.

Develop

npm install
npm run build     # tsup -> dist (esm + cjs + d.ts)
npm run lint      # tsc --noEmit

License

MIT.