How this portfolio is built

The architecture, accessibility, privacy, and continuous-delivery decisions behind rafaelsolis.dev.

A portfolio looks like a small site until its real constraints are listed. It must publish Spanish and English content, let an editor manage that content without changing files, keep a private area private, and load gracefully on devices that do not run graphical effects. It should also be readable, keyboard navigable, and understandable when motion is reduced. At rafaelsolis.dev, the guiding decision is that the document is the product and presentation supports it. The visual direction borrows the structure of a technical specification, but it avoids turning every fact into a decorative gauge. That starting point makes hierarchy, writing, contrast, and routes the first problems to solve. Animation can enrich the experience, but it cannot be the only doorway to an idea.

The repository organizes that work as a monorepo with one web application and packages with distinct responsibilities. The app contains the public routes and the admin panel. The database package owns the schema, client, and queries. Another package shares types and validations that cross the server-to-browser boundary; the design system and three-dimensional layer live separately. These divisions are not there to maximize the folder count. They make explicit which part is allowed to know what. Lint rules prevent selected imports across boundaries: direct Prisma access belongs to the data package, while the visual layer receives typed properties. A scene can therefore change without understanding a query, and a query can change without opening graphics code. The boundaries turn architectural intent into a check instead of a convention remembered only during review.

The most important separation is between manageable data and publishable data. A project may be public, anonymous, or a draft, and its public projection is decided inside the data queries. The design does not rely on every page remembering to remove a client name or restricted image. Public routes receive an already filtered shape, while unfiltered access stays within the session-protected panel. Translations follow a related idea: title, summary, and body are stored as rows identified by entity, field, and language instead of adding one column per language. That is useful for a bilingual CMS because a new translatable field does not require another language-specific schema column. It still requires editorial validation, however, so missing translations and intentional fallbacks remain visible rather than silently becoming incomplete pages.

Progressive enhancement is another architectural boundary. Primary content is rendered with HTML and CSS; the three-dimensional layer arrives later and can be omitted when WebGL is unavailable, a device needs the light mode, or a person prefers reduced motion. The repository declares an initial-JavaScript budget below 180 KB gzip for Spanish and English home and case-study routes, and checks it as a CI target. That number is a design guardrail, not a claim that every real visit will experience identical performance: networks, caches, devices, and content vary. The reusable lesson is to measure the cost of first access separately from the most conspicuous effect. If reading and navigation already work, lowering GPU work does not lower the meaning. It also gives accessibility and performance decisions a shared foundation rather than treating them as cleanup.

The private panel combines several concrete controls without presenting them as an absolute guarantee. Authentication uses WebAuthn passkeys, and sensitive pages and actions validate the session on the server; an early cookie check is only an initial barrier. Configurable credentials, including mail and AI-provider secrets, are encrypted with AES-256-GCM before persistence, while the encryption key comes from the environment. The interface returns status indicators or masked fields instead of sending stored secrets to the browser. A confidentiality script also scans versioned files for protected names when its private local list is available. These layers have different scopes. They reduce accidental exposure, but they do not replace permission review, key rotation, safe backups, dependency maintenance, or an incident-response practice. Precise scope is more useful than security superlatives.

Analytics avoids tracking cookies and records events and visits with a session hash. For that identifier, the application combines the source address, user agent, a server seed, and the UTC date, then retains the hash rather than the raw IP. Daily rotation reduces the ability to link observations from the same origin over longer periods, but it is better described as minimization than mathematical anonymity: a derived identifier still deserves access, retention, and review controls. Contact-form rate limiting uses a different hash because its window may cross midnight. Keeping the two purposes separate avoids reusing a more stable identifier for analytics. Privacy design begins by asking which input each feature needs and for how long. It does not end when a cookie banner disappears, and it should leave room to revisit assumptions as traffic and product needs change.

The build and its checks run outside the VPS. GitHub Actions installs dependencies, checks lint, types, tests, and the build, then runs the size and Lighthouse gates defined by the project. The deployment workflow proceeds automatically only after successful CI for the still-current revision of the main branch. Compilation happens on the runner; the workflow packages the standalone output, transfers a release, switches the active link, and reloads only the portfolio process. Versioned migrations travel through a tunnel to the database instead of using destructive schema synchronization. This setup responds to a shared server with limited resources. The lesson is not that every portfolio needs the same vendors. It is to place work where failure is observable and impact is contained: content before effects, public-data boundaries near the source, explicit checks before activation, and repeatable delivery instead of invisible manual steps.

← All notes

Is your company facing something similar? Let’s talk.