Narmi Tiles

Prev Next

Narmi Tiles make it easy for your institution to show Narmi Application Framework (NAF) apps as interactive cards right on the Narmi Banking dashboard. Instead of just seeing a text link in the Tools menu, customers/members can view and use these apps directly from the dashboard.

How Tiles Work

Each tile is a small web app that works inside the digital banking experience. Tiles run in a secure, separate space, and the platform checks every interaction between a tile and the banking app for safety. Tiles can only do what the Narmi platform allows.

Tiles work on both web and mobile, and appear at the bottom of the dashboard. Note: In the redesigned banking dashboard, Tile placement can be customized. The banking dashboard redesign is currently in beta. Learn more here.

tilesold

Views: Full and Tile

A NAF app can be configured with one or more views:

  • Full – The existing full-screen experience. The app opens on its own, either in a new tab or an iframe, the same way NAF apps have always worked.

  • Tile – A compact card/widget that renders inline on the banking dashboard.

You can enable Full, Tile, both, or neither for a given NAF app from the same NAF app form in Narmi Command.

Tiles are built for single-action interactions: sliders, buttons, toggles, single-tap actions. If a user's task needs more than one step, calling the built-in openFullView() method launches the Full view and carries the user's context with it, so nothing has to be re-entered.

Building a Tile

Two packages make up the developer toolkit:

  • @narmi/tile-studio – A local preview tool you run with npx. It renders your Tile exactly as it will appear inside the banking app and flags design-guardrail violations (like an aspect ratio over 1.15 or an internal scrollbar) as you build, rather than after you ship.

  • @narmi/tile-client-react – A React wrapper that handles the plumbing between your Tile and the banking dashboard: messaging, resize handling, authorization, and the transition to Full view. Wrap your component in <TileClient /> to get a working, native-feeling card with minimal setup.

Underneath these, @narmi/tile-events defines the messages a Tile and the banking app exchange, and @narmi/tile-runtime is the renderer that places Tiles on the dashboard and enforces platform guardrails on both web and mobile. Most developers won't need to work with these directly; they're what tile-client-react and tile-studio are built on.

React is currently the only officially supported framework for Tiles. Because @narmi/tile-events and @narmi/tile-runtime are framework-agnostic, other frameworks can consume them directly, but there's no helper library for them yet.

Working with the Tile Event Bridge

Where a standalone NAF app communicates with its parent frame over iframe-resizer (see Working with the NAF iframe), a Tile communicates with the banking dashboard over the event bridge defined by @narmi/tile-events. @narmi/tile-client-react wraps this bridge for you, handling:

  • Resize and layout messaging – Your Tile's rendered size stays in sync with the space the dashboard has given it. Tiles are container-aware: they resize based on the space the dashboard provides, not the size of the user's screen.

  • Authorization – A Tile requests its auth code through the event bridge rather than receiving it via URL. Users authorize a Tile directly on the dashboard the first time it appears, with no full-screen redirect required.

  • View transitions – Calling openFullView() hands off to the Full view of the same NAF app, carrying the user's context with it.

  • Version handshake: The event bridge is versioned, and a mismatch between the Tile and the runtime blocks the Tile from rendering rather than showing it broken. Compatibility requires the same major version, with the Tile's @narmi/tile-client-react version no newer than the host banking app's @narmi/tile-runtime version. On a mismatch, the Tile refuses to render and fires onVersionFail; wire this to a visible indicator in development so you catch failures quickly.

All messages between a Tile and the banking app are validated, so a Tile can't do anything the platform hasn't explicitly permitted.

<TileClient /> defaults to targetOrigin="*" for local development. This isn't safe for production; pass your online banking domain as targetOrigin before deploying. An incorrect targetOrigin causes the event bridge to silently reject messages.

When previewing locally in Tile Studio, you'll need to manually retrieve an authorization code for the logged-in user; automatic authorization during local preview isn't yet available.

Design Constraints

The platform enforces the following for every Tile:

  • Four supported sizes: small, medium, large, and responsive
  • A tile’s height is always limited to 1.15 times its width, regardless of screen size. Maximum height is 420px (content beyond this limit may be clipped)
  • No internal scrollbars
  • Container-aware responsiveness
  • A version handshake that blocks an incompatible Tile from rendering

tile-studio surfaces a warning the moment a guardrail is broken during local development. This warning only appears in Tile Studio; it isn't shown to end users in production.

Configuring a Tile

Tiles are configured from the same NAF app form used to register any NAF app. Go to Narmi Command and select Extensions > NAF Apps, then register a new app (or edit an existing one) and set the new Views field to Full, Tile, both, or neither. For the full set of NAF app fields and permissions, go to Register a New NAF App.

Restrictions

  • Deployment target is Narmi Functions. Deploying a Tile to external hosting is technically possible but isn't supported for production due to bank-security requirements.
  • Multi-tile display is currently capped at 1–3 tiles per dashboard. This is a policy limit rather than a technical one, and may be revisited.
  • React is the only officially supported framework at this time. Because @narmi/tile-events and @narmi/tile-runtime are framework-agnostic, other frameworks can consume them directly, but the ergonomics are rougher without a helper library. If your main app isn't React, using React just for the Tile itself is a reasonable workaround given how small a Tile's footprint is.

To get started building a Tile, go to our Tiles Quick Start Guide, or contact your Narmi Relationship Manager to discuss enabling Tiles for your institution.

Tile Maintenance

While Narmi provides the framework and toolkit for building Tiles, your financial institution is responsible for developing, maintaining, and troubleshooting your custom code. Narmi Support is unable to review or debug code written by outside sources.

