racer

module
v0.0.0-...-0564b78 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 10, 2023 License: MIT

README

racer

Go go racer!!!

gotta go fast

What

Type safe web frontends built in Go. Its like frontend rails but faster.

Are you crazy

Yes. Crazy of fighting the churn on the frontend. And guess what, there big push now is SSR (Serve Side Rendering) with islands of reactivity. Like every meta framework released. Guess what's REALLY good and server side web dev... GOPHERS!

Now imagine if you could teach a gopher to ride a cafe racer custom built for his cute little frame, sanic move over; we have a new kid on the block.

Cool speech bro, what are you really proposing

Add diagram here of SPA vs SSR vs LiveView

We stand on the shoulders of work done before and consolidate into a Realtime smart framework that out of the box has

  1. Completely Go based programming model. You can still use JS/TS, but never have to.
  2. Type safe DOM. It's our contention you'll be FASTER than you would be in React/Vue/Svelte/Solid. Not just at runtime, but in development
  3. Faster paints, our overhead is currents 7Kb. That's really small, look at the graph below. First paint faster
  4. Smart real world defaults.
    1. Auto-reloading
    2. Auto reconnect with exponential backoff
    3. Bundler
  5. Its a framework without the headache, want to replace a part, no problem. Its interfaces at the higher level. The normal fears about code size do apply here, its all server side
ADD Graphs of size and first paint

How do I get started?

We are deep in the conversion to a full stack framework so check back or dig into the code and start asking questions on the #gopher slack

Got docs/notes about the design process

Yes! We are using Dendron for our note taking. It's markdown on steroids and even if you don't use VSCode for programming its a powerful for tracking ideas across a team.

Modules*

Name Language Purpose Why name?
engine Go handles the diffing, rendering and websockets Is the engine, duh
gas ProtocolBuffers Text & Binary protocol define in a language agnostic IDL makes supporting big sites easier its the the conduit which we take the power generated by to engine and make speed.
goggles Go a DSL to make writing frontend easier than any frontend process, yes including React,Vue,Solid,Angular... fight me its both how the gopher views the world so its a fun play on words.
headlamp TS The shim on the frontend that is all the scripting you need. It handles socket connections, applying the diffs and track events On a race bike headlamps are so small to almost be ornamental.

*more to come as the framework progresses, stuff like routers, bundlers, etc

Directories

Path Synopsis
cmd
gen
examples
pkg
gas

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL