Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A programming language for the realtime web.
JavaScript
Failed to load latest commit information.
apps Make fun auto-refresh on file save by default
bin Fix commandline invocation
examples Update examples and modules to not use
node_modules fix build
scripts Make it easier to specify which tests to be run
specification Update examples and modules to not use
src dom was renamed
test
.gitignore added vim temp files to gitignore
.gitmodules fix build
.travis.yml :gem: Added travis.yml file :gem:
Changelog fix version number 0.3.0
LICENSE Clean up changelog, license, and remove old file
Makefile Don't run tests during setup
README.md remove duplicate build status
package.json fix build

README.md

fun

A declarative programming language for realtime web applications

Build Status

Getting started

Try this:

sudo npm install -g fun
echo '"Hello world!"' > hello.fun
fun hello.fun
# Open your browser to localhost:8080

Also try

curl https://raw.github.com/marcuswestin/fun/master/apps/todo-mvc/todo-mvc.fun > todo-mvc.fun
curl https://raw.github.com/marcuswestin/fun/master/apps/todo-mvc/todo-mvc.css > todo-mvc.css
fun todo-mvc.fun

Examples

Hello World

"Hello world!"

Drag and Drop

import mouse

<div style={
    position:   'absolute',
    top:        mouse.y + 50,
    left:       mouse.x + 50,
    width:      100,
    height:     100,
    background: 'red'
}/>

Getting involved

The best way to get involved is to start writing fun apps and using them. There are bugs and inefficiencies waiting to be discovered!

If you want to hack on the source:

git clone https://marcuswestin@github.com/marcuswestin/fun.git
cd fun
make setup
make test
Something went wrong with that request. Please try again.