GitHub - xamey/rails-with-jwt: A Rails 8.0.2 starter app with Bearer JWT
A Rails 8.0.2 starter app with Bearer JWT. Contribute to xamey/rails-with-jwt development by creating an account on GitHub.
Rails 8 introduced an authentication generator, which is cool, but it's only related to cookies-based sessions.
If you're building Rails apps and want to authenticate users with Bearer tokens (as a pure API for example), here's a ready-to-start-with project : github.com/xamey/rails-...
04.06.2025 15:40 β π 1 π 0 π¬ 0 π 0
Xamey
Senior Software Developer
New blog post, some thoughts on an ideal web app architecture.
xamey.xyz/post/?sha=b7...
31.05.2025 20:39 β π 0 π 0 π¬ 0 π 0
- and another stream that construct a logical relationship between ActiveRecords which have been created through events (ActiveRecord creation -> event -> N ActiveRecord creation/updates)* leads to one stream per ActiveRecord op, it's a way to link an event to an ActiveRecord :)
11.02.2025 08:10 β π 1 π 0 π¬ 0 π 0
No worries! I made a second blogpost explaining how I used streams to create a causality graph of my ActiveRecords, and by design they shouldn't be too long:
- causality and causation streams shouldn't contain more than 5 events per stream
- user stream which should be < 200 atm
11.02.2025 08:08 β π 1 π 0 π¬ 0 π 0
private discord with a "bluesky posts" channel for me π
09.02.2025 17:01 β π 2 π 0 π¬ 0 π 0
pretty cool, is it possible to see what HTML is like? :)
01.02.2025 11:40 β π 0 π 0 π¬ 1 π 0
A new blogpost related to the previous one, adding some debugging possibilities by linking events between them, subsequently linking ActiveRecords created through events handling together.
@lukaszreszke.bsky.social @andrzejkrzywda.bsky.social eager to hear ur feedback :)
xamey.xyz/post/?sha=58...
29.01.2025 09:24 β π 3 π 0 π¬ 0 π 0
do people not know anything anymore?
"china is gonna steal my info with deepseek R1"
uhhh, no
curl -fsSL ollama.com/install.sh | sh
ollama serve
ollama run deepseek-r1:671b
congratulations you now host deepseek r1 on your own
either rent a server or use you pc
28.01.2025 07:16 β π 28 π 5 π¬ 5 π 1
Sorry, you're my rubber duck π
but streams will help me on 90% of the cases because I'll have a common denominator (for instance, user) but I've dived into correlation and causation and instead of creating entries in additional tables, I'll link events between them. Next blogpost!
27.01.2025 16:47 β π 0 π 0 π¬ 1 π 0
But as my events have a relationship with my ActiveRecords, it should be redundant.
27.01.2025 16:39 β π 0 π 0 π¬ 1 π 0
And while I'm on it, I may link events with causality and correlation at the same time I link ActiveRecords. So I can have a full graph of ActiveRecords and Events relationship.
27.01.2025 16:37 β π 0 π 0 π¬ 0 π 0
And this is because a RailsEventStore's event will never create anotheR. But, as 95% of the ActiveRecords I instantiate are linked to an User, I could :
- publish the events to the stream "User$#{user_uuid}"
- debug the events that have been triggered for a specific user thanks to this stream
27.01.2025 16:09 β π 0 π 0 π¬ 2 π 0
What I introduce in my additional tables is a link between those ActiveRecords, especially if there is a causation through RailsEventStore events, as seen if the graph below.
A causation between events isn't the most important information for me.
27.01.2025 16:09 β π 0 π 0 π¬ 1 π 0
Problem is, I don't want my colleagues to bother with additional infos they should provide to the ActiveRecord creation, such as `Email.new(source_event: ...)`
But! I would like to know how that email has been triggered, which in fact is caused by an User creation
27.01.2025 16:09 β π 0 π 0 π¬ 1 π 0
Finally watched it! Streams will help me but solely mixed with my additional tables.
Unfortunately, there's no direct link between events: I create an User instance, a handler reacts to UserCreated event, the handler may create an Email instance, and a handler reacts to EmailCreated to send an email
27.01.2025 16:09 β π 0 π 0 π¬ 1 π 0
Will tag alt text bot in reply, apologies.
Beyond this bit being passed around, which is worth sharing for the main points, do click through and read the whole thing. It's worth it. harpers.org/archive/1941...
25.01.2025 05:49 β π 378 π 121 π¬ 16 π 19
and what's the easiest migration, if possible?
ease the UI/UX of an app with good performances
or improve the performances of an easy-to-use app?
considering a large codebase
24.01.2025 09:40 β π 0 π 0 π¬ 1 π 0
there's no configuration for the LLM provider right? havn't found it in the docs. not really confident about sending my codebase too, while Cursor has a very clear privacy configuration
22.01.2025 15:31 β π 4 π 0 π¬ 1 π 0
thanks! I'll watch soon :)
18.01.2025 20:49 β π 1 π 0 π¬ 0 π 0
Glad you liked it! I love your library and I've strongly advocated to use it in my team. Currently reading Domain-driven Rails :)
18.01.2025 15:02 β π 1 π 0 π¬ 0 π 0
But I'll take a better look at streams!
18.01.2025 14:59 β π 0 π 0 π¬ 1 π 0
I haven't tbh, for debugging, I manually created tables which link the model which automatically triggers the create/update event to the different models that have been created from handlers, so I can construct a graph of causation.
User <-> UserCreated <-> handler <-> created models
18.01.2025 14:58 β π 0 π 0 π¬ 1 π 0
Great job, you're not far away from a complete events framework which seems promising. I'll inspire myself from your work to try to build an UI which relies on my API and I'll tag you once I post about it.
16.01.2025 16:55 β π 1 π 0 π¬ 0 π 0
Thanks a lot. Yes, I'm using RailsEventStore. I would like to visualise a timeline of records ops, and those records may be created from handlers reacting to events, which are triggered after a record creation/update. I just published a blog post that you can find on my profile if you're curious
16.01.2025 12:29 β π 0 π 0 π¬ 1 π 0
Interesting. Did you open sourced it? I'm curious to see your implementation. Anyway, I'll give a look at Phlex. I enhanced my model to have causation and/or correlation as well, and I tried to show it through a network graph but it was a pain to organize.
16.01.2025 08:41 β π 0 π 0 π¬ 1 π 0
hey, is it an UI you built? I'm looking for such way to visualize event correlation.
15.01.2025 23:20 β π 0 π 0 π¬ 1 π 0
Xamey
Senior Software Developer
just published a new blog post about Rails Event Store and how you can easily integrate it in a new or existing app
from ActiveRecord callbacks to a pub sub system!
xamey.xyz/post/?sha=2c...
@lukaszreszke.bsky.social @andrzejkrzywda.bsky.social
15.01.2025 14:04 β π 7 π 2 π¬ 2 π 1
Here is the code for my universal version of react-scan:
github.com/NullVoxPo...
Copy it / install it in to any
- Svelte
- Angular
- Ember
- React
- Lit
- Preact
- Solid
- etc
App, and see what unneeded work might be being done!
(Or see all the hidden work you're managing and forgot about!)
04.12.2024 15:06 β π 53 π 11 π¬ 3 π 0
It's becoming more and more difficult/annoying for me to code without Cursor and its features. Besides that app, I agree. Apps which fully rely on AI are unpredictable or are way too complex, and AI-powered features, once curiosity fades, are seen as useless
03.12.2024 19:23 β π 0 π 0 π¬ 0 π 0
Ruby committer working on various projects to improve Rubyβs developer experience: rdoc, irb, ruby-lsp, ruby-lsp-rspec
@Shopify Ruby DX
Principal Fullstack Software Engineer and YouTuber
proud mediterrenean π§Ώ open-sourceress at hugging face π€ multimodality, zero-shot vision, vision language models, transformers
Exercise physiologist, coach, coder, MAD Scientist, #INTP #ChaoticGood π¦πΊ
https://alancouzens.com/my_book.html
Programmer by day, programmer by night.
Blog: https://push.cx Bootstrapping: https://recheck.dev
I run https://lobste.rs and stream office hours Mon+Thu: https://push.cx/stream
For people migrating, I was @pushcx on Twitter. I use he/him.
Rails core, Ruby committer, funemployed.
Staff Engineer https://qonto.com
π @obsidian nerd
https://maximerichard.dev/
π¦ Founded NodeSource. Node.js OG. Always bet on Node.js β¨
Staff Engineer / Ruby on Rails / TypeScript / React / ππ₯
π²π£
Deliver web apps with confidence π
Software developer, ex-academic.
Fluent in Rocq/OCaml/Java/Python/Docker/Bash/Git/Ansible.
Opinions are my own and not the views of my employer.
https://linktr.ee/erikmd
Associate professor in computer science.
Flying under cheap kites.
La confΓ©rence Toulousaine incontournable faite par et pour les dΓ©veloppeurs et dΓ©veloppeuses ! Suivez-nous pour Γͺtre informΓ© sur l'Γ©vΓ©nement ! #DevFestToulouse
Master Sciences Du Logiciel de l'UniversitΓ© de Toulouse
(prΓ©cΓ©demment nommΓ© Master DL)
https://www.master-developpement-logiciel.fr/
Rewrite or modernize exisitng app? Maybe something in between? Join me on 31 March 7 pm CET https://arkency.com/webinars/rescuing-rails-applications/
Software Developer @arkency
Arkency | RailsEventStore | wroc_love.rb
Rails programmer since 2004
Chess player aspiring to become IM
coffee amateur
sf books lover
DDD, CQRS, Event Sourcing
Your friendly neighborhood library to help you build web components!
https://lit.dev