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

@continuum-dev/angular

v0.1.1

Published

Angular bindings for the Continuum continuity runtime

Downloads

41

Readme

@continuum/angular

Angular bindings for the Continuum SDK.

Provides environment providers, signal-based inject APIs, a view-driven standalone renderer, and Reactive Forms / Signal Forms adapters. Handles persistence to localStorage/sessionStorage automatically.

Installation

npm install @continuum/angular @continuum/contract

Peer dependencies: @angular/core, @angular/common, @angular/forms >= 20.

Quick Start

import { ApplicationConfig } from '@angular/core';
import type { ViewDefinition } from '@continuum/contract';
import { provideContinuum } from '@continuum/angular';
import { ContinuumRendererComponent } from '@continuum/angular';

const componentMap = {
  input: MyInputComponent,
  select: MySelectComponent,
  toggle: MyToggleComponent,
  default: MyFallbackComponent,
};

export const appConfig: ApplicationConfig = {
  providers: [
    provideContinuum({
      components: componentMap,
      persist: 'localStorage',
    }),
  ],
};
<!-- In your component template -->
@if (snapshot(); as snap) {
  <continuum-renderer [view]="snap.view" />
}
// In your component
snapshot = injectContinuumSnapshot();
session = injectContinuumSession();
agentView: ViewDefinition = { viewId: 'view-1', version: '1', nodes: [] };

ngOnInit() {
  this.session.pushView(this.agentView);
}

API

provideContinuum(options)

Configures Continuum in the application injector.

| Option | Type | Default | Description | |--------|------|---------|-------------| | components | ContinuumNodeMap | required | Map of component type strings to Angular components | | persist | 'sessionStorage' \| 'localStorage' \| false | false | Where to persist session data | | storageKey | string | 'continuum_session' | Key used in storage | | maxPersistBytes | number | — | Optional max serialized payload size in bytes before writes are skipped | | onPersistError | (error: ContinuumPersistError) => void | — | Called for skipped writes (size_limit) and storage failures (storage_error) | | sessionOptions | SessionOptions | — | Optional session configuration |

When maxPersistBytes is set and a snapshot exceeds the limit, persistence is skipped for that snapshot and onPersistError is called. If no callback is provided, a warning is logged.

Injection APIs

All inject functions must be called from an injection context (e.g. constructor, inject() initialization). They throw if used outside a provideContinuum() provider tree.

| Function | Returns | Description | |----------|---------|-------------| | injectContinuumSession() | Session | The Continuum session | | injectContinuumSnapshot() | Signal<ContinuitySnapshot \| null> | Reactive snapshot signal | | injectContinuumState(nodeId) | [Signal<...>, (value) => void] | State signal and setter for a node | | injectContinuumDiagnostics() | Signal<{issues, diffs, resolutions, checkpoints}> | Reconciliation diagnostics | | injectContinuumHydrated() | boolean | Whether the session was rehydrated from storage |

Components

| Component | Description | |-----------|-------------| | <continuum-renderer> | Renders a view. Input: view: ViewDefinition | | <continuum-fallback> | Built-in fallback for unknown component types | | <continuum-children-renderer> | Renders child definitions. Use in container components. Input: definitions: ViewNode[] |

Forms

Reactive Forms: bindContinuumReactiveForm(bindings, options?) syncs FormControl instances with session state.

Signal Forms: bindContinuumSignalForm<T>(nodeId) returns { value: Signal<T>, update: (v) => void } for signal-first binding.

Component Map Pattern

Components in the map receive ContinuumNodeProps:

interface ContinuumNodeProps<T = NodeValue> {
  value: T | undefined;
  onChange: (value: T) => void;
  definition: ViewNode;
  children?: unknown;
}

For containers that render children, use <continuum-children-renderer [definitions]="definition.children" /> in your template.

Links