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 🙏

© 2025 – Pkg Stats / Ryan Hefner

jupiter-xbrl-viewer-typescript

v1.0.2

Published

Angular XBRL Viewer Component - Display XBRL taxonomies and financial reports with interactive visualization

Downloads

343

Readme

@fidesque/ngx-xbrl-viewer

A powerful Angular component library for displaying XBRL (eXtensible Business Reporting Language) documents with interactive fact highlighting and concept exploration.

✨ Features

  • Display XBRL reports with interactive highlighting
  • Support for Inline XBRL (iXBRL) documents
  • Concept tree navigation (Presentation, Calculation, Anchoring)
  • Fact value inspection with context details
  • Multi-report support with tabbed interface
  • Resizable panels with persistent state
  • Calculation validation and children highlighting
  • Angular 14-18+ compatible
  • TypeScript support with full type definitions
  • Customizable notifications and dialogs

📦 Installation

npm install @fidesque/ngx-xbrl-viewer

Peer Dependencies

npm install @angular/common@^14.0.0 @angular/core@^14.0.0 rxjs@^7.0.0

Optional Dependencies

# For Material dialogs (optional)
npm install @angular/material@^14.0.0

# For toast notifications (optional)
npm install ngx-toastr@^14.0.0

🚀 Quick Start

1. Import Module

import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { XbrlViewerModule } from '@fidesque/ngx-xbrl-viewer';

@NgModule({
  imports: [
    BrowserModule,
    XbrlViewerModule.forRoot({
      assetPath: 'assets/ngx-xbrl-viewer',
      enableHighlighting: true
    })
  ],
  declarations: [AppComponent],
  bootstrap: [AppComponent]
})
export class AppModule { }

2. Configure Assets

In angular.json:

{
  "assets": [
    "src/favicon.ico",
    "src/assets",
    {
      "glob": "**/*",
      "input": "node_modules/@fidesque/ngx-xbrl-viewer/assets",
      "output": "/assets/ngx-xbrl-viewer"
    }
  ]
}

3. Use Component

import { Component } from '@angular/core';
import { XbrlData } from '@fidesque/ngx-xbrl-viewer';

@Component({
  selector: 'app-viewer',
  template: `
    <xbrl-viewer
      [data]="xbrlData"
      [reportFiles]="reportFiles"
      [viewMode]="'full'"
      (conceptSelected)="onConceptSelected($event)">
    </xbrl-viewer>
  `
})
export class ViewerComponent {
  xbrlData: XbrlData = { /* your XBRL data */ };
  reportFiles = [{ name: 'report.xhtml', iframeSrc: 'https://...' }];

  onConceptSelected(event: any) {
    console.log('Concept selected:', event);
  }
}

📖 Documentation

Component Inputs

| Input | Type | Default | Description | |-------|------|---------|-------------| | data | XbrlData | required | XBRL taxonomy data | | reportFiles | XbrlReportFile[] | [] | Array of report files | | reportUrl | string | '' | Single report URL (legacy) | | height | number | 600 | Container height in pixels | | viewMode | ViewMode | 'full' | UI visibility mode | | theme | 'light' \| 'dark' | 'light' | Visual theme | | enableHighlighting | boolean | true | Enable fact highlighting | | showTabs | boolean | true | Show tab navigation |

Component Outputs

| Output | Type | Description | |--------|------|-------------| | conceptSelected | EventEmitter<ConceptSelectedEvent> | Emitted when concept is clicked | | factSelected | EventEmitter<FactSelectedEvent> | Emitted when fact is clicked | | viewerReady | EventEmitter<ViewerReadyEvent> | Emitted when viewer is initialized | | viewerError | EventEmitter<ViewerErrorEvent> | Emitted on error | | validationRequested | EventEmitter<void> | Emitted when validation requested | | transformRequested | EventEmitter<void> | Emitted when transform requested |

Custom Notification Service

import { Injectable } from '@angular/core';
import { ToastrService } from 'ngx-toastr';
import { XbrlNotificationService } from '@fidesque/ngx-xbrl-viewer';

@Injectable()
export class CustomNotificationService implements XbrlNotificationService {
  constructor(private toastr: ToastrService) {}

  showError(title: string, message: string): void {
    this.toastr.error(message, title);
  }

  showSuccess(title: string, message: string): void {
    this.toastr.success(message, title);
  }

  showWarning(title: string, message: string): void {
    this.toastr.warning(message, title);
  }

  showInfo(title: string, message: string): void {
    this.toastr.info(message, title);
  }
}

// Provide in module
@NgModule({
  providers: [
    { 
      provide: 'XbrlNotificationService', 
      useClass: CustomNotificationService 
    }
  ]
})
export class AppModule { }

🎯 View Modes

| Mode | Preview Tab | Other Tabs | Validate Button | |------|-------------|------------|-----------------| | full | ✅ | ✅ | ✅ | | no_preview | ❌ | ✅ | ✅ | | no_validate_full | ✅ | ✅ | ❌ | | preview_only | ✅ | ❌ | ❌ |

🔧 Advanced Configuration

XbrlViewerModule.forRoot({
  assetPath: 'assets/ngx-xbrl-viewer',
  enableHighlighting: true,
  enableCache: true,
  defaultHeight: 700,
  defaultViewMode: 'full',
  notificationService: CustomNotificationService
})

🤝 Contributing

Contributions are welcome! Please read our contributing guidelines.

📄 License

MIT © Fidesque

🐛 Issues

Report issues at: https://github.com/fidesque/ngx-xbrl-viewer/issues

📚 Learn More