luka.gouvea
← projects
Work · AutoForest · 09/2025 – 03/2026

AutoForest platform

AI platform for processing forestry data. Backend, inference APIs and deployment pipeline.

Context

AutoForest is a startup building autonomous AI systems for processing forestry data. I owned the backend and infrastructure while the platform moved from prototype to commercial product.

How the platform works

What I did

Architecture

An nginx-proxy with Let's Encrypt takes the traffic and forwards it to Next.js, which authenticates the user with NextAuth and passes the JWT on to two FastAPI services, one for users and one for analysis. The analysis API loads the Keras height and volume models once and processes spreadsheets in threads, so other requests aren't blocked. Next.js also calls an LLM on Groq to map the columns of the client's spreadsheet. On every push to main, GitHub Actions runs the tests, publishes three images to Docker Hub and updates the VPS.

Architecture: AutoForest platformVPS · Docker ComposeGroq (LLM)maps columnsBrowserspreadsheet uploadnginx-proxy:80 · :443Let's Encryptroutes by domainNext.js 16NextAuth + Google/api routes (BFF)forwards the JWTUsers APIFastAPISQLAlchemy · AlembicJWT · Argon2Analysis APIFastAPI + Kerasheight & volumemodels cachedPostgreSQL 18internal networkno exposed portSMTPemailsGitHub Actionstests in Docker3 imagesDocker Hubautoforest/iaforestHTTPS:3000/usersJSON schema/analysisSQLSQLpushscp + sshpullArchitecture: AutoForest platformVPS · Docker ComposeCI/CDBrowserspreadsheet uploadGroq (LLM)maps columnsnginx-proxy:80 · :443Let's Encryptroutes by domainNext.js 16NextAuth + Google/api routes (BFF)forwards the JWTAnalysis APIFastAPI + Kerasheight & volumemodels cachedUsers APIFastAPISQLAlchemy · AlembicJWT · Argon2PostgreSQL 18internal networkno exposed portSMTPemailsGitHub Actionstests in Docker3 imagesDocker Hubautoforest/iaforestVPScompose pullwaits healthchecksHTTPSJSON schema/users/analysisSQLSQLpullscp + ssh
requestdeploy

Stack

FastAPI · TensorFlow · Next.js · Docker · Python · Keras · Pandas · PostgreSQL · React · NextAuth · Pytest · GitHub Actions · Sentry