WildflowerJS Reactive JS, No BS*

A no-build reactive JavaScript framework, rooted in the web platform.
No build step. No dependencies. No lock-in.

<script src="wildflower.min.js"></script> ...and start building.

Back to Basics

The code you write is 100% web standard code. HTML stays HTML. JavaScript stays JavaScript. CSS stays CSS. No JSX, no templating language, no custom syntax to learn. If you know the web platform, you already know how to use this.

WildflowerJS extends the web platform. It doesn't replace it.

Your Development Simplified

Because you develop with 100% web standards, every tool in your existing chain already understands the code: IDE, browser DevTools, linter, formatter, screen reader, SEO crawler. Nothing to install, no custom file types, no sourcemaps. Save the file, refresh, and your change is live.

Just be a web developer.

Batteries Included: One Mental Model

Router, SSR, stores, computed properties, two-way binding, event modifiers, data pools, and TypeScript types, all built in, all speaking the same language. Learn data-bind once and you know binding everywhere: lists, pools, stores, forms. There's no five-library stack to keep in sync.

One script tag. Everything you need.

<div data-component="counter">
  <span data-bind="count"></span>
  <button data-action="increment">
    +1
  </button>
</div>

<script>
wildflower.component('counter', {
  state: { count: 0 },
  increment() { this.count++ }
})
</script>

How It Works

data-bind connects state to the DOM.

data-action connects events to methods.

this.count++ triggers a precise DOM update.

Mutate state. The DOM updates.

Two Reactivity Modes

data-list for automatic reactivity: mutate state, DOM updates. data-pool for explicit control: plain objects, zero proxy overhead, you say what changed.

Same template syntax. Different performance profile. From interactive forms to per-frame particle systems. You choose the right tradeoff for the job.

Try it. Right-click, inspect this demo. Every dot is a real DOM element.

See full demo →

* Build Step

Zero Toolchain

Modern frameworks ask you to install a compiler, a bundler, a package manager, hundreds of fragile transitive dependencies, and a framework-specific file format, before you write a single line of your application.

WildflowerJS was built starting from a single principle: no build step, no tooling. Ever.

WildflowerJS asks you to add a script tag.

There's no CLI scaffolding step, no config files, no .vue/.jsx/.svelte source format. You don't debug through sourcemaps or wait on a build pipeline. Your project has zero dependencies.

Performance isn't a tradeoff. Build steps optimize bundle delivery, not the runtime work that follows it. WildflowerJS writes directly to the DOM, with no virtual DOM or reconciliation pass between state change and update, so it doesn't need a build step to be fast.

The framework is full-featured without the toolchain: router, SSR, stores, computed properties, transitions, pools. You don't need a toolchain to use any of it.

my-app/
  index.html
  app.js
  style.css
  wildflower.min.js

That's the entire project. No package.json.
No node_modules. No config files. Ship it.

Zero Install. Zero Attack Surface.

Every dependency you install is trust extended to a maintainer you've never met, running scripts on your dev machine and in your CI. A typical React + Vite + UI‑lib setup pulls in 300+ transitive packages before you write a feature.

Each one is a potential intrusion vector. NPM worms, OAuth chains compromising deploy platforms, postinstall hijacking: the supply chain is now where production code gets compromised, not the deploy. And signing isn't a backstop: Mini Shai‑Hulud (May 2026) compromised 170+ packages whose malicious versions carried valid SLSA Build Level 3 provenance, because the attestation came from build infrastructure the worm had already taken over.

WildflowerJS users don't have this attack surface, by construction. There is no npm install, no postinstall script, no transitive package graph. The framework is one file you copy or pin by hash.

As of v1.1, the same holds for building the framework itself. WildflowerJS bundles with a vendored rollup and terser pipeline pulled as three SHA‑512‑pinned tarballs: no npm install, no transitive packages, no postinstall scripts in the build path. The entire toolchain is three files you verify by hash.

Zero dependencies is the absence of a problem the rest of the industry has not properly addressed.

A typical React/Vue project:

  npm install
  ├── hundreds of packages
  ├── from hundreds of maintainers
  ├── postinstall scripts run on install
  └── tens to hundreds of MB of transitive code

