Building a FE on the IC

Julian Jelfs (OpenChat)

It's exactly the same!

except ...

spoiler...

How assets are delivered


How apis are called

Static assets

  • loaded from an asset canister
  • mediated by a service worker
  • cryptographically verified
  • poor caching (currently)
  • no SEO
  • cannot simply fetch resources
  • cannot have a custom root level service worker

Api calls

  • Auto generated client
  • Auto generated ts types
  • Runtime validation of correctness
  • Strict CQRS separation
  • Strict CQRS separation
  • Cannot use simple fetch
  • Update calls are slower than you're used to
  • Errors can be ... confusing

front end

http agent

service worker

code canister(s)

asset canister

Demo

Build a FE on the IC

By Julian Jelfs

Build a FE on the IC

  • 129