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.

Migrating from Svelte

Svelte and WildflowerJS share a philosophy: direct mutation, minimal boilerplate, and high performance without a virtual DOM. The key difference is that Svelte requires a compiler to transform .svelte files into JavaScript, while WildflowerJS runs directly in the browser with plain HTML and standard JavaScript. No build step required.

Good news: If you're comfortable with Svelte's direct mutation model (array.push(), obj.prop = val), that mental model transfers directly to WildflowerJS. You won't need to unlearn anything, just learn a different way to express the same ideas.

Mental Model Shift

Before diving into syntax, understand the architectural differences:

Concept Svelte WildflowerJS
Architecture Compiler-based; .svelte files are compiled to optimized JS at build time Runtime-based; plain HTML + JS, no build step needed
Reactivity model Runes ($state, $derived, $effect); compiler transforms assignments into reactive updates Object-based definitions (state, computed, init); proxy-based reactivity at runtime
Component format Single-file components (.svelte) with <script>, markup, and <style> in one file HTML with data-component attributes + separate JS definitions
How reactivity works Implicit; the compiler analyzes assignments and generates reactive code Explicit proxies; the runtime intercepts property access and mutation automatically
Template syntax Svelte-specific: {#if}, {#each}, {expression} Standard HTML: data-show, data-list, data-bind
Mutation Direct mutation: array.push(), obj.prop = val Direct mutation: this.array.push(), this.prop = val
The biggest win: Both frameworks support direct mutation, so the core reactive programming model you already know transfers directly. The migration is primarily about syntax, not concepts.

Concept Mapping

A complete mapping from Svelte 5 concepts to WildflowerJS equivalents:

Svelte 5 WildflowerJS Notes
$state(value) state: { prop: value } Defined in the component object
$derived(expr) computed: { prop() { return expr; } } Cached, auto-tracked dependencies
$effect(() => {}) init() Runs once after mount; use watch for reactive side effects
{expression} data-bind="prop" Binds text content to a state or computed property
{@html content} data-bind-html="content" Renders raw HTML
on:click={fn} data-action="fn" Click is the default event
on:input={fn} data-action="input:fn" Prefix with event name for non-click events
bind:value data-model Two-way binding for form inputs
{#if cond} data-render="cond" Adds/removes from DOM (like Svelte's {#if})
{#each items as item (item.id)} data-list="items" data-key="id" + <template> Keyed list rendering with reconciliation
class:active={isActive} data-bind-class="isActive ? 'active' : ''" Expression-based class binding
style:color={val} data-bind-style="{ color: val }" Expression-based style binding
Svelte stores (writable()) wildflower.store() Global reactive state with methods
$store auto-subscription subscribe: { store: [...] } Declarative subscription with automatic cleanup
onMount() init() Called after component mounts
onDestroy() destroy() Called before component unmounts

Side-by-Side: Todo List

A complete todo application in both frameworks, showing how the same functionality translates:

Svelte 5
<script>
    let todos = $state([]);
    let newTodo = $state('');
    let remaining = $derived(
        todos.filter(t => !t.done).length
    );

    function addTodo() {
        if (!newTodo.trim()) return;
        todos.push({
            id: Date.now(),
            text: newTodo,
            done: false
        });
        newTodo = '';
    }

    function removeTodo(index) {
        todos.splice(index, 1);
    }
</script>

<div>
    <h3>Todos ({remaining} remaining)</h3>
    <input bind:value={newTodo}
           on:keydown|enter={addTodo} />
    <button on:click={addTodo}>Add</button>
    <ul>
        {#each todos as todo, index (todo.id)}
            <li>
                <input type="checkbox"
                       bind:checked={todo.done} />
                <span style:text-decoration={
                    todo.done
                        ? 'line-through'
                        : 'none'
                }>
                    {todo.text}
                </span>
                <button on:click={
                    () => removeTodo(index)
                }>×</button>
            </li>
        {/each}
    </ul>
</div>
WildflowerJS
<div data-component="todo-app">
    <h3>Todos (<span data-bind="remaining">0
        </span> remaining)</h3>
    <input data-model="newTodo"
           data-action="keydown.enter:addTodo" />
    <button data-action="addTodo">Add</button>
    <ul data-list="todos" data-key="id">
        <template>
            <li>
                <input type="checkbox"
                       data-model="done" />
                <span data-bind="text"
                      data-bind-style="{ textDecoration: done ? 'line-through' : 'none' }"></span>
                <button data-action="removeTodo">
                    ×
                </button>
            </li>
        </template>
    </ul>
</div>
wildflower.component('todo-app', {
    state: { todos: [], newTodo: '' },
    computed: {
        remaining() {
            return this.todos.filter(
                t => !t.done
            ).length;
        }
    },
    addTodo() {
        if (!this.newTodo.trim()) return;
        this.todos.push({
            id: Date.now(),
            text: this.newTodo,
            done: false
        });
        this.newTodo = '';
    },
    removeTodo(event, element, details) {
        this.todos.splice(details.index, 1);
    }
});
Notice the similarities: Both use array.push() and array.splice() for mutations. Both use this.prop for state access. The logic is nearly identical; only the template syntax differs.

Pattern-by-Pattern Migration

Component Definition

Svelte uses single-file .svelte components that the compiler processes. WildflowerJS uses a data-component attribute on an HTML element paired with a JavaScript definition.

Svelte (Counter.svelte)
<script>
    let count = $state(0);
    function increment() { count++; }
</script>

<button on:click={increment}>
    Count: {count}
</button>
WildflowerJS
<div data-component="counter">
    <button data-action="increment">
        Count: <span data-bind="count">0</span>
    </button>
</div>
wildflower.component('counter', {
    state: { count: 0 },
    increment() { this.count++; }
});

Reactive State

Svelte 5 uses the $state rune to declare reactive variables. WildflowerJS defines state as a plain object in the component definition. Both support direct mutation.

Svelte 5
let name = $state('Alice');
let items = $state([]);

// Direct mutation works in both:
name = 'Bob';
items.push({ id: 1, label: 'New' });
WildflowerJS
wildflower.component('example', {
    state: { name: 'Alice', items: [] },

    changeName() {
        // Direct mutation works the same way:
        this.name = 'Bob';
        this.items.push({ id: 1, label: 'New' });
    }
});

Derived Values

Svelte's $derived rune becomes a computed property. Both are cached and automatically re-evaluate when dependencies change.

Svelte 5
let price = $state(100);
let quantity = $state(2);
let total = $derived(price * quantity);
let formatted = $derived(`$${total.toFixed(2)}`);
WildflowerJS
wildflower.component('cart', {
    state: { price: 100, quantity: 2 },
    computed: {
        total() {
            return this.price * this.quantity;
        },
        formatted() {
            return `$${this.total.toFixed(2)}`;
        }
    }
});

Effects

Svelte's $effect runs reactive side effects whenever its dependencies change. WildflowerJS uses init() for mount-time setup and watch for reactive observation.

Svelte 5
$effect(() => {
    console.log('count changed:', count);
});

$effect(() => {
    document.title = `Count: ${count}`;
    return () => {
        // cleanup on re-run or destroy
    };
});
WildflowerJS
wildflower.component('example', {
    state: { count: 0 },

    init() {
        // Runs once after mount
        console.log('mounted with count:', this.count);
    },

    // Watch specific properties for changes
    watch: {
        count(newVal, oldVal) {
            document.title = `Count: ${newVal}`;
        }
    },

    destroy() {
        // Cleanup on unmount
    }
});

Event Handling

Svelte uses on:event syntax (or onevent in Svelte 5). WildflowerJS uses data-action with an optional event prefix.

Svelte
<!-- Click (default) -->
<button on:click={handleClick}>Click</button>

<!-- Other events -->
<input on:input={handleInput} />
<form on:submit|preventDefault={handleSubmit}>

<!-- Keyboard -->
<input on:keydown={handleKey} />

<!-- Inline handler -->
<button on:click={() => count++}>+1</button>
WildflowerJS
<!-- Click (default) -->
<button data-action="handleClick">Click</button>

<!-- Other events -->
<input data-action="input:handleInput" />
<form data-action="submit:handleSubmit">

<!-- Keyboard -->
<input data-action="keydown.enter:handleKey" />

<!-- No inline handlers; define methods -->
<button data-action="increment">+1</button>

Conditional Rendering

Svelte uses {#if}/{:else} blocks. WildflowerJS uses data-show (CSS toggle) or data-render (DOM insertion/removal).

Svelte
{#if isLoggedIn}
    <p>Welcome, {username}!</p>
{:else}
    <p>Please log in.</p>
{/if}

{#if items.length > 0}
    <span class="badge">{items.length}</span>
{/if}
WildflowerJS
<!-- data-render adds/removes from DOM -->
<p data-render="isLoggedIn">
    Welcome, <span data-bind="username"></span>!
</p>
<p data-render="!isLoggedIn">
    Please log in.
</p>

<!-- data-show toggles display:none -->
<span class="badge"
      data-show="items.length > 0"
      data-bind="items.length"></span>
data-show vs data-render: Use data-show for frequent toggles (like Svelte's CSS-based hiding). Use data-render for expensive content that should be fully removed from the DOM (like Svelte's {#if}).

List Rendering

Svelte uses {#each} blocks with optional keying. WildflowerJS uses data-list with a <template> child element.

Svelte
{#each users as user (user.id)}
    <div class="card">
        <h4>{user.name}</h4>
        <p>{user.email}</p>
        <button on:click={
            () => removeUser(user.id)
        }>Delete</button>
    </div>
{:else}
    <p>No users found.</p>
{/each}
WildflowerJS
<div data-list="users" data-key="id">
    <template>
        <div class="card">
            <h4 data-bind="name"></h4>
            <p data-bind="email"></p>
            <button data-action="removeUser">
                Delete
            </button>
        </div>
    </template>
</div>
<!-- Empty state: use data-show -->
<p data-show="users.length === 0">
    No users found.
</p>

Forms

Svelte's bind:value maps directly to data-model. Both provide two-way binding for form inputs.

Svelte
<input bind:value={name} />
<textarea bind:value={bio}></textarea>
<select bind:value={color}>
    <option value="red">Red</option>
    <option value="blue">Blue</option>
</select>
<input type="checkbox"
       bind:checked={agreed} />
WildflowerJS
<input data-model="name" />
<textarea data-model="bio"></textarea>
<select data-model="color">
    <option value="red">Red</option>
    <option value="blue">Blue</option>
</select>
<input type="checkbox"
       data-model="agreed" />

Stores

Svelte's built-in stores (writable, readable) become WildflowerJS stores. The $store auto-subscription syntax becomes declarative subscribe blocks.

Svelte
// store.js
import { writable, derived } from 'svelte/store';

export const cart = writable([]);
export const total = derived(cart, $cart =>
    $cart.reduce((sum, i) => sum + i.price, 0)
);

// In component:
import { cart, total } from './store.js';

// $cart auto-subscribes
{$total}
$cart.push(item); // Svelte 5 with $state
WildflowerJS
// Store definition
wildflower.store('cart', {
    state: { items: [] },
    computed: {
        total() {
            return this.items.reduce(
                (sum, i) => sum + i.price, 0
            );
        }
    },
    addItem(item) {
        this.items.push(item);
    }
});

// In component:
wildflower.component('checkout', {
    subscribe: { cart: ['items', 'total'] },
    // Access: this.stores.cart.total
});
Store access in templates: WildflowerJS also supports reading store values directly in HTML with the $ prefix: data-bind="$cart.total". This is similar to Svelte's $store syntax.

Common Gotchas

Watch out for these differences when migrating from Svelte:
  • No compiler needed. Just include a <script> tag pointing to the WildflowerJS distribution file. No SvelteKit, no Vite plugin, no svelte.config.js, no preprocessors.
  • No $state or $derived. Use state: {} and computed: {} in the component definition object. Reactivity comes from the proxy system, not compiler transforms.
  • No {expression} in markup. Use data-bind="prop" on an element instead. Text interpolation with curly braces is not supported. Every bound value needs its own element (typically a <span>).
  • No {#each} block syntax. Use data-list on a container element with a <template> child. The template defines what each item looks like.
  • State is scoped to the component. No file-level variable declarations like let count = $state(0). All state lives in the state object and is accessed via this.
  • Direct mutation still works. Both frameworks support array.push(), array.splice(), and obj.prop = val. This is one thing that does not need to change.

Migration Checklist

A step-by-step process for migrating a Svelte application to WildflowerJS:

  1. Remove the Svelte/SvelteKit toolchain. Uninstall @sveltejs/kit, svelte, @sveltejs/adapter-*, and related Vite plugins. Remove svelte.config.js.
  2. Convert .svelte files to HTML + JS. Extract the <script> into a .js file with wildflower.component(). Convert the markup to use data-* attributes. Move styles to a CSS file.
  3. Replace $state / $derived / $effect. Convert runes to state, computed, and init/watch in the component definition.
  4. Replace Svelte template syntax with data-* attributes. Convert {expression} to data-bind, {#if} to data-render/data-show, {#each} to data-list, bind:value to data-model, and on:event to data-action.
  5. Convert Svelte stores to wildflower.store(). Replace writable()/readable()/derived() with WildflowerJS store definitions. Replace $store auto-subscriptions with subscribe: {} blocks.
  6. Replace SvelteKit routing with RouteManager. Convert file-based routes to WildflowerJS route definitions. Replace <a href> with data-route links.
  7. Remove all build configuration. No vite.config.js, no build scripts. Just include the WildflowerJS script tag and serve static files.
  8. Test each component. Verify state updates, computed properties, list rendering, event handling, and store subscriptions work correctly in the browser.
End result: Your application is now plain HTML, CSS, and JavaScript. It works in any browser, can be served from any static file server, and requires zero build tools to develop or deploy.