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

@getmantl/angular

v0.3.0

Published

Angular bindings for Mantl — drop-in AI copilot SDK. Wraps the React core with an Angular component surface.

Readme

@getmantl/angular

Angular SDK for Mantl — a drop-in AI copilot you can embed into any Angular app. Renders a chat panel docked alongside your content, aware of the signed-in user, with the ability to call functions you expose from the host app.

Install

npm install @getmantl/angular

Requires Angular 17+ (standalone components).

Quickstart

// app.component.ts
import { Component } from '@angular/core';
import { MantlChatComponent, ClientTools } from '@getmantl/angular';
import { Router } from '@angular/router';

@Component({
  selector: 'app-root',
  standalone: true,
  imports: [MantlChatComponent],
  template: `
    <main>
      <!-- your app -->
    </main>
    <mantl-chat
      [tokenUrl]="'/api/mantl-token'"
      [tools]="tools"
      (navigate)="router.navigateByUrl($event)"
    />
  `,
})
export class AppComponent {
  constructor(public router: Router) {}

  tools: ClientTools = {
    openInvoice: {
      description: 'Open an invoice by ID.',
      parameters: {
        type: 'object',
        properties: { id: { type: 'string' } },
        required: ['id'],
      },
      execute: ({ id }) => {
        this.router.navigateByUrl(`/invoices/${id}`);
        return { success: true };
      },
    },
  };
}

You'll need:

  1. A project on getmantl.com — gives you a project ID and secret key.
  2. A small endpoint on your backend that signs a JWT with that secret key (one HMAC-SHA256 call — payload { sub: userId, proj: projectId }).

See the token endpoint guide for backend examples in Node, Python, Go, etc. — the same recipe works whether your frontend is Angular, React, or anything else.

What you get

  • <mantl-chat> — drop-in chat panel as a standalone Angular component. Inputs cover the auth options (tokenUrl / getToken / token), tools, position, and default-open behavior; outputs emit navigate and tokenError events.

The chat code is lazy-loaded on mount — React, the panel UI, streamdown markdown rendering, and KaTeX styles only enter your bundle when <mantl-chat> is actually rendered. The bridge itself is ~3.5 KB.

How it works (and why it includes React)

This SDK is a thin Angular wrapper around @getmantl/react. The chat panel, message rendering, streaming, shadow-DOM markdown isolation, and resize handling all live in React internally — Mantl's React SDK is the source of truth for UI, and this Angular package mounts that React tree into a DOM node owned by the Angular component.

For you as a customer that means:

  • You write Angular bindings — [input], (output), dependency injection — nothing in your codebase imports React.
  • Every UI improvement we ship to React reaches Angular customers the same day.
  • The bundle cost (~45 KB gzipped of React + ReactDOM, plus the chat panel) is paid lazily, only on the route where you mount <mantl-chat>.

If a future need rules out the React-island approach (e.g. you require zero React in your bundle), open an issue — a parallel pure-Angular implementation is on the table once justified by a real use case.

License

MIT