Tiles Quick Start Guide

Here's a brief guide to help you get started building a Narmi Tile. For any questions or if you need assistance, feel free to reach out to us at support@narmi.com.

Note: Tiles work with Narmi Banking (digital banking) only. They render on the digital banking dashboard, not in Narmi Grow (account opening) or Narmi Command (FI staff portal).

Enable Tiles

Before building or testing a Tile, Narmi must enable the following feature flags in Narmi Command:

  • mobile_tiles
  • web_tiles

Prerequisites

A Tile is a View on a NAF app, so you'll need a registered NAF app before you can build one. If you haven't set one up yet, go to Register a New NAF App. Once your app exists, set its Views field to Tile (or both Tile and Full) to enable the dashboard experience described in this guide.

Toolkit Setup

Install the Tiles developer toolkit from npm:

npm install @narmi/tile-studio @narmi/tile-client-react
  • @narmi/tile-client-react wraps your component and handles resize messaging, authorization, and the transition to Full view.

  • @narmi/tile-studio is a local preview tool, run with npx, that renders your Tile the way it will appear on the dashboard and flags design-guardrail violations as you build.

React is currently the only officially supported framework for Tiles.

Sandbox Access

Tiles run within the same sandbox environment as any other NAF app. If you don't already have sandbox access, email sandbox@narmi.com to request it. You'll receive:

  • Your sandbox test account login credentials
  • The Client ID of your NAF app
  • The Client Secret (Shared Secret) of your NAF app
  • The URL of your NAF app

See our Quick Start Guide for the Public API for the full rundown of the differences between the sandbox and production environments.

Previewing Locally with Tile Studio

Run Tile Studio against your component to preview it before deploying:

npx @narmi/tile-studio

Tile Studio renders your Tile at each supported size (small, medium, large, and responsive) and warns you immediately if a guardrail is broken (for example, an aspect ratio over 1.15 or an internal scrollbar). This warning only appears in Tile Studio; it isn't shown to end users in production.

Note: Automatic authorization isn't yet available in local preview. You'll need to manually retrieve an authorization code for your logged-in test user to preview an authorized state.

Understanding Tile Launch

A standalone NAF app in Full view launches through a signed POST request to your redirect URL, which you decode to identify the user (see Understanding App Launch in the Public API Quick Start Guide). A Tile launches differently: instead of a URL-based redirect, your Tile requests its authorization code through the event bridge exposed by @narmi/tile-client-react, and the user authorizes the Tile directly on the dashboard the first time it appears.

Building a Basic Tile

Wrap your component in TileClient to get a working, dashboard-ready card with minimal setup:

jsx

import { TileClient } from '@narmi/tile-client-react';

function MyTile() {
  return (
    <TileClient>
      {/* Your Tile's UI */}
    </TileClient>
  );
}

Design your Tile for a single action: a slider, a button, a toggle, a single tap. If the user needs to complete a multi-step task, hand off to the Full view instead of trying to fit it into the Tile:

js

openFullView();

Calling openFullView() launches the Full view of the same NAF app and carries the user's context with it, so nothing has to be re-entered.

Deploying Your Tile

A copy of the Slate NAF template is a convenient starting point for building a Tile. Fill in the Client ID, Client secret, API root, and session secret from your NAF app in the template's configuration.

Tiles are hosted on Narmi Functions. To deploy:

  1. In Narmi Command, add a new function using the Node.js 22 runtime, starting from scratch.

  2. Upload the frontend and backend zip files for deployment, and add all required variables (API root, Client ID, Client secret, session secret).

  3. Uploading provisions a new frontend and backend Lambda on AWS. Once both endpoints are created, get the frontend and backend URLs; make sure they're on the same domain (see Troubleshooting below).

  4. Copy the suffix of the Narmi Function UUID into vite_function_UUID in your Slate config, and paste the full backend URL into vite_api_base_url.

  5. Zip the app with all variables set and upload the new frontend zip to the function. The resulting frontend URL hosts your full NAF app at /index.html, with the Tile view served at /tile.html.

  6. Paste the frontend URL into the NAF app's Redirect URL field. This URL should be public and visible to users.

  7. Your Tile will appear in the services menu and in Tile view on the dashboard if the NAF app's Views field is configured for it.

Next Steps

Once your Tile passes Tile Studio's guardrail checks and you've tested against your sandbox account, you're ready to move toward production. For the full set of design constraints and platform restrictions, go to Narmi Tiles. If you have questions along the way, reach out to your Narmi Relationship Manager or support@narmi.com.

Troubleshooting

  • CORS – Make sure the Narmi Functions frontend URL is on the same domain as the backend URL; otherwise, the Tile won't work properly on Safari (mobile + web) due to cross-origin cookie blocking.

  • CSP frame-src misconfiguration – A Tile renders inside an iframe on web (or a WebView on mobile). If the Tile's deploy domain is missing from Banking CSP Configuration → frame-src, the Tile silently fails to render with no visible error to the end user. Add the domain before testing.

  • Narmi Function Frontend Domains whitelist – Separate from CSP; this is the whitelist that tells Narmi which frontend domains are allowed to be served at all. Add both this and the CSP frame-src entry; missing either means the Tile can't be served.

  • tile.html vs /tile – The canonical entry point is /tile. The frontend also supports tile.html as a URL path, but only use it if a non-standard deployment requires it.

  • @narmi/tile-client-react ships minified. Expect less readable stack traces when a Tile crashes in production.