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

durable-actors-observer

v0.4.6

Published

Embeddable React observer for Durable Actors

Readme

Durable Actors Observer

React 19 components for embedding Durable Actors observability in a hosted app.

import { HttpObserverClient, Overview, WebSocketObserver } from "durable-actors-observer"
import "durable-actors-observer/styles.css"
import "durable-actors-observer/theme.css"

const projectId = "my-project"
const client = new HttpObserverClient(`/api/projects/${encodeURIComponent(projectId)}/observe`)

export function Observability() {
    return (
        <>
            <Overview client={client} onSelectActor={actorName => console.log(actorName)} />
            <WebSocketObserver client={client} />
        </>
    )
}

Import styles.css once. The optional theme.css supplies light and dark theme tokens; omit it when the host supplies those tokens. Apply the dark class to an ancestor for dark mode.

The package exports ActorObserver, RequestObserver, Overview, WebSocketObserver, ConsoleApp, SocketTimeline, TimeRangePicker, and FilterCombobox, along with their named props types. It also exports the shared badge, button, calendar, command, input, popover, sheet, and table components from the package root. Use React's ComponentProps<typeof Button> (and equivalent) for primitive props.

Pass your own ObserverClient to connect these views to a hosted backend, or configure HttpObserverClient with your API prefix and fetch implementation. React remains a peer dependency. ConsoleApp provides the complete navigation shell and requires a toggleTheme callback; individual views can be placed inside your own navigation.

Control-plane endpoints require a project in the path: /v1/projects/{project_id}/observe/.... The hosted backend should authorize access to that project and proxy the routes using its server-side admin credential. The CLI's /api/observe proxy uses its configured DURABLE_ACTORS_PROJECT_ID. Request traces include a required projectId; older stored traces without one are excluded from project results.

The observer version follows the SDK and runtime version. Run pnpm release:prepare <version> at the repository root before publishing a GitHub release. Release preflight checks all versions, and the workflow publishes the observer before the SDK. The SDK's workspace:* dependency becomes the exact observer version when packed.

The localhost-only durable-actors dev runtime allows observability requests without a secret, even when a secret is configured for application routes. Hosted runtimes retain their configured admin authentication.

Persisted actor state

Select an actor instance in ActorObserver to inspect persisted fields, JSON types, nested values, and version diffs. Request and connection links filter the existing request history. The standard HttpObserverClient and durable-actors observe include this capability; custom clients implement getState and listStateHistory to enable it.

Values come from the actor's existing snapshot objects in the configured storage bucket, including dormant actors. Analytics stores only a state-version signal. Request events trigger a refresh; polling recovers from missed events and asynchronous bucket uploads. History uses rebuildable metadata-only sidecars beside snapshots and retains no duplicate state bodies. Available versions follow the bucket's snapshot retention/lifecycle policy.

Attribution identifies the committing request. A reentrant commit may include mutations from other interleaved requests; the UI labels this explicitly. Declared field types describe the current deployment schema, which may differ from older stored values. Inspection is read-only and uses the existing authenticated project observability API.