WildflowerJS:

  <script src="wildflower.min.js"></script>
  └── 1 file.
      No transitive dependencies.

Zero Lock-in

WildflowerJS works with the DOM, not instead of it. There's no virtual DOM intercepting your code and no compiler rewriting your markup. The render cycle is yours.

That means Leaflet, DataTables, Chart.js, D3, Three.js, any library that touches the DOM, just works. No wrapper packages or framework-specific escape hatches required. Drop in a script tag and use it.

Because your code is standard HTML and JavaScript, you're never locked in. Your skills transfer and your code is more portable. If you outgrow the framework, your knowledge doesn't expire.

This also means your "ecosystem" is all of the world of vanilla JS. Without compromises or hacks.

<!-- Use any library directly -->
<div data-component="map-view">
  <div id="map" style="height: 400px"></div>
</div>
wildflower.component('map-view', {
  state: { lat: 51.505, lng: -0.09 },
  init() {
    // Leaflet works as-is. No wrappers.
    this._map = L.map('map')
      .setView([this.lat, this.lng], 13);
    L.tileLayer('https://{s}.tile.osm.org'
      + '/{z}/{x}/{y}.png').addTo(this._map);
  }
})

Precise Reactivity

When you write this.count++, WildflowerJS updates the single DOM node bound to count. Nothing else is touched. There's no tree diffing or reconciliation pass to figure that out.

This isn't a tradeoff. You get fine-grained updates and a simple mental model. Change a property, the bound element updates. That's the entire reactivity model.

Other frameworks ask you to learn signals, accessors, memos, effects, and subscription lifecycles to achieve what WildflowerJS does with a property assignment.

wildflower.component('dashboard', {
  state: {
    users: 1420,
    status: 'healthy'
  },
  computed: {
    summary() {
      return this.users + ' users, ' + this.status;
    }
  },
  refresh() {
    this.users = 1421;
    // Only the elements bound to 'users'
    // and 'summary' update. Everything
    // else on the page is untouched.
  }
})

One Reactivity Model. Everywhere.

Components, Stores, and Plugins all share the same reactive foundation. State, computed properties, and methods work identically no matter where they live. Learn it once, it works the same way in a UI component, a global store, or a framework plugin.

Other frameworks make you learn a different system for each layer. React components use hooks, but stores need Redux or Zustand, which are completely different APIs. Vue components use reactive data, but Pinia stores have their own patterns. Every layer is a new mental model.

In WildflowerJS, there's one model. A store is a component without a template. A plugin is an entity that extends the framework itself, adding directives, lifecycle hooks, and services. The same this.count++ triggers the same reactivity everywhere.

This unlocks patterns other frameworks can't express. A store can run headless physics simulations with tick(), feeding data into a component that renders it through a pool, all using the same reactive primitives, no glue code required.

// Component: reactive UI
wildflower.component('cart', {
  state: { items: [] },
  computed: {
    total() { return this.items.length; }
  }
})

// Store: global shared state
wildflower.store('user', {
  state: { name: '', role: 'guest' },
  computed: {
    isAdmin() { return this.role === 'admin'; }
  }
})

// Plugin: extends the framework
wildflower.plugin({
  name: 'notifications',
  state: { items: [], unreadCount: 0 },
  computed: {
    hasUnread() { return this.unreadCount > 0; }
  },
  add(msg) { this.items.push(msg); this.unreadCount++; }
})
// Access globally: wildflower.$notifications.add(...)

// Same state. Same computed. Same methods.

Data Pools

Every framework wraps collection items in reactive proxies, whether the item needs it or not. WildflowerJS gives you a choice: data-list for push reactivity (automatic), data-pool for pull reactivity (explicit control, zero proxy overhead).

Pools render plain objects with the same template syntax as lists. Mutate the object, call markDirty(), and only that item updates. Full CRUD, selection, bulk operations, all faster than the push-reactive path.

And because pools use pull-based rendering, they scale to simulations, games, particle systems, and data visualizations at native frame rate. Use cases that would choke a virtual DOM. No other framework has anything like this.

<div data-component="user-table">
  <tbody data-pool="users" data-key="id">
    <template>
      <tr>
        <td data-bind="name"></td>
        <td data-bind="status"
            data-bind-class="status === 'active'
              ? 'badge success'
              : 'badge inactive'"></td>
      </tr>
    </template>
  </tbody>
</div>
wildflower.component('user-table', {
  pools: { users: {} },

  init() {
    // Populate: plain objects, no proxies
    data.forEach(u => this.pools.users.add(u));
  },

  // Optional: add tick() and the same pool
  // renders every frame. Same template, same
  // data, different rendering frequency.
  // That's the only difference between a
  // display table and a particle system.
})

Built for AI-Assisted Development

Because WildflowerJS is standard HTML and JavaScript, AI code assistants already know how to write it. There's no custom syntax to hallucinate or compiler quirks to work around. The code an AI generates runs exactly as written, with no build step between generation and execution.

We go further. WildflowerJS ships an AI-optimized reference page with patterns, anti-patterns, and examples designed for code generation context windows. Our llms.txt file follows the llms.txt convention for machine-readable documentation.

And for structured app generation, our Universal App Manifest lets you describe an entire application as a JSON schema (components, state, computed properties, methods, templates) and have an AI generate the working code from the manifest, mediated through framework-specific idiom files.

You: "Build me a todo app with
WildflowerJS"

AI reads llms.txt or ai-assistant.html
     ↓
Generates standard HTML + JS
     ↓
<div data-component="todo-app">
  <input data-model="newItem">
  <button data-action="addItem">
    Add
  </button>
  <ul data-list="items">
    <template>
      <li data-bind="text"></li>
    </template>
  </ul>
</div>
     ↓
Open in your browser. It works, and you can read and understand the code.

Reactivity System

WildflowerJS uses a fine-grained, context-based reactivity system that provides surgical DOM updates without utilizing a virtual DOM.

Key Concept: Unlike frameworks that diff virtual DOM trees or re-render entire components, WildflowerJS tracks individual binding contexts and updates only the specific DOM nodes that need to change.
Unified Core: Components, stores, plugins, and pool entities all share the same ReactiveStateManager. This single reactivity engine provides Proxy-based state, computed properties, subscriptions, and DOM binding everywhere. One system to learn, minimal code overhead, consistent behavior across all parts of your application.
Reactivity Flow Diagram
In a Nutshell. Four Rules:
  1. State is plain JavaScript objects.
  2. Mutations automatically trigger updates.
  3. Bindings track the properties they read.
  4. DOM updates are batched and precise.

Natural JavaScript mutations just work:

this.count++
this.items.push(newItem)
this.user.name = "Jane"

Multiple changes in the same synchronous block are batched into a single microtask flush: three mutations, one DOM update.

Fine-Grained Reactivity

When you create bindings with data-bind, data-list, or other directives, WildflowerJS creates a context for each binding. These contexts form the unit of reactivity:

Virtual DOM Approach
  1. State changes
  2. Re-render entire component to virtual DOM
  3. Diff old vs new virtual DOM trees
  4. Patch real DOM with differences
Context-Based Approach (WildflowerJS)
  1. State changes
  2. Look up affected contexts by path
  3. Update only those specific DOM nodes

How It Works

Consider this component with multiple bindings:

<div data-component="user-profile">
    <h1 data-bind="name"></h1>          <!-- Context #1 -->
    <p data-bind="bio"></p>             <!-- Context #2 -->
    <span data-bind="followers"></span> <!-- Context #3 -->
    <span data-bind="following"></span> <!-- Context #4 -->
</div>
wildflower.component('user-profile', {
    state: {
        name: 'Jane',
        bio: 'Developer',
        followers: 1000,
        following: 50
    },

    updateFollowers(count) {
        // Only Context #3 updates - other DOM nodes untouched
        this.followers = count
    }
})

When followers changes:

  • The framework looks up which contexts depend on the followers path
  • Only Context #3 (the followers span) is updated
  • The name, bio, and following elements are not touched
  • No virtual DOM diffing or component re-render occurs

Context Hierarchy

Contexts form a hierarchy that mirrors your component structure:

