• Stars
    star
    403
  • Rank 103,687 (Top 3 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created about 4 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Declarative enhancement for HTML: simple, composable, lean.

TwinSpark

Declarative enhancement for HTML: simple, composable, lean. It's main goal is to eliminate most of the logic from JS, while allowing to make a good interactive site.

It engages this problem from a few angles:

  • partial page updates facilitated via HTML attributes (no JS needed)
  • actions - incredibly simple promise-enabled language for (limited) client-side scripting
  • morphing - a strategy to update HTML graduallly, without breaking state and focus

Simple: it's only a handful core attributes (like ts-req, ts-action, ts-trigger), with no surprising behavior (whatever is declared on top of your DOM tree will not affect your code).

Composable: there are enough extension points to compose with whatever your needs are. You can add more directives like ts-req, you can add more actions, you can customize requests being sent out. Whatever you need.

Lean: source is a full 2000 lines of code and only 8KB .min.gz. We believe in less is more.

It's a battle-tested technology used on websites with 100k+ daily active users.

Read more in docs.

More Repositories

1

gostatic

Fast static site generator
Go
442
star
2

keymage

Yet Another JS Keybinding library
JavaScript
332
star
3

goreplace

command line tool for search and replace
Go
178
star
4

keybind

ClojureScript key bindings (shortcut) library
Clojure
83
star
5

nomad

simple sql migration tool to save you from going mad
Python
76
star
6

pump

Pump your REACTive app with fuel
JavaScript
75
star
7

puttext

Gettext-like i18n library for javascript
JavaScript
57
star
8

opster

Command line parsing speedster
Python
51
star
9

webhooker

github webhook handler
Go
49
star
10

ring-undertow-adapter

Ring server built with Undertow
Clojure
48
star
11

cyrax

Static site generator
Python
42
star
12

adium-inline-images

Adium Image Inliner
JavaScript
23
star
13

showkr

Minimalistic photo viewer
Clojure
23
star
14

snakeq

Snake, oh, snake, oh, it's a snake
Clojure
18
star
15

infowarship

Script for showing information popup for Russian IPs.
HTML
18
star
16

ecomspark

TwinSpark example
Clojure
17
star
17

piu.clj

Simple pastebin
Clojure
16
star
18

shorrt

Simple app for global keybindings on OS X
Objective-C
12
star
19

mesto

In-memory storage for ClojureScript. Seems to be working.
Clojure
10
star
20

tnetstrings.js

tnetstrings javascript implementation
JavaScript
7
star
21

webhook-action

Minimal dependencies webhook step for Github Actions
JavaScript
7
star
22

conf

My configuration files
Emacs Lisp
6
star
23

piu

deprecated, see newer version in Clojure
Python
6
star
24

solovyov.net

My site
HTML
5
star
25

om-snake

Simplest snake in om
Clojure
5
star
26

tunatron

Simple and fast iTunes controlling app
Objective-C
3
star
27

slides

HTML
2
star
28

imap2sockjs

Go
2
star
29

piranha

Clojure
1
star
30

rumsnake

Basic snake game in CLJS
Clojure
1
star
31

xapicms

Headless CMS sporting Ghost API and an ability to send webhooks
Clojure
1
star
32

stream-progress

Clojure
1
star
33

passync

Python
1
star
34

highlight.exe

"binary" for highlight.js
JavaScript
1
star