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

@auto-engineer/information-architect

v1.8.0

Published

AI-powered Information Architecture generation that transforms narrative models into UI component specifications.

Readme

@auto-engineer/information-architect

AI-powered Information Architecture generation that transforms narrative models into UI component specifications.


Purpose

Without @auto-engineer/information-architect, you would have to manually design component hierarchies from business requirements, maintain consistency across atomic design layers, and validate composition references by hand.

This package generates structured UI component architectures from business flow models. It uses AI to analyze narrative models and produces specifications for atoms, molecules, organisms, and pages following Atomic Design methodology.


Installation

pnpm add @auto-engineer/information-architect

Quick Start

Register the handler and generate an IA scheme:

1. Register the handlers

import { COMMANDS } from '@auto-engineer/information-architect';
import { createMessageBus } from '@auto-engineer/message-bus';

const bus = createMessageBus();
COMMANDS.forEach(cmd => bus.registerCommand(cmd));

2. Send a command

const result = await bus.dispatch({
  type: 'GenerateIA',
  data: {
    modelPath: './.context/schema.json',
    outputDir: './.context',
  },
  requestId: 'req-123',
});

console.log(result);
// → { type: 'IAGenerated', data: { outputDir: './.context', schemaPath: './.context/auto-ia-scheme.json' } }

The command generates auto-ia-scheme.json with atoms, molecules, organisms, and pages.


How-to Guides

Run via CLI

auto generate:ia --output-dir=./.context --model-path=./.context/schema.json

Run via Script

pnpm generate-ia-schema ./.context

Run Programmatically

import { processFlowsWithAI, validateCompositionReferences } from '@auto-engineer/information-architect';

const iaSchema = await processFlowsWithAI(model, uxSchema, undefined, existingAtoms);
const errors = validateCompositionReferences(iaSchema, atomNames);

Handle Errors

if (result.type === 'IAGenerationFailed') {
  console.error(result.data.error);
}

if (result.type === 'IAValidationFailed') {
  console.error('Composition validation errors:', result.data.errors);
}

Enable Debug Logging

DEBUG=auto:information-architect:* pnpm generate-ia-schema ./.context

API Reference

Exports

import {
  COMMANDS,
  InformationArchitectAgent,
  processFlowsWithAI,
  validateCompositionReferences,
} from '@auto-engineer/information-architect';

import type {
  GenerateIACommand,
  IAGeneratedEvent,
  IAGenerationFailedEvent,
  IAValidationFailedEvent,
  AIAgentOutput,
  UXSchema,
  ValidationError,
} from '@auto-engineer/information-architect';

Commands

| Command | CLI Alias | Description | |---------|-----------|-------------| | GenerateIA | generate:ia | Generate IA scheme from narrative model |

GenerateIACommand

type GenerateIACommand = Command<'GenerateIA', {
  modelPath: string;
  outputDir: string;
  previousErrors?: string;
}>;

processFlowsWithAI

function processFlowsWithAI(
  model: Model,
  uxSchema: UXSchema,
  existingSchema?: object,
  atoms?: { name: string; props: { name: string; type: string }[] }[],
  previousErrors?: string
): Promise<AIAgentOutput>

validateCompositionReferences

function validateCompositionReferences(
  schema: unknown,
  designSystemAtoms?: string[]
): ValidationError[]

Returns errors when components reference non-existent dependencies.

ValidationError

interface ValidationError {
  component: string;
  type: 'molecule' | 'organism';
  field: string;
  invalidReferences: string[];
  message: string;
}

Architecture

src/
├── index.ts
├── ia-agent.ts
├── types.ts
├── auto-ux-schema.json
└── commands/
    └── generate-ia.ts

The following diagram shows the generation flow:

flowchart TB
    A[GenerateIA] --> B[Load Model]
    B --> C[Flatten Client Specs]
    C --> D[Extract Design System Atoms]
    D --> E[Generate via AI]
    E --> F[Validate Compositions]
    F --> G{Valid?}
    G -->|Yes| H[IAGeneratedEvent]
    G -->|No| I[IAValidationFailedEvent]

Flow: Command loads model, processes specs, generates IA via AI, validates compositions.

Composition Rules

  • Atoms do NOT compose other atoms
  • Molecules compose ONLY atoms
  • Organisms compose atoms AND molecules (never other organisms)
  • Pages can reference organisms, molecules, and atoms

Dependencies

| Package | Usage | |---------|-------| | @auto-engineer/ai-gateway | AI text generation | | @auto-engineer/message-bus | Command/event infrastructure | | @auto-engineer/narrative | Model type definitions | | fast-glob | File pattern matching |