Component Context (user-profile)
├── Binding Context (name)
├── Binding Context (bio)
├── List Context (posts)
│   ├── Item Context [0]
│   │   ├── Binding Context (posts[0].title)
│   │   └── Binding Context (posts[0].likes)
│   └── Item Context [1]
│       ├── Binding Context (posts[1].title)
│       └── Binding Context (posts[1].likes)
└── Conditional Context (showDetails)

This hierarchy enables:

  • Scoped updates: Changing posts[0].title only updates that specific binding
  • Efficient cleanup: Removing a list item cleans up all its child contexts
  • Dependency tracking: Cross-component dependencies are tracked at the context level

Keyed List Rendering

WildflowerJS uses reactive list reconciliation to minimize DOM mutations. Each list item is tracked by identity, and per-item reactive effects ensure that only changed bindings update.

List Reconciliation

WildflowerJS uses a reactive mapArray approach for list rendering. When the array changes, the framework reconciles by identity, matching existing items by key, detecting adds, removes, and moves, and only touching the DOM for what actually changed:

Change What Happens
Append New DOM elements created and appended; existing items untouched
Remove Removed items' DOM elements destroyed; remaining items untouched
Reorder DOM nodes moved to match new order; no re-creation
Property change Per-item reactive effects detect the changed property and update only that binding

Structural Changes

Adding, removing, and reordering items all go through identity-based reconciliation:

// Append: creates DOM only for new items
this.items.push({ id: 4, text: 'New item' })

// Remove: destroys only the removed item's DOM
this.items.splice(2, 1)

// Reorder: moves existing DOM nodes, no re-creation
const temp = this.rows[0]
this.rows[0] = this.rows[2]
this.rows[2] = temp

Per-Item Property Updates

When you change a property on an existing list item, only that item's affected bindings update; other items are untouched:

// Only the status binding on item 5 updates
this.items[5].status = 'completed'

// Each item's affected binding updates independently
this.items[2].name = 'Updated'
this.items[7].count = 42
<ul data-list="items">
    <template>
        <li>
            <span data-bind="name"></span>      <!-- Updated if name changed -->
            <span data-bind="status"></span>    <!-- Updated if status changed -->
            <span data-bind="count"></span>     <!-- Updated if count changed -->
        </li>
    </template>
</ul>

Automatic Keyed Rendering

WildflowerJS automatically enables keyed rendering when your list items have an id property. No additional configuration is required:

// Keyed rendering is automatic when items have 'id'
state: {
    users: [
        { id: 1, name: 'Alice' },   // Tracked by id: 1
        { id: 2, name: 'Bob' }      // Tracked by id: 2
    ]
}

// Without 'id', items are tracked by array index
state: {
    tags: ['urgent', 'review', 'done']  // Tracked by index: 0, 1, 2
}

When items have an id property, the framework:

  • Tracks each item by identity across array mutations
  • Detects adds, removes, and reorders without re-creating DOM
  • Preserves DOM state (focus, scroll position, form values) for unchanged items
  • Runs per-item reactive effects that update only changed bindings

Why Keys Matter

Consider reordering a list. Without stable keys, the framework must assume items at each index changed:

// Before: ['Alice', 'Bob', 'Charlie']
// After:  ['Charlie', 'Alice', 'Bob']

// Without keys: Updates ALL 3 items (index 0, 1, 2 all changed)
// With keys:    Detects reorder, updates only positions

With keyed items, the framework recognizes that the same items exist in a different order and can optimize accordingly.

Batch Updates

Multiple state changes are automatically batched:

updateUser() {
    // These are batched into a single render cycle
    this.user.name = 'New Name'
    this.user.email = 'new@email.com'
    this.user.role = 'admin'
    // DOM updated once, not three times
}

The framework uses microtask scheduling to batch updates that occur in the same JavaScript execution context.

Cross-Entity Automatic Dependency Tracking

WildflowerJS provides automatic dependency tracking when accessing stores, components, or plugins from within computed properties. The framework detects property access and registers dependencies automatically - no manual subscriptions needed.

Unified Reactivity: Components, stores, and plugins all share the same reactive infrastructure. When you access any entity's state in a computed property, the framework automatically tracks the dependency.

Store Access: getStore()

Use wildflower.getStore() in computed properties for automatic store dependency tracking:

// Create a store
wildflower.store('cart', {
    state: { items: [], total: 0 },
    computed: {
        itemCount() { return this.items.length; }
    },
    addItem(item) {
        this.items.push(item);
        this.total += item.price;
    }
});

// Component automatically reacts to store changes
wildflower.component('cart-badge', {
    computed: {
        // Automatic dependency tracking - no subscribe() needed!
        count() {
            return wildflower.getStore('cart').items.length;
        },
        total() {
            return wildflower.getStore('cart').total;
        }
    }
});

When cart.state.items changes, the count computed property automatically re-evaluates and updates the DOM.

Tip: For components that regularly access stores, the subscribe block with this.stores shorthand is the recommended pattern. See Basic Stores for details.

Component Access: getComponent()

Use wildflower.getComponent() in computed properties to read from other components with automatic tracking:

// Source component with state
wildflower.component('theme-manager', {
    state: { mode: 'light', primaryColor: '#007bff' }
});

// Observer component automatically tracks theme changes
wildflower.component('themed-panel', {
    computed: {
        themeClass() {
            const theme = wildflower.getComponent('theme-manager');
            return theme ? 'theme-' + theme.mode : 'theme-light';
        },
        panelStyle() {
            const theme = wildflower.getComponent('theme-manager');
            return theme ? { borderColor: theme.primaryColor } : {};
        }
    }
});

When theme-manager.state.mode changes, all components using getComponent('theme-manager') in their computed properties automatically update.

Plugin Access: $pluginName

Access plugins via wildflower['$pluginName'] with automatic dependency tracking:

// Register a plugin with reactive state
wildflower.plugin({
    name: 'auth',
    state: {
        isLoggedIn: false,
        user: null
    },
    login(user) {
        this.isLoggedIn = true;
        this.user = user;
    },
    logout() {
        this.isLoggedIn = false;
        this.user = null;
    }
});

// Component automatically tracks plugin state
wildflower.component('user-menu', {
    computed: {
        showLoginButton() {
            const auth = wildflower['$auth'];
            return auth ? !auth.isLoggedIn : true;
        },
        userName() {
            const auth = wildflower['$auth'];
            return auth?.user?.name || 'Guest';
        }
    }
});

When the auth plugin's isLoggedIn state changes, all dependent computed properties re-evaluate automatically.

How Automatic Tracking Works

When a computed property is evaluated:

  1. The framework wraps entity access (getStore, getComponent, plugin accessors) in tracking proxies
  2. Property accesses on the returned entity are detected
  3. The component is registered as a dependent of those specific properties
  4. When those properties change, the computed property is re-evaluated
  5. Only the specific DOM bindings using that computed property update
Best Practice: Use these methods in computed properties for automatic tracking. In regular methods or init(), you may need to use subscribe() for reactive updates.

Preferred: $ Universal Entity Accessor

Access state from any entity directly in HTML templates. No computed wrappers needed:

<!-- Bind to another component's state -->
<span data-bind="$parent-component.count"></span>

<!-- Bind to a store's state or computed -->
<span data-bind="$my-store.value"></span>
<span data-bind="$my-store.computedTotal"></span>

<!-- Works in all data-* attributes -->
<div data-show="$auth.isLoggedIn">Welcome!</div>
<div data-list="$cart.items" data-key="id">...</div>

Performance Characteristics

Strengths
  • Direct context lookup for updates
  • No virtual DOM memory overhead
  • Automatic array operation detection
  • Zero-config swap and append optimization
  • Minimal DOM mutations
Tradeoffs
  • Memory for context registry
  • Initial context creation overhead
  • Garbage collection for context cleanup

Best Practices

For Lists

  • Always include an id property on list items to enable keyed rendering
  • Prefer push() for appending items (triggers append optimization)
  • Mutate items in place when possible for sparse updates
  • Avoid unnecessary array recreation when updating individual items

For General Reactivity

  • Keep state flat when possible
  • Batch related state changes together
  • Use computed properties for derived state
  • Leverage the automatic dependency tracking
// Good - mutation triggers sparse update
this.items[idx].completed = true

// Good - push triggers append optimization
this.items.push(newItem)

// Less optimal - full array replacement
this.items = this.items.map(item =>
    item.id === id ? { ...item, completed: true } : item
)