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

@equinor/fusion-framework-dev-portal

v5.0.1

Published

Minimal development portal for building and testing Fusion Framework applications locally.

Downloads

7,539

Readme

@equinor/fusion-framework-dev-portal

Minimal development portal for building and testing Fusion Framework applications locally.

What Is It?

@equinor/fusion-framework-dev-portal provides a lightweight portal shell that mirrors the production Fusion portal layout — header, context selector, bookmark side sheet, person settings, and application routing — without the full production overhead. It is the portal component loaded by @equinor/fusion-framework-dev-server and @equinor/fusion-framework-cli when running apps locally.

Use this package when you need a portal host for local app development. For the recommended development workflow, pair it with @equinor/fusion-framework-dev-server.

Key Concepts

  • Portal shell: A React application that renders the top bar, context selector, and an app mounting area.
  • Application loader: Dynamically initializes and mounts a Fusion app by its appKey, handling manifest resolution, script loading, and teardown.
  • Framework modules: The portal pre-configures telemetry, navigation, bookmarks, feature flags, analytics, AG Grid, and service integrations so loaded apps inherit a realistic environment.
  • Context navigation: When an app uses the context module, the portal synchronizes URL navigation with context changes automatically.

Installation

pnpm add @equinor/fusion-framework-dev-portal

Environment Variables

Set these in a .env file or in your server environment:

| Variable | Required | Description | |---|---|---| | FUSION_MSAL_CLIENT_ID | Yes | MSAL application client ID for authentication | | FUSION_MSAL_TENANT_ID | Yes | Azure AD tenant ID for authentication | | FUSION_SERVICE_DISCOVERY_URL | Yes | URL for the Fusion service discovery endpoint | | FUSION_SERVICE_SCOPE | Yes | OAuth scopes for service requests | | FUSION_SPA_AG_GRID_KEY | No | AG Grid Enterprise license key — silences console warnings locally |

AG Grid License

To suppress AG Grid Enterprise license warnings during local development:

  1. Add FUSION_SPA_AG_GRID_KEY=<your-key> to your .env file.
  2. Start the dev portal with pnpm start.
  3. Verify the browser console shows no AG Grid license warnings.

The license key is only used locally and must not be committed to the repository.

Quick Start

pnpm start

This launches the dev server with the portal loaded.

Public API

The package exports a single render function that mounts the portal into a DOM element:

import { render } from '@equinor/fusion-framework-dev-portal';

const el = document.createElement('div');
el.id = 'dev-portal';
document.body.appendChild(el);

// `framework` is a pre-configured Fusion Framework instance with Service Discovery and MSAL
render(el, { ref: framework });

Usage with @equinor/fusion-framework-dev-server

The dev server loads this portal automatically. A typical integration looks like:

import { createDevServer } from '@equinor/fusion-framework-dev-server';

const portalId = '@equinor/fusion-framework-dev-portal';
const devServer = await createDevServer({
  spa: {
    templateEnv: {
      portal: {
        id: portalId,
        tag: 'latest',
      },
    },
  },
  api: {
    serviceDiscoveryUrl: 'https://location.of.your.service.discovery',
  },
});

Architecture

The portal is composed of these internal parts:

  • render — Entry point; creates a React root with theme, framework, and people-resolver providers.
  • configure — Configures all framework modules (telemetry, navigation, bookmarks, feature flags, analytics, AG Grid, services).
  • Router — Sets up routes with react-router via the navigation module; routes /apps/:appKey/* to the app loader.
  • AppLoader — Resolves, initializes, and mounts a Fusion app by key; handles loading states and errors.
  • Header — Top bar with the Fusion logo, context selector, bookmark toggle, and person settings.
  • ContextSelector — Wired to the current app's context module for searching and selecting context items.
  • useAppContextNavigation — Synchronizes URL pathname with context changes for apps that use the context module.

Constraints

  • This portal is for local development only and is not intended for production deployment.
  • Visuals may differ from the production Fusion portal.
  • The portal assumes MSAL and service discovery are configured in the parent framework instance.