/HNK

JS framework

Primary LanguageTypeScriptMIT LicenseMIT

HNK

The version 1 of the framework is accessible at https://js.fkn.app. It is an outdated version and was an experiment to try to remake Vue 2's API using the latest technologies like Template Literal Tags, Proxies, ect, to make it lighter and able to run without a pre-transpilation step(mandatory to remove the use of eval).

The v2 will be a version that focus on ease of use (the API will mostly look like react hooks) and performance, but in an modern and efficient way. That efficiency will come from the use of the maximum amount of native APIs to reduce the work the framework has to do. Of course, every set of feature we propose is completly optional, you can use each part as a standalone library if you don't want the full framework.

These APIs are :

The entire framework will be split between the main thread(UI thread) only used for DOM and CSSOM related work, and multiple workers, them be shared for multi-tab related code, or dedicated for each page logical code.

We will provide a set of ways to easily make PWAs, because we know it's hard make use of the cache API. This will mainly be accompanied by an optimised system to use GraphQL schemas in your components to reduce bandwith consumption.

Obviously, with every framework come its router component, it'll take ideas from both react's router and vue's router.

  • Templates

The templating part is a big part of the framework, everything is done at runtime, there's no pre-compilation step like in vue(eval remover) and react(mandatory for JSX). It makes use of template literal tags, for every languages used, html, css, sass, pug, graphql, ect...