cd /news/ai-tools/what-we-learned-building-a-self-host… · home › topics › ai-tools › article
[ARTICLE · art-177488] src=dev.to ↗ pub= topic=ai-tools verified=true sentiment=↑ positive

What we learned building a self-hosted Laravel CMS with 55 languages and per-language URLs

A developer built RJ Nexus, an open-source, self-hosted CMS on Laravel 12 that supports 55 languages with per-language SEO-friendly URLs, a drag-and-drop page builder with 80+ widgets, and a free AI engine that requires no API key. The project uses a two-layer caching system combining spatie/laravel-responsecache with LiteSpeed LSCache to keep performance viable on shared hosting, and the developer notes that Laravel validation silently stripped translated slugs and content until validation rules were extended to cover nested translation fields.

recommendation

Cover every nested translation field in your validation rules before saving, since Laravel's validated data drops unvalidated keys and silently discards translated slugs and content.

more in playbook: Running AI in production
by read3 min views6 publishedNov 27, 2026

I have been building RJ Nexus, a modern, self-hosted CMS on top of Laravel 12. You install it on your own hosting, keep full ownership of your data, and extend it with isolated plugins and themes.

It started small. Today it supports 55 languages with per-language URLs, ships with a visual page builder with 80+ widgets, and has a free AI engine that needs no API key.

This post is about the interesting problems along the way, and an invitation: the project is open source and I would love your help.

Many CMS setups bolt multilingual support on later. I wanted it built in from the start, which meant solving a few things properly.

A page should not have one URL with a language prefix glued on. It should have a real, SEO-friendly URL in each language:

/en/about
/az/haqqimizda

That sounds simple until you handle it everywhere: routing, the editor, the page builder, translations, and quick edits from the posts list.

One of the nastiest bugs I hit was in validation. Laravel's validation was stripping translated slugs and content before they were saved, because the translated fields were not part of the validated data. Everything looked fine in the form, then silently vanished on save.

The lesson: when you build nested or dynamic fields (like translations[az][slug]), make sure your validation rules actually cover them, because validated data only contains what you validated.

Arabic and Kurdish need right-to-left layouts. I handle this at the language level, so adding a new RTL language is mostly a matter of registering it, not rewriting templates.

Going from 17 to 38 and then to 55 languages exposed performance problems in places I did not expect. For example, the installer's language selection screen has a 3D planet animation. With 38 languages it stuttered, so the animation now calculates planet density, size, and stagger speed dynamically based on how many languages are available.

RJBuilder is a drag-and-drop builder with 80+ widgets, responsive controls, and dynamic tags. Each widget is two files:

render() A few rules I follow for every widget:

<button> elements, ARIA attributes, keyboard navigation, and prefers-reduced-motion support. The accordion widget is a good reference if you want to build your own.

RJ Nexus has two AI modes:

Ctrl+K). Keeping a free, no-setup option mattered to me. Many people never configure an API key, and a feature nobody sets up is a feature nobody uses.

Many CMS users run on shared hosting, so speed cannot depend on expensive infrastructure. RJ Nexus has a two-layer caching system:

Layer Package Works on
Response Cache spatie/laravel-responsecache Any PHP hosting
LiteSpeed LSCache litespeed/lscache-laravel LiteSpeed / OpenLiteSpeed

Response Cache is the universal baseline. On LiteSpeed hosts, pages can be served from the web server before PHP even starts.

A few features came from simply using the admin panel every day:

/install.php, and follow the steps. No terminal needed, which matters on shared hosting. You can try the live demo here: rj-nexus.onrender.com (add /admin for the admin panel; demo credentials are in the README). The demo may not run the latest version.

This is an open source project, and there are ways to contribute that do not require deep knowledge of the codebase:

Every contribution is recognized. Contributors are listed by name in the SUPPORTERS.md file and on the website, and earn supporter titles named after stars: Proxima, Vega, Sirius, and Polaris.

Open issues are here: github.com/rj-nexus/rj-nexus/issues

If you have built something multilingual before, I would love to hear how you handled per-language URLs. What would you do differently? Let me know in the comments. And if you find the project useful, a ⭐ on GitHub helps more than you might think.

── more in #ai-tools 4 stories · sorted by recency
── more on @rj nexus 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/what-we-learned-buil…] indexed:0 read:3min 2026-11-27 · —