embedded-banking-architecture

Define React/TypeScript monorepo architecture patterns for component structure and file organization.

18|8|Updated May 31, 2023
One-click install
npx skills add https://github.com/jpmorgan-payments/embedded-finance --skill embedded-banking-architecture
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: embedded-banking-architecture
Source: https://github.com/jpmorgan-payments/embedded-finance/tree/main/.github/skills/embedded-banking-architecture
Command: npx skills add https://github.com/jpmorgan-payments/embedded-finance --skill embedded-banking-architecture

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a standardized architectural blueprint for the embedded-components monorepo, ensuring consistency in component structure, file organization, and code placement for React/TypeScript projects.

Core Features & Use Cases

  • Component Structure Guidelines: Defines a clear, scalable structure for new components, including hooks, utilities, and forms.
  • Code Organization Principles: Enforces best practices like type colocation and avoiding aggregation barrels for better maintainability and tree-shaking.
  • Use Case: When developing a new feature like a payment widget, this Skill guides you on where to place its associated hooks, utility functions, and sub-components within the monorepo for optimal organization and performance.

Quick Start

Follow the architecture patterns defined in embedded-components/ARCHITECTURE.md when creating new components.

Frequently Asked Questions about embedded-banking-architecture

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I organize files in a React TypeScript monorepo to improve tree-shaking?▼

Organize your React TypeScript monorepo by colocating types with their implementations, placing hooks and utilities in individual files, and avoiding aggregation barrels to optimize tree-shaking and maintainability.

What is the best way to structure new components in an embedded finance architecture?▼

The best way to structure new components in an embedded finance architecture is to follow a clear, scalable pattern that dictates specific placements for associated hooks, utility functions, and sub-components based on feature scope and reusability.

Why should I avoid barrel files in a TypeScript monorepo?▼

You should avoid barrel files in a TypeScript monorepo because aggregation barrels hinder tree-shaking and reduce maintainability; using direct imports for individual hook and util files ensures optimal bundle performance.

Where do I place hooks and utilities when developing a new payment widget feature?▼

When developing a new payment widget feature, place its associated hooks, utility functions, and sub-components within the monorepo by following code placement decisions guided by reusability and feature scope.

Does this React architecture pattern require specific import strategies for utilities?▼

Yes, this React architecture pattern requires direct import strategies for individual hook and util files, enforcing type colocation and avoiding aggregation barrels to ensure optimal tree-shaking and maintainability.