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

@data360/mcp-ui-angular

v0.0.1

Published

Angular components for presenting Data360 MCP tool output (Vega-Lite chart card).

Downloads

122

Readme

@data360/mcp-ui-angular

Angular standalone components for presenting Data360 MCP tool output, aligned with the React @data360/mcp-ui chart card and the shared @data360/mcp-viz-core pipeline.

Install

npm install @data360/mcp-ui-angular @data360/mcp-viz-core @data360/tool-types vega vega-lite vega-embed

@data360/tool-types is optional but recommended for parsing MCP tool results before passing a spec into the component.

Vega chart card

Import Data360VegaChartCardComponent and add it to your standalone component’s imports (or declare it in an NgModule).

import { Component, OnInit } from "@angular/core";
import {
  parseData360VizToolResult,
  isData360VizToolSuccess,
} from "@data360/tool-types";
import type { VLSpec } from "@data360/mcp-viz-core";
import { Data360VegaChartCardComponent } from "@data360/mcp-ui-angular";

@Component({
  selector: "app-chart",
  standalone: true,
  imports: [Data360VegaChartCardComponent],
  template: `
    <data360-vega-chart-card
      [spec]="spec"
      [subtitle]="subtitle"
      [source]="source"
      [annotations]="annotations"
    />
  `,
})
export class ChartExampleComponent implements OnInit {
  spec!: VLSpec;
  subtitle = "Brazil, India · 2018–2022";
  source = "World Bank — WDI";
  annotations = [{ id: 1, text: "Example callout." }];

  // Replace with your MCP tool result payload.
  toolResult: unknown = {};

  async ngOnInit() {
    const parsed = parseData360VizToolResult(this.toolResult);
    if (!parsed.success || !isData360VizToolSuccess(parsed.data)) return;
    const specResponse = await fetch(parsed.data.url);
    this.spec = await specResponse.json();
  }
}

Right-rail top slot (React railTopSlot)

Pass an ng-template to [railTopSlot] for optional content above the action icons (e.g. expand in chat):

<ng-template #railTop>
  <button type="button">Expand</button>
</ng-template>

<data360-vega-chart-card [spec]="spec" [railTopSlot]="railTop" />

Optional handlers

Same contract as React: [onDownload] and [onExport] accept callbacks; if omitted, the component triggers default CSV / PNG downloads in the browser.

Peer dependencies

| Package | Notes | |--------|--------| | @angular/core, @angular/common | 18.x–20.x (see package.json peer range) | | @data360/mcp-viz-core | Same major/minor as this package | | rxjs | ^7.5 | | vega, vega-lite, vega-embed | Same as React viz card |

Development

From packages/mcp-ui-angular:

npm install
npm run build

Output is written to dist/ (FESM bundles and typings for publishing).

Live demo app

A runnable sample app lives in packages/mcp-ui-angular-demo. From that folder: npm run build:libs, then npm install, then npm start (see its README).

Version coupling

Keep versions aligned across @data360/tool-types, @data360/mcp-viz-core, @data360/mcp-ui, and @data360/mcp-ui-angular when viz contracts or prepareSpec behavior changes (see packages/mcp-ui compatibility table).