• Stars
    star
    147
  • Rank 251,347 (Top 5 %)
  • Language
    Clojure
  • License
    MIT License
  • Created over 3 years ago
  • Updated over 3 years ago

Reviews

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

Repository Details

Graph based visualization tool for re-frame event chains

Re-frame Flow

re-frame-flow is a graph based visualization tool for re-frame event chains. Let's assume we clicked a login button and triggered a series of events. login-fx -> http-fx -> some-fx -> some-db-handler ... (event after event), so a path gets generated, re-frame-flow visualizes all paths in a graph.

Re-frame Flow

Installation

Clojars Project

  • Add re-frame-flow to dev dependencies:
:profiles
   {:dev
      {:dependencies [[org.clojars.ertucetin/re-frame-flow "X.Y.Z"]] }}
  • Add re-frame-flow.preload to preloads:
{...
 :preloads [re-frame-flow.preload]
 ...}

Usage

  • Make sure you have followed all of the installation instructions above.
  • Start up your application.
  • Once it is loaded, trigger some events (Flow panel gets updated when an event is triggered).
  • Focus the document window and press ctrl-g to open the flow panel.

Dispatch tracking (Optional)

If you want to track the flow of dispatch and dispatch-sync, you need to use re-frame-flow's custom dispatch and dispatch-sync. ClojureScript does not provide *ns* at runtime, so these functions implemented as custom macros. Which means you can't pass around like they are functions.

  • You need to move re-frame-flow dependency from dev to prod
  • Update your dev closure-defines inside shadow-cljs.edn
    •   :dev
         {:compiler-options
          {:closure-defines
           {re-frame-flow.trace.dispatch-enabled? true}}}
  • Update your views (or any namespace that uses dispatch)
    • (ns app.views
       (:require [re-frame-flow.macros :refer-macros [dispatch dispatch-sync]]
        ...))

Live Demo

Running the example

More Repositories

1

racing-game-cljs

A 3D racing game built with ClojureScript, React and ThreeJS
Clojure
243
star
2

ClojureNews

Clojure News Web Application - (Hacker News Clone)
Clojure
220
star
3

GlueList

GlueList is brand new list implementation which is faster than classic List implementations
Java
169
star
4

jme-clj

A Clojure 3D Game Engine (Wrapper), Powered by jMonkeyEngine
Clojure
142
star
5

herfi

3D multiplayer game prototype written in Clojure and ClojureScript
Clojure
108
star
6

code3dworld

Learn programming in 3D World
Clojure
71
star
7

enion

Enion Online is an Epic PvP Battle game between Orcs and Humans. The game is written using Clojure and ClojureScript, and utilizes the PlayCanvas game engine.
Clojure
65
star
8

CommentRemover

Source Code Comment Remover For Java
Java
58
star
9

kezban

Utility library for Clojure and ClojureScript
Clojure
43
star
10

konva-cljs

A minimalistic ClojureScript interface to react-konva
Clojure
23
star
11

playcanvas-cljs-demo

PlayCanvas ClojureScript Demo App
JavaScript
20
star
12

overload-fn

Function overloading on type for Clojure
Clojure
19
star
13

lein-nsort

Leiningen plugin that checks that order of namespace declarations for Clojure and ClojureScript
Clojure
18
star
14

procedure.async

Async procedures for Clojure
Clojure
13
star
15

patika

Clojure routing library which is an abstraction over Liberator + Compojure
Clojure
13
star
16

babylon-cljs

3D character controller prototype project. It showcases how to integrate BabylonJS with ClojureScript.
Clojure
13
star
17

finite-cache

finite-cache is a Clojure caching library that allows you to limit the size of a cache object.
Clojure
12
star
18

asynctor

Minimal core.async inspector library for Clojure and ClojureScript
Clojure
10
star
19

datomic-backupper

Datomic Backupper
Clojure
4
star
20

segmentum

Segmentum is an unified customer data platform. Open source alternative of Segment.com
Clojure
3
star
21

spark-definitive-guide-examples

Spark: The Definitive Guide's Code in Clojure
Clojure
3
star
22

the-repl

Clojure REPL built with Java Swing GUI
Clojure
2
star
23

parse_struct

Parse C struct dumps in clojure
Clojure
1
star
24

random-clojure-fn

Chrome extension that generates random clojuredocs.org URLs to learn Clojure's standard library.
JavaScript
1
star