A 1way flux-esk binding library. Like react hooks but without the react.

Usage no npm install needed!

<script type="module">
  import way from 'https://cdn.skypack.dev/1way';



A 1way flux-esk state library. Like react-hooks but without the react.


$ npm install --save 1way


1way is a really simple library at this point. It was inspired by the way angular and react are binding JavaScript variables within HTML.


Back in the days, angular got really popular for a feature called "two-way-binding" (I believe Backbone introduced it first). It allowed a web developer to bind a dom element directly to a variable defined in JavaScript.

Immediately, everybody got exited and used two-way-binding extensively. Until they noticed that in large applications it's not that great.

Along came react and innovated on the binding part by introducing the Flux architecture, which among other things, suggested a one way data flow.

Now, it seems two way data flows are getting back in fashion.

  let name = 'world';

<h1>Hello {name}!</h1>
<input type="text" bind:value={name} />

(Run this code here.)

But additionally, we're now inventing languages, not frameworks. It's great for moving standards forward. But since no winner seems to have emerged yet, it may be more effective simply sticking to HTML5. Which is, after all, pretty neat too now!

Using 1way in your app

Check out index.html for an example of how to use 1way.


Checkout a demo here.



  • Implement integrate functionality


  • Initial release