Blog
AWS, architecture, engineering decisions, side projects.
- IT 7 min read
Sherpa: un indice di analisi statica che riduce il consumo di token AI del 60%
Come ho costruito un indice pre-calcolato del codebase che sostituisce le chiamate esplorative grep/file-read con un singolo manifest — riducendo il consumo di token del 60% sulle domande strutturali.
ai claude tooling typescript productivity - EN 7 min read
Sherpa: a static analysis index that cuts AI token consumption by 60%
How I built a pre-computed codebase index that replaces exploratory grep/file-read calls with a single manifest — and reduced token usage by 60% on structural questions.
ai claude tooling typescript productivity - IT 5 min read
Da Create React App ad Astro: come ho riscritto il mio portfolio senza perdere una riga di React
Perché ho abbandonato CRA dopo anni, cosa significa scegliere Astro per un progetto React esistente, e i problemi concreti che ho risolto lungo la strada: SVG nel workerd di Cloudflare, islands architecture, alias Vite.
astro react cloudflare vite performance - EN 5 min read
From Create React App to Astro: migrating my portfolio without rewriting a single React component
Why I ditched CRA, what it means to choose Astro for an existing React project, and the concrete problems I solved along the way: SVGs in Cloudflare's workerd, islands architecture, Vite aliases.
astro react cloudflare vite performance - EN 6 min read
How I reduced token consumption by 80% with Claude Code
Tools and habits for using Claude Code sustainably: RTK to filter command output, Caveman to compress responses, CLAUDE.md as a context contract, and /compact to prevent sessions from ballooning.
ai claude tooling productivity - IT 7 min read
Come ho ridotto dell'80% il consumo di token con Claude Code
Strumenti e abitudini per usare Claude Code in modo sostenibile: RTK per filtrare l'output dei comandi, Caveman per comprimere le risposte, CLAUDE.md come contratto di contesto, e /compact per non lasciare che la sessione esploda.
ai claude tooling productivity - EN 8 min read
Amazon Selling Partner API in production: what the docs don't tell you
I built an Amazon SP API integration from scratch for a multi-brand fulfillment system. Here are the real challenges: three-layer authentication, per-account rate limiting, feed polling inside Lambda, and idempotent webhook subscriptions.
amazon aws lambda typescript ecommerce - IT 8 min read
Amazon Selling Partner API in produzione: quello che la documentazione non ti dice
Ho costruito da zero l'integrazione con Amazon SP API per un sistema di fulfillment multi-brand. Ecco le sfide reali: autenticazione a tre livelli, rate limiting per account, feed polling in Lambda, e webhook idempotenti.
amazon aws lambda typescript ecommerce - EN 7 min read
Address validation in e-commerce: building a service that actually works
Addresses entered by customers are chaotic: abbreviations, ambiguous postal codes, city names with apostrophes, different formats per country. I built a validation service from scratch. Here are the real challenges.
aws lambda typescript ecommerce nodejs - IT 7 min read
Validazione indirizzi in e-commerce: costruire un servizio che funziona davvero
Gli indirizzi inseriti dai clienti sono caotici: abbreviazioni, CAP ambigui, nomi città con apostrofi, formati diversi per ogni paese. Ho costruito un servizio di validazione da zero. Ecco le sfide reali.
aws lambda typescript ecommerce nodejs - EN 9 min read
From Sanity to browser: event-driven cache invalidation with SQS FIFO
How I built the invalidation pipeline between Sanity and the GraphQL cache: HMAC-signed webhooks, SQS FIFO queue with delivery delay, cascade revalidation via DynamoDB routing table, and selective purge on Stellate + Next.js ISR.
aws sanity graphql ecommerce architecture - IT 9 min read
Da Sanity al browser: invalidazione cache event-driven con SQS FIFO
Come ho costruito il pipeline di invalidazione tra Sanity e la cache GraphQL: webhook con firma HMAC, coda SQS FIFO con delay, revalidazione a cascata via tabella DynamoDB, e purge selettivo su Stellate + ISR Next.js.
aws sanity graphql ecommerce architecture - EN 7 min read
Shopify theme monorepo: sharing Liquid across multiple stores
How I structured a monorepo to manage multiple Shopify themes with shared snippets, without code duplication and without third-party tools — just Node.js, a bash script, and a TOML config file.
shopify monorepo liquid ecommerce tooling - IT 7 min read
Shopify theme monorepo: condividere Liquid tra più store
Come ho strutturato un monorepo per gestire più Shopify theme con snippet condivisi, senza duplicare codice e senza strumenti terzi — solo Node.js, uno script bash e il file TOML di configurazione.
shopify monorepo liquid ecommerce tooling - EN 5 min read
Stellate: how I cached a GraphQL API without touching the backend
A stateless BFF on Lambda means every query hits Sanity and Shopify. I solved it with Stellate as a GraphQL CDN — configuration, scopes for authenticated users, and selective cache invalidation via webhooks.
graphql aws performance ecommerce caching - IT 6 min read
Stellate: come ho cachato un'API GraphQL senza toccare il backend
Un BFF GraphQL su Lambda non ha stato, ogni query ripassa per Sanity e Shopify. Ho risolto con Stellate come reverse proxy CDN — configurazione, scope per utenti autenticati, e invalidazione selettiva via webhook.
graphql aws performance ecommerce caching - EN 5 min read
GraphQL schema stitching: merging Sanity and Shopify into one API
How I unified two separate GraphQL APIs — Sanity as CMS and Shopify as storefront — into a single coherent endpoint, with type namespacing, a custom executor, and cross-schema resolvers.
graphql shopify sanity typescript ecommerce - IT 6 min read
Schema stitching: unire Sanity e Shopify in un'unica API GraphQL
Come ho unificato due API GraphQL distinte — Sanity come CMS e Shopify come storefront — in un singolo endpoint coerente, con type namespacing, executor custom e resolver cross-schema.
graphql shopify sanity typescript ecommerce - IT 7 min read
Algolia su un e-commerce multi-brand: varianti, locale e replica index
Come ho strutturato l'indicizzazione Algolia per un e-commerce con più brand, varianti colore esplose, categorie gerarchiche, indici per lingua e replica per ordinamento.
algolia ecommerce typescript sanity - EN 7 min read
Algolia on a multi-brand e-commerce: variants, locales, and replica indexes
How I structured Algolia indexing for a multi-brand e-commerce: exploded color variants, hierarchical categories, per-locale indexes, and brand-specific sort replicas.
algolia ecommerce typescript sanity