saleyn
Flick - Erlang External Term WebSocket transport for Phoenix
I’ve published flick, a small library that replaces JSON with Erlang’s native binary format (ETF) for Phoenix WebSocket connections.
Why ETF? You call :erlang.term_to_binary/1 on any map, list, or atom and send it directly — no custom serialization, no string parsing overhead.
What’s included:
-
Raw
WebSockmode - push{:binary, etf_bytes}frames directly, minimal overhead -
Phoenix Channels mode -
Flick.Socket.Serializerswaps the JSON serializer for ETF, keeping full Channels semantics -
A zero-dependency browser client (
flick.js) that decodes ETF frames viawindow.Flick.decode(event.data) -
mix flick.install- generates all boilerplate (WebSock module, controller, router route, JS hook) and vendors the pre-built JS asset
{:flick, "~> 0.1"}
mix deps.get && mix flick.install
GitHub:
Hex.pm:
Most Liked
z3eMk0
That’s neat! You might check if https://plug-crypto.hexdocs.pm/Plug.Crypto.html#non_executable_binary_to_term/2 could help you with the decoding of the binary.
saleyn
saleyn
Popular in Announcing
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance









