Back to browse
GitHub Repository

JavaScript UI framework where state is a destination and code order defines the UI sequence.

171 starsJavaScript

Rethinking the UI = F(State) Model

by ahmadwasfi·Feb 14, 2026·1 point·0 comments

AI Analysis

●●SolidBig BrainBold Bet
The Take

Targets fuse data and behavior into ordered, self-contained blocks so your code reads like a sequence (width animates, then color, then fetch) instead of juggling promises and external animation libs. The built-in Web Animations usage and the $$ wait-syntax are neat, opinionated moves — but it's still a bold, niche bet against mature motion ecosystems and will need strong integration stories to win broad adoption.

Category
Target Audience

Frontend developers, UI engineers, framework authors and anyone building rich animated web UIs

Post Description

Most modern frameworks model UI as a function of state: change state, re-render. but modern rich UX is increasingly about the space between states. It is about how to represent a smooth transition between states to have a fluid UI.

Today, we handle these "in-betweens" state by bolting on external libraries like Framer Motion or GSAP. These often feel like a continuous fight of synching two separate models.

I am building TargetJS to experiment with a different model: State as a Destination. In TargetJS, you don't just set a state instead you set a target for the framework to achieve. It treats the journey from state A to B as a first-class citizen.

Key Architectural Shifts:

- Implicit state and lifecycles: Every class field and function tracks its own progress.

- Linear execution: The code executes how it written from top to bottom with no jumps. Complicated flow are structuring the work into parent child relationship.

- Syncing to asynchronous operations is done by two modes: deferred and reactive.

- Built in fetching, events, efficient animation to provide one synced stack.

It's still in early stages, and I'm mostly looking for feedback on the developer experience of this model

Similar Projects

Security●●Solid

JavaScript Obfuscator

Token budget obfuscation targeting LLMs when javascript-obfuscator exists.

Big BrainBold Bet
bootbloopers
102mo ago