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

@owllayer/angular

v0.4.0

Published

OwlLayer Angular SDK - Provider et facade minimale pour OwlLayerClient

Readme

@owllayer/angular

npm version npm downloads License: MIT TypeScript strict

Angular 19+ SDK for OwlLayer AI. Build Agentic UI applications with Angular standalone providers, injectable services, directives, components, real-time voice mode, and Human-in-the-Loop (HITL) security.


Features

  • Standalone Provider (provideOwlLayer): First-class support for Angular standalone bootstrap and dependency injection.
  • OwlLayerAngularService: Injectable facade managing connection, session state, message dispatching, and tool registrations.
  • OwlLayerVoiceService: Real-time voice mode service with microphone capture and PCM streaming.
  • OwlLayerToolDirective: Declarative directive for registering tools directly in Angular templates.
  • OwlLayerWidgetComponent: Ready-to-use assistant chat & voice widget component.
  • Human-in-the-Loop (HITL): OwlLayerApprovalModalComponent for securing critical actions.

Installation

# pnpm
pnpm add @owllayer/angular @owllayer/core @angular/core @angular/common @angular/forms rxjs

# npm
npm install @owllayer/angular @owllayer/core @angular/core @angular/common @angular/forms rxjs

# yarn
yarn add @owllayer/angular @owllayer/core @angular/core @angular/common @angular/forms rxjs

Quick Start

1. Configure the Provider

In your app.config.ts (standalone bootstrap):

import { ApplicationConfig } from '@angular/core';
import { provideOwlLayer } from '@owllayer/angular';

export const appConfig: ApplicationConfig = {
  providers: [
    provideOwlLayer({
      endpoint: 'ws://localhost:3001/owllayer',
      apiKey: 'pk_dev_xxxx',
    }),
  ],
};

2. Embed the Assistant Widget

In your root template (app.component.html):

<router-outlet></router-outlet>
<owllayer-widget [agentName]="'Léa'" [agentTitle]="'Assistant'"></owllayer-widget>

In app.component.ts:

import { Component } from '@angular/core';
import { RouterOutlet } from '@angular/router';
import { OwlLayerWidgetComponent } from '@owllayer/angular';

@Component({
  selector: 'app-root',
  standalone: true,
  imports: [RouterOutlet, OwlLayerWidgetComponent],
  templateUrl: './app.component.html',
})
export class AppComponent {}

3. Register Tools via Service or Directive

In Component TypeScript:

import { Component, OnInit, inject } from '@angular/core';
import { OwlLayerAngularService } from '@owllayer/angular';

@Component({
  selector: 'app-product-details',
  standalone: true,
  template: `<div>{{ product.name }}</div>`,
})
export class ProductDetailsComponent implements OnInit {
  private owllayer = inject(OwlLayerAngularService);
  product = { id: 'prod_1', name: 'Premium Headphones' };

  ngOnInit() {
    this.owllayer.registerTool(
      'get_current_product',
      {
        description: 'Get product information currently displayed on screen',
        risk: 'none',
      },
      async () => ({ product: this.product })
    );
  }
}

In Template Directive:

<button
  owllayerTool="add_to_wishlist"
  [toolDescription]="'Add current item to user wishlist'"
  [toolRisk]="'none'"
  (toolExecuted)="onAddToWishlist($event)"
>
  Add to Wishlist
</button>

4. Voice Mode Service

import { Component, inject } from '@angular/core';
import { OwlLayerVoiceService } from '@owllayer/angular';

@Component({
  selector: 'app-voice-button',
  standalone: true,
  template: `
    <button (click)="toggleVoice()">
      {{ voiceService.isCapturing() ? 'Stop Voice' : 'Start Voice' }}
    </button>
  `,
})
export class VoiceButtonComponent {
  protected voiceService = inject(OwlLayerVoiceService);

  toggleVoice() {
    if (this.voiceService.isCapturing()) {
      this.voiceService.stopVoice();
    } else {
      this.voiceService.startVoice();
    }
  }
}

Core APIs

| API | Purpose | |---|---| | provideOwlLayer(config) | Angular provider function configuring the OwlLayer client. | | OwlLayerAngularService | Core service for managing tools, context, and connection. | | OwlLayerVoiceService | Service for managing voice recording, streaming, and audio playback. | | registerNavigationTool(...) | Helper connecting Angular Router navigation to AI tools. | | OwlLayerToolDirective | Declarative directive for template-based tool registration. | | OwlLayerWidgetComponent | Standalone chat/voice widget component. | | OwlLayerApprovalModalComponent | Standalone HITL approval modal component. |


License

MIT © OwlLayer