archetypic.dev

Where primordial patterns become working code

Section II

The Taxonomy of Patterns

Every system hides a grammar. Every codebase conceals a mythology. Archetypes are the irreducible templates -- the shapes that repeat across domains, across centuries, across every line of code ever written.

The Singleton

One instance to rule them all. The monad. The source from which multiplicity springs.

The Factory

Creation without knowing what will be created. The mold that shapes without being shaped.

The Observer

Watching without interfering. The pattern that listens and responds, never initiates.

The Iterator

Traversal without exposure. Walking through complexity one step at a time, seeing each element in turn.

Section III

The Deep Structure

core structure surface

Beneath every implementation lies a deeper pattern. Beneath that pattern, another. At the center: the archetype itself -- irreducible, universal, waiting to be recognized.

Section IV

Application

Archetypes are not academic curiosities. They are the working blueprints of every system you build. Recognize the pattern. Name it. Then let it guide your architecture.

const archetype = new Pattern({
  name: "observer",
  intent: "decouple the subject from its dependents",
  structure: ["subject", "observer", "notify"]
});

The pattern is complete. The archetype persists.