惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

W
WeLiveSecurity
T
Threatpost
C
CXSECURITY Database RSS Feed - CXSecurity.com
T
Threat Research - Cisco Blogs
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Know Your Adversary
Know Your Adversary
Scott Helme
Scott Helme
S
Schneier on Security
T
The Exploit Database - CXSecurity.com
Latest news
Latest news
雷峰网
雷峰网
T
Tor Project blog
T
Tenable Blog
Spread Privacy
Spread Privacy
博客园 - 叶小钗
D
DataBreaches.Net
美团技术团队
A
Arctic Wolf
Project Zero
Project Zero
L
Lohrmann on Cybersecurity
The GitHub Blog
The GitHub Blog
博客园 - 司徒正美
Security Latest
Security Latest
D
Docker
月光博客
月光博客
C
Cyber Attacks, Cyber Crime and Cyber Security
S
Secure Thoughts
T
Troy Hunt's Blog
U
Unit 42
WordPress大学
WordPress大学
I
Intezer
Forbes - Security
Forbes - Security
Microsoft Azure Blog
Microsoft Azure Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
SecWiki News
SecWiki News
罗磊的独立博客
The Last Watchdog
The Last Watchdog
人人都是产品经理
人人都是产品经理
Y
Y Combinator Blog
aimingoo的专栏
aimingoo的专栏
B
Blog
博客园 - 【当耐特】
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Help Net Security
Help Net Security
S
Security @ Cisco Blogs
Microsoft Security Blog
Microsoft Security Blog
S
SegmentFault 最新的问题
The Cloudflare Blog
V
V2EX

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
I Built a SaaS with AdonisJS 7, and I Loved It
Maxime Sahroui · 2026-06-04 · via DEV Community

This is Part 1 of a 6-part series where I open up the real engineering decisions behind my latest SaaS. No "10x" claims, no hot takes. Just the choices, why I made them, and what I'd tell a past version of myself.

The one-sentence version

I needed to ship a small, focused SaaS on my own, keep the whole thing type-safe end to end, host data in the EU, and not spend my weekends gluing a backend API to a separate frontend app. So I reached for AdonisJS 7 + Inertia + Vue 3.

If you've never seen Adonis in the wild, or you've only ever reached for Next.js / Nuxt / a decoupled SPA, this article is the gentle tour I wish I'd had.

Let's start with the question that actually matters.

Why not just build a decoupled SPA?

This is the default these days: a backend exposing a JSON API, and a separate frontend SPA (or a Next.js app) consuming it. It's a great architecture for a team, or for a product with multiple clients (web, mobile, third parties).

But look at my actual constraints as a solo maker:

  • One web client. No mobile app, no public API consumers on day one.
  • I'm the whole team. Every boundary I introduce is a boundary I have to maintain.
  • I want to move fast without lying to myself about types. A hand-written API contract between two repos is a place where types quietly drift apart.

A decoupled SPA asks me to pay the "integration tax" up front (CORS, auth token plumbing, a shared types package, two deploy pipelines) for flexibility I don't need yet. That's the trap: paying for optionality you may never exercise.

So the real question became: is there a way to get a modern Vue frontend without standing up a separate API and re-deriving my types by hand?

That's exactly the problem Inertia solves.

Inertia in one paragraph (for people who've never used it)

Inertia is the glue between a classic server-side framework and a modern client-side framework. Your server controllers don't return JSON for a separate app to fetch. They return pages. You write something like inertia.render('waitlists/index', { waitlists }), and Inertia ships the right Vue component plus its props to the browser. The first load is server-rendered HTML; every navigation after that is a lightweight XHR that swaps props and re-renders the Vue component. No full page reload, no separate REST layer to design.

The mental model: you keep your monolith's routing and controllers, but your views are Vue components instead of server-rendered templates. No API to invent, no client-side router to wire up, no token dance.

// app/controllers/waitlists_controller.ts (illustrative)
export default class WaitlistsController {
  async index({ inertia, auth }: HttpContext) {
    const waitlists = await Waitlist.query()
      .where('ownerId', auth.user!.id)
      .orderBy('createdAt', 'desc')

    // No JSON endpoint. We hand Vue its props directly.
    return inertia.render('waitlists/index', {
      waitlists: WaitlistTransformer.collection(waitlists),
    })
  }
}

Enter fullscreen mode Exit fullscreen mode

If you're coming from Laravel, this will feel like home, since Inertia grew up in that world. If you're coming from Next.js, think of it as "server components, but the boundary is the controller and the component, not a network fetch you have to manage."

So why AdonisJS 7 specifically?

AdonisJS 7 shipped in early 2026, and its headline feature is end-to-end type safety. I'll get to that, because it's the piece that makes the Inertia-on-a-monolith story click for someone who cares about types. But if I'm honest, the thing that won me over first wasn't a v7 feature at all. It was the attitude.

1. Opinionated on purpose, and it feels like a fresh wind

Most of the JavaScript ecosystem hands you a box of parts and wishes you luck. Pick a router. Pick a validator. Pick an ORM, a mailer, a folder structure, a way to wire up auth. Every one of those choices is an evening you don't spend building your actual product.

Adonis just made the decisions for me. There's a place for controllers, a place for services, a place for validators, and a first-party tool for almost everything you'd otherwise go shopping for: validation, auth, social login, sessions, an ORM, a mailer. Do I know every one of those tools inside out? No. Does that matter? Also no. The documentation is genuinely crystal clear about the way to do each thing, so I read the page, I use the tool, and I move on. No bikeshedding, no comparison spreadsheets, no "well, it depends." Just: here's how we build, now go build.

That sounds like a small thing. It is not. As a solo maker, the decisions I don't have to make are worth more to me than most of the features I get. And there's a 2026 bonus: an opinionated, convention-driven codebase is exactly what AI coding assistants understand best. Less structure to explain, fewer house rules to teach. The conventions do the talking.

2. Type-safe Inertia props via Transformers

In v7, the data you hand to a page isn't just "some object." You describe its shape with a Transformer, and Adonis generates .d.ts files at build time so your Vue components get typed props without you re-declaring them on the frontend. The serialization layer and the consumption layer agree by construction, not by discipline.

// app/transformers/waitlist_transformer.ts (illustrative)
export default class WaitlistTransformer {
  static transform(waitlist: Waitlist) {
    return {
      id: waitlist.id,
      name: waitlist.name,
      slug: waitlist.slug,
      subscriberCount: waitlist.subscriberCount,
      createdAt: waitlist.createdAt.toISO(),
    }
  }
}

Enter fullscreen mode Exit fullscreen mode

That object's shape flows straight into the Vue page's props. Rename a field here, and TypeScript lights up in the .vue file. That feedback loop is the whole reason a one-person team can refactor fearlessly.

3. A type-safe URL builder (no more stringly-typed routes)

v7 replaces the old untyped router.makeUrl with a generated, type-checked URL helper. For a solo dev this is quietly huge: rename a route, and every dead link surfaces at compile time instead of in a bug report from a user.

One honest caveat before we move on: v7 requires Node.js 24+. It leans into native platform APIs (it even dropped dotenv in favor of Node's built-in env parsing). If you're pinned to an older Node, factor that into your decision.

The project map

Here's how the codebase is actually laid out. If you've used Adonis before, none of this will surprise you, and that predictability is the point.

app/
  controllers/      # Thin, CRUDdy. One verb in, one render/redirect out.
  services/         # Where the real logic lives (retention, audit, signup).
  transformers/     # The typed contract between server data and Vue props.
  validators/       # Vine schemas, request validation at the edge.
  models/           # Lucid ORM models.
inertia/
  pages/            # Vue 3 components, one per "page" the server renders.
  layouts/
config/
  inertia.ts        # SSR + Inertia adapter config.
docs/
  adr/              # Architecture Decision Records. (ADR-0001 = this stack.)

Enter fullscreen mode Exit fullscreen mode

The rhythm I follow per feature:

  1. Validate the request with a Vine schema.
  2. Delegate to a service, so controllers stay thin.
  3. Transform the result into a typed shape.
  4. Render the Vue page with those props.

Controllers stay boring. Services hold the interesting decisions. Transformers keep the frontend honest. That separation is what lets me come back to a feature three months later and still understand it.

Selective SSR: marketing pages vs. the app

One detail worth calling out, because it's a common Inertia question. I server-render the marketing pages (landing, pricing, blog) for SEO and fast first paint, while the authenticated dashboard behaves like a snappy SPA after the first load. Inertia lets me make that choice per-route rather than committing the entire app to one rendering mode. SEO where it earns its keep; app-like responsiveness everywhere else.

Was it the right call?

For this project (a focused, single-client, EU-first SaaS built by one person), yes, emphatically. I got a modern Vue 3 frontend, kept one repository and one deploy, and the type system catches my mistakes before my users do.

The honest summary is almost boring: I picked an opinionated framework so I could stop deciding and start shipping, and a rendering bridge so I could have a modern frontend without a second codebase to babysit. For a one-person product, boring is exactly what you want.

What's next in this series

In Part 2, I'll go deep on why I reached for the Shadow DOM to drop an embedded signup form onto someone else's landing page without my CSS and theirs declaring war on each other, and the alternatives I rejected (iframe, web components, postMessage bridges).

If you're building something with Adonis 7 + Inertia, I'd love to hear what tripped you up, so drop a comment below.


The running case study in this series is followtheduck.app, the EU-hosted waitlist tool I build with this exact stack. If keeping your signups in the EU instead of a US spreadsheet sounds like your kind of thing, come take a look.