Skip to main content
Lemon.dev
Blog

Insights on Architecture, AI & Product Strategy

Deep dives into software engineering, inclusive technology, and lessons from building real products.

12 posts found/ 324
Cover image for blog post: Observability and resilience in payments: fail closed, measure the lag, operate without guessing
#observabilidade#resiliencia#resilience4j

Observability and resilience in payments: fail closed, measure the lag, operate without guessing

When the fraud provider goes down, the payment is held for review, never approved. How the Payments Platform fails closed, measures outbox and projection lag, and makes migrations and rebuilds verifiable.

16 min read
35
0
Cover image for blog post: Outbox, idempotency and webhooks: payment consistency without exactly-once
#transactional-outbox#idempotencia#rabbitmq

Outbox, idempotency and webhooks: payment consistency without exactly-once

Exactly-once does not exist on the network. How a payment flow gets effects that happen once, using idempotency leases, an outbox, consumer dedupe and a verified webhook.

18 min read
34
0
Cover image for blog post: Event Sourcing on PostgreSQL: the XID/sequence fence that stops lost events
#event-sourcing#postgresql#java

Event Sourcing on PostgreSQL: the XID/sequence fence that stops lost events

A BIGSERIAL sequence hands out numbers in order, but transactions commit out of order. If your async projection trusts global_position, it can lose events without a single error.

18 min read
38
0
Cover image for blog post: Pragmatic CQRS with PostgreSQL and Spring: two repositories, one database
#cqrs#postgresql#spring-boot

Pragmatic CQRS with PostgreSQL and Spring: two repositories, one database

The same payment has two findById methods: one rebuilds the aggregate from events, the other reads an indexed projection. That is what CQRS means in the Payments Platform, with no second database.

14 min read
34
0
Cover image for blog post: Modular monolith with Clean Architecture in Java: the boundary that breaks the build
#monolito-modular#clean-architecture#java

Modular monolith with Clean Architecture in Java: the boundary that breaks the build

A module boundary that only exists in a diagram does not exist. How the Payments Platform turns a forbidden dependency into a failing test, and when this design is the wrong call.

15 min read
35
0
Cover image for blog post: mcp-code-mode: how I replaced over a hundred MCP tools with 4 and cut my agent token usage
#mcp-code-mode#mcp#cloudflare-code-mode

mcp-code-mode: how I replaced over a hundred MCP tools with 4 and cut my agent token usage

57,436 tokens in github-mcp-server, 17,500 in Notion MCP and 8,036 in Supabase MCP just for tool definitions. How I replaced them with 4 tools in a single Rust binary.

19 min read
318
0
Cover image for blog post: Clean Code: clarity that survives the next change
#livros#engenharia-de-software#refatoracao

Clean Code: clarity that survives the next change

A critical review of Clean Code: core ideas, a shipping example, limitations and a practical plan for applying its advice with judgment.

10 min read
286
0
Cover image for blog post: 30 days later: numbers, mistakes and next steps
#lemon-code#lemon-model#retrospectiva

30 days later: numbers, mistakes and next steps

448 CLI commits, 152 app commits, 268 model-lab commits, 67 ADR documents across 57 IDs and no promoted model. The series wrap-up, real data only.

4 min read
346
0
Cover image for blog post: Evals before hype
#evals#llm#machine-learning

Evals before hype

An answer with 'if n == 20: return 6765' passes every Fibonacci test. In lemon-model it scores zero. Here's the rest of the system that keeps hype from becoming a release.

5 min read
286
0
Cover image for blog post: LoRA and QLoRA with MLX on Apple Silicon
#lora#qlora#mlx

LoRA and QLoRA with MLX on Apple Silicon

My first attempts to train the 7B on the Mac hit the memory safety cutoff, even with MLX under 14 GB. The pilot that passed used 8 layers, rank 4 and finished in 200 seconds.

5 min read
306
0
Cover image for blog post: A local coding model on the Mac
#mlx#apple-silicon#llm-local

A local coding model on the Mac

With 8K tokens of context, the 7B model took 88 seconds to start answering on my M3 Pro. The 1.5B took 24. Here's the full benchmark and why I picked the bigger one anyway.

5 min read
326
0
Cover image for blog post: What I learned building a CLI and a native app together
#arquitetura#cli#macos

What I learned building a CLI and a native app together

A momentary SQLite lock tripped my app's circuit breaker, which then showed fallback data and a banner covering the input field. The fix fit in five rules.

4 min read
221
0
Store resources

Keep building after the read

Free and paid products to turn ideas into a foundation you can actually ship.

13 products available
FastAPI Clean Architecture
R$47.00

nextjs · boilerplate

FastAPI Clean Architecture

Boilerplate de API em Python com FastAPI, organizado em Clean Architecture (router, service, repository e adapters por módulo). Inclui autenticação JWT com hashing bcrypt, MongoDB, testes com pytest e cobertura, Dockerfile e docker-compose para subir localmente, e documentação Swagger/OpenAPI automática. Repositório de origem privado; snapshot técnico verificado antes da publicação.

View product
React Native Boilerplate
R$97.00Store resources

react · boilerplate

React Native Boilerplate

A React Native foundation for iOS and Android apps with Expo, Clean Architecture, MVVM, Firebase, and native modules. Technical reference from VaiDeFut, with public Google Play distribution and a documented iOS publishing flow.

View product
AI Agents Starter Kit
FreeStore resources

nextjs · boilerplate

AI Agents Starter Kit

A free open-source kit for getting started with coding agents across Claude Code, Codex, Gemini, Copilot, and OpenCode. The public repository confirms an MIT license.

View product
AI First MongoDB
R$37.00

nextjs · boilerplate

AI First MongoDB

A white-label AI-first foundation for shipping SaaS products with Next.js, chat, RAG, memory, tenants, and documentation. The verified snapshot documents Supabase rather than MongoDB; that limitation is explicit. MongoDB, Redis, and RabbitMQ require a compatible integration/configuration.

View product
AI SaaS First Ultra
R$97.00Store resources

nextjs · boilerplate

AI SaaS First Ultra

An advanced white-label, multi-tenant AI-first foundation for accelerating products with Next.js, chat, RAG, memory, and documentation. The verified snapshot does not prove a distinct Ultra layer; that limitation stays explicit while provider, cache, and queue swaps remain visible.

View product
AI SaaS First Firebase
R$37.00

nextjs · boilerplate

AI SaaS First Firebase

A white-label, multi-tenant foundation for turning an idea into an AI-first SaaS with Next.js, chat, RAG, memory, and documented security. The verified snapshot uses Supabase; the name identifies the source repository. Provider, cache, and queue boundaries stay explicit; Redis and RabbitMQ are configurable integrations.

View product
Buy me a coffee
R$9.99

react · portfolio

Buy me a coffee

A one-time contribution that supports free technical content, research, and the continuity of relevant projects published by Anderson Lima. You choose the amount; there is no subscription.

View product
React TestForge — Vitest + Playwright Starter
Free

react · boilerplate

React TestForge — Vitest + Playwright Starter

A free React starter for building a reliable test suite from the first commit, combining Vitest, Testing Library, Playwright, Vite, TypeScript, Zustand, React Query, MirageJS, and PWA. The repository does not declare an SPDX license; review its terms before commercial use.

View product
React Cupertino UI
Free

react · portfolio

React Cupertino UI

A public React, TypeScript, and Vite monorepo for exploring a component library with a native-inspired visual language. The current README is minimal and does not declare an SPDX license; treat it as a free preview.

View product
IgnitionStack
R$97.00Store resources

nextjs · saas

IgnitionStack

An AI-first SaaS boilerplate with Next.js, Supabase, Stripe, and provider routing to move from the first prompt toward a real deployment faster. AI, data, email, cache, and queue adaptations stay explicit; Redis and RabbitMQ are configurable integrations.

View product
LuminALL Boilerplate – Multi-Tenant AI SaaS Starter Kit
R$9.99Store resources

react · saas

LuminALL Boilerplate – Multi-Tenant AI SaaS Starter Kit

A React + TypeScript starter for multi-tenant SaaS with Firebase, Atomic Design, themes, PWA, product screens, MirageJS, and Gemini chat extensible to other providers. Validate production requirements, costs, and integrations before publishing.

View product
React Zero to Hero Starter
Free

react · boilerplate

React Zero to Hero Starter

A public React starter with TypeScript, Zustand, React Query, Tailwind CSS, PWA, and documented AI integrations. The repository does not declare an SPDX license; review its terms before commercial use.

View product
SaaS Landing Page
R$19.99

nextjs · saas

SaaS Landing Page

A Next.js, TypeScript, and Tailwind CSS SaaS landing page with SEO, themes, i18n, PWA, and integration points for auth, Stripe, and AI. A clear foundation for leaving the blank screen behind and shaping your positioning.

View product
Explore all products