Karax. Single page applications for Nim.
Find a file
2017-04-21 14:36:49 +07:00
docs fixed .component macro 2017-04-14 20:33:03 +02:00
examples Add sample of press enter programmatically 2017-04-21 14:36:49 +07:00
experiments stateful components now work 2017-04-19 11:17:00 +02:00
src Add sample of press enter programmatically 2017-04-21 14:36:49 +07:00
tests reworked event handling again; added scrollapp example 2017-04-15 15:50:07 +02:00
.gitignore first example with virtual dom; virtual dom still buggy 2017-03-30 23:52:47 +02:00
karax.nimble added nimble file 2017-04-13 10:06:00 +02:00
readme.rst Update readme.rst 2017-04-19 09:48:28 +07:00

Karax -- Single page applications in Nim
========================================

Karax is a framework for developing single page applications in Nim.
It's still in heavy development, so keep in mind that the API is subject
to change.

To try it out, run::

  nimble install # For first time

  cd examples/todoapp
  nim js todoapp.nim
  open todoapp.html
  cd ../..

  cd examples/mediaplayer
  nim js playerapp.nim
  open playerapp.html

It uses a virtual DOM like React, but is much smaller than the existing
frameworks plus of course it's written in Nim for Nim. No external
dependencies! And thanks to Nim's whole program optimization only what
is used ends up in the generated JavaScript code.


Goals
=====

- Leverage Nim's macro system to produce a framework that allows
  for the development of applications that are boilerplate free.
- Keep it small, keep it fast, keep it flexible.


Todo
====

- Expose a nice API to do Ajax requests.