Authorize access to your Phoenix app with Permit
Introducing ‘Permit’, your new best friend for smooth sailing through app authorization. 😎 Elevate your Phoenix development game and ensure your data remains in the right hands. Perfect for those looking to add a splash of easy-going security to their app.
https://curiosum.com/blog/authorize-access-to-your-phoenix-app-with-permit
Nerves Project Update 2023
Frank Hunleth, creator of Nerves, gives an overview of the latest updates to the Nerves project at the Nerves Meetup.
Introducing http_cache, a BEAM-native standard-compliant HTTP caching library
In this article, we explore the features of http_cache
and associated libraries released earlier last year
A quick SFTP server in Elixir
SFTP is still widely used, especially by corporations. Thankfully, incorporating an SFTP server in your development / testing setup is straight forward. Thanks to the Erlang ecosystem. A quick SFTP server in Elixir by Max Mulatz and Andreas Knöpfle shows you how.
Check it out!
Strong Arrows
🤩 I loved the blog post on strong arrows that José recently shared. It helped clarify what they are and why they’re needed.
I made a short video of my understanding. Hope it helps others understand them too! 🥳
v0.13 of Next LS released
I released v0.13 of Next LS @elixir_tools, which includes local variable support for go to definition and find references. #MyElixirStatus @elixirlang
This work was done by Dmitry Biletskyy (https://biletskyy.com), he’s been killing it!
Check it out!
Thinking Elixir News 171
Episode 171 of Thinking Elixir. News includes José Valim’s blog post about Elixir’s “strong arrows” that expands on his keynote, the release of LiveView 0.20.0 with its myriad of updates and improvements, and a sneak peek into the upcoming Livebook features with a new “Authentication” section. Additionally, Wojtek Mach shares a success story using beammachine.cloud for a quick Erlang check, Sundi Myint shares a tip for 404 pages in LiveView when URLs are tweaked, and Lionel Aimerie demonstrates how to integrate Chart.js into Elixir Phoenix for visual impact in LiveView. All these, along with newly released ElixirConf videos, the upcoming SpawnFest contest, and more!
Unpacking Elixir: Observability
Some of the coolest tools in the BEAM ecosystem are things you can do at runtime. They also hide behind relatively mild names. Such as tracing, observability, introspection.
This is the stuff no other runtime I’ve heard of can do.
Exploring various approaches for testing external calls in Elixir
In this article, we will summarize what we discovered and provide an overview (albeit not an exhaustive one) of various Elixir methods for testing payment API calls, ranging from the simplest to the most intricate. https://medium.com/wttj-tech/exploring-various-approaches-for-testing-external-calls-in-elixir-4f22e8c8fdae
Elixir Streams |> LiveView 0.20 HEEX Debug Annotations
LiveView 0.20 comes with a nice improvement to debug HEEX templates.
Just add config :phoenix_live_view, debug_heex_annotations: true
to your dev config, and you’ll see HTML annotations in your browser inspector!
Check it out!
Announcing LangChain for Elixir
I created an Elixir LangChain library called “langchain” on Hex.pm. I didn’t invent the idea of LangChain. In fact, it was originally created in Python and JS/TS. I wanted something similar to exist for Elixir and Phoenix applications.
This is to announce the initial release of the project and explain a bit more about it.
https://fly.io/phoenix-files/announcing-langchain-for-elixir/
How To Reduce Reductions in Elixir
In this article, we’ll show how you can use Elixir’s profile.eprof mix task to evaluate and improve code performance in your Elixir application.
https://blog.appsignal.com/2023/09/28/how-to-reduce-reductions-in-elixir.html
JSON API Auth with Plug
In this episode we’ll use Plug to restrict access to our JSON API unless the request includes a valid API key.
Thinking Elixir News 170
Episode 170 of Thinking Elixir. News this week includes the release of ElixirConf 2023 video playlist featuring keynote videos, a guide on Web Application Security Best Practices for BEAM languages from the EEF Security Working Group, the release of NextLS v0.12 with exciting new features, and a new library to integrate the JavaScript all-in-one toolkit, Bun with Phoenix. A new LangChain library makes it easy to integrate Elixir applications with an LLM like ChatGPT. Regarding the open source community, we discuss the major update in the Lodash JS project, the latest PostgreSQL 16 release, and a noteworthy article from ZigLang on bounties potentially damaging open source projects, and more!
An Introduction to Exceptions in Elixir
Let’s dive into how you can handle exceptions in Elixir: https://blog.appsignal.com/2023/09/26/an-introduction-to-exceptions-in-elixir.html
How to use Async Assigns?
LiveView 0.20.0 is out - and so are Async Assigns!
Meet your new friends assign_async and async_result
Learn to use them and how they work under the hood
Building a replicated cache in 65 lines using ConCache and Phoenix.PubSub
In the realm of software development, we often stand on the shoulders of giants. Abstractions layer upon abstractions as we harness powerful tools crafted by others. Today, we’ll delve into two such tools: ConCache and Phoenix.PubSub.
ConCache is a lightweight, performant caching library on top of ETS. But it is confined to a single Elixir node. Phoenix.PubSub is a Publisher/Subscriber service that lets you broadcast messages to all nodes of your Elixir cluster. Building on the two libraries, we can create a replicated cache in only 65 lines of code.
Elixir/Phoenix Web Security Guide Released by EEF
Secure your Phoenix application with this new guide from the EEF.