Lima, Peru

Senior full-stack engineer in Lima, Peru. TypeScript, Node.js, React and PostgreSQL, from architecture to production.

Clear boundaries, small changes, proven in production.

Section 1 of 7: What I do

Let's talk
  1. SaaS platforms

    Multi-tenant products with scheduling and billing, on contract-first APIs in hexagonal layers.

    Fastify · OpenAPI

  2. Product interfaces

    Calendars, billing screens and editors with optimistic updates.

    React 19 · TanStack Query

  3. AI in the product

    LLM features where the work happens: bilingual documents and a booking assistant.

    OpenAI · WhatsApp

Section 2 of 7: By the numbers

See experience
years since the first role
7
companies
4
projects
3
technologies in the stack
39
76 months since 2019, across 4 companies.Each bar is a month; its height, months into the role.

Section 3 of 7: Stack

Layer

The toolchain

Every tool here appears in my own commits from the last two years.

Typed end to end

Strict TypeScript from the schema to the screen.

Tested as shipped

Vitest and Playwright against the production build.

Section 4 of 7: Method

See this repository
  1. Dependency runs one way; the domain knows nothing of the framework.

    Explicit boundaries

  2. No abstraction for a future that has not arrived.

    The smallest change

  3. Done means the gates are green and it was seen in production.

    Verify before claiming

  4. What the code cannot say goes into a dated record.

    Decisions in writing

Section 5 of 7: Code

brunogalvan.dev / figures.ts
import { roles, type Month } from './experience';
import { projects } from './projects';
import { stack } from './stack';

// Every figure the site states is computed here from the record, at build
// time, so a number can never contradict the roles and projects under it.
const toMonths = (month: Month) => {
  const [year, index] = month.split('-').map(Number);
  return (year ?? 0) * 12 + (index ?? 1) - 1;
};
const monthOf = (date: Date): Month =>
  `${date.getUTCFullYear()}-${String(date.getUTCMonth() + 1).padStart(2, '0')}` as Month;

// How long a role lasted, in whole months, counting its first and last month;
// an open role runs to the current month.
export function roleMonths(
  role: { start: Month; end: Month | null },
  today: Date,
) {
  const end = role.end ? toMonths(role.end) : toMonths(monthOf(today));
  return end - toMonths(role.start) + 1;
}

export function figures(today: Date) {
  const now = toMonths(monthOf(today));
  const first = Math.min(...roles.map((role) => toMonths(role.start)));
  return {
    yearsSinceFirstRole: Math.floor((now - first) / 12),
    firstYear: Math.floor(first / 12),
    companies: new Set(roles.map((role) => role.company)).size,
    projects: projects.length,
    publicProjects: projects.filter((project) => project.repository).length,
    technologies: Object.values(stack).flat().length,
  };
}

// One entry per month from the first role to today: the role held that month
// and how many months into it, or null for a month between roles.
export function career(today: Date) {
  const now = toMonths(monthOf(today));
  const first = Math.min(...roles.map((role) => toMonths(role.start)));
  return Array.from({ length: now - first + 1 }, (_, offset) => {
    const month = first + offset;
    const role = roles.find(
      (candidate) =>
        toMonths(candidate.start) <= month &&
        month <= (candidate.end ? toMonths(candidate.end) : now),
    );
    return {
      year: Math.floor(month / 12),
      month: month % 12,
      role: role?.id ?? null,
      tenure: role ? month - toMonths(role.start) + 1 : 0,
    };
  });
}
brunogalvan.dev / headline.astro
---
// The section statement: two short sentences between decorative slashes. The
// slashes are generated content with an empty text alternative, so they are
// neither read aloud nor measured as text. The name lives on the heading and
// the visual copy is hidden, so the per-character reveal never reaches
// assistive technology and the phrase reads whole.
interface Props {
  lines: readonly string[];
  id?: string;
  level?: 'h1' | 'h2' | 'h3';
  size?: 'headline' | 'display';
}
const { lines, id, level: Tag = 'h2', size = 'headline' } = Astro.props;
---

<Tag
  class:list={['headline', `text-${size}`]}
  id={id}
  aria-label={lines.join(' ')}
>
  <span aria-hidden="true" data-reveal>
    {lines.map((line, index) => (
      <>
        {index > 0 && <br />}
        {index < lines.length - 1 ? `${line} ` : line}
      </>
    ))}
  </span>
</Tag>

<style>
  .headline {
    margin: 0;
    text-wrap: balance;
  }
  .headline::before,
  .headline::after {
    color: var(--decor);
    font-family: var(--font-pixel);
  }
  .headline::before {
    content: '/\00a0' / '';
  }
  .headline::after {
    content: '\00a0/' / '';
  }
</style>
brunogalvan.dev / foundation.spec.ts · L91–110
  for (const colorScheme of ['light', 'dark'] as const) {
    test(`${locale}: accessible ${colorScheme} page without overflow`, async ({
      page,
    }) => {
      await page.emulateMedia({ colorScheme, reducedMotion: 'reduce' });
      await page.goto(`/${locale}/`);
      await expect(
        page.getByRole('button', { name: messages(locale).theme.darkMode }),
      ).toHaveAttribute('aria-pressed', String(colorScheme === 'dark'));
      const results = await new AxeBuilder({ page })
        .withTags(['wcag2a', 'wcag2aa', 'wcag21a', 'wcag21aa'])
        .analyze();
      expect(results.violations).toEqual([]);
      expect(
        await page.evaluate(
          () => document.documentElement.scrollWidth <= window.innerWidth,
        ),
      ).toBe(true);
    });
  }

More on GitHub
Language
TypeScriptEvery figure on this page, computed from the record when the site builds.
brunogalvan.dev / figures.ts
import { roles, type Month } from './experience';
import { projects } from './projects';
import { stack } from './stack';

// Every figure the site states is computed here from the record, at build
// time, so a number can never contradict the roles and projects under it.
const toMonths = (month: Month) => {
  const [year, index] = month.split('-').map(Number);
  return (year ?? 0) * 12 + (index ?? 1) - 1;
};
const monthOf = (date: Date): Month =>
  `${date.getUTCFullYear()}-${String(date.getUTCMonth() + 1).padStart(2, '0')}` as Month;

// How long a role lasted, in whole months, counting its first and last month;
// an open role runs to the current month.
export function roleMonths(
  role: { start: Month; end: Month | null },
  today: Date,
) {
  const end = role.end ? toMonths(role.end) : toMonths(monthOf(today));
  return end - toMonths(role.start) + 1;
}

export function figures(today: Date) {
  const now = toMonths(monthOf(today));
  const first = Math.min(...roles.map((role) => toMonths(role.start)));
  return {
    yearsSinceFirstRole: Math.floor((now - first) / 12),
    firstYear: Math.floor(first / 12),
    companies: new Set(roles.map((role) => role.company)).size,
    projects: projects.length,
    publicProjects: projects.filter((project) => project.repository).length,
    technologies: Object.values(stack).flat().length,
  };
}

// One entry per month from the first role to today: the role held that month
// and how many months into it, or null for a month between roles.
export function career(today: Date) {
  const now = toMonths(monthOf(today));
  const first = Math.min(...roles.map((role) => toMonths(role.start)));
  return Array.from({ length: now - first + 1 }, (_, offset) => {
    const month = first + offset;
    const role = roles.find(
      (candidate) =>
        toMonths(candidate.start) <= month &&
        month <= (candidate.end ? toMonths(candidate.end) : now),
    );
    return {
      year: Math.floor(month / 12),
      month: month % 12,
      role: role?.id ?? null,
      tenure: role ? month - toMonths(role.start) + 1 : 0,
    };
  });
}
AstroA heading that opens character by character and still reads whole.
brunogalvan.dev / headline.astro
---
// The section statement: two short sentences between decorative slashes. The
// slashes are generated content with an empty text alternative, so they are
// neither read aloud nor measured as text. The name lives on the heading and
// the visual copy is hidden, so the per-character reveal never reaches
// assistive technology and the phrase reads whole.
interface Props {
  lines: readonly string[];
  id?: string;
  level?: 'h1' | 'h2' | 'h3';
  size?: 'headline' | 'display';
}
const { lines, id, level: Tag = 'h2', size = 'headline' } = Astro.props;
---

<Tag
  class:list={['headline', `text-${size}`]}
  id={id}
  aria-label={lines.join(' ')}
>
  <span aria-hidden="true" data-reveal>
    {lines.map((line, index) => (
      <>
        {index > 0 && <br />}
        {index < lines.length - 1 ? `${line} ` : line}
      </>
    ))}
  </span>
</Tag>

<style>
  .headline {
    margin: 0;
    text-wrap: balance;
  }
  .headline::before,
  .headline::after {
    color: var(--decor);
    font-family: var(--font-pixel);
  }
  .headline::before {
    content: '/\00a0' / '';
  }
  .headline::after {
    content: '\00a0/' / '';
  }
</style>
PlaywrightEvery page checked with axe in both themes, in a real browser.
brunogalvan.dev / foundation.spec.ts · L91–110
  for (const colorScheme of ['light', 'dark'] as const) {
    test(`${locale}: accessible ${colorScheme} page without overflow`, async ({
      page,
    }) => {
      await page.emulateMedia({ colorScheme, reducedMotion: 'reduce' });
      await page.goto(`/${locale}/`);
      await expect(
        page.getByRole('button', { name: messages(locale).theme.darkMode }),
      ).toHaveAttribute('aria-pressed', String(colorScheme === 'dark'));
      const results = await new AxeBuilder({ page })
        .withTags(['wcag2a', 'wcag2aa', 'wcag21a', 'wcag21aa'])
        .analyze();
      expect(results.violations).toEqual([]);
      expect(
        await page.evaluate(
          () => document.documentElement.scrollWidth <= window.innerWidth,
        ),
      ).toBe(true);
    });
  }

Section 6 of 7: Projects

All repositories

A product I build at work, one of my own, and this site, with its code and a case study in the open.

Section 7 of 7: Experience

Full record

From retail systems and an ERP to integrations for education and a clinic-management SaaS.

  1. — Present

    ClinicSay

    Senior Full-Stack Engineer

    Clinic-management SaaS: billing, scheduling, documents and data migration across React 19 and a hexagonal Fastify API.

  2. —

    Métrica Andina

    Senior Programmer Analyst

    Microservices, a Salesforce REST integration and WhatsApp automation for education clients.

  3. —

    Surtidores S.A.C.

    Software Developer (PHP / Laravel)

    Led the new web ERP in Laravel; kept the previous one, on PHP 5, running.

  4. —

    Platanitos

    Web Developer · SAP Analyst

    Web applications for retail, electronic invoicing, and reports joining SAP with SQL.

Contact

Send an email