01Project Overview
Andes Data Labs SpA is a Santiago-based analytics company that helps mining and energy companies understand operational data: equipment performance, energy consumption, water use and production output across remote sites in Chile and Peru. Its data science team builds models in Python; its customers see the results through a web application used by site managers, engineers and executives.
That application had grown organically over five years. It was a single-page React app with heavy client-side rendering, inconsistent components and charts built with three different libraries. Dashboards took several seconds to load, especially on the slow connections common at mine sites, and every new screen took weeks because little could be reused.
Andes Data Labs asked Accugile to rebuild the front end. On our advice, the company chose Next.js. We built a server-rendered application with a reusable component library and a consistent charting system, and introduced a delivery process with pull requests, automated tests and demos every two weeks.
The new application scores 97 on Lighthouse performance, dashboards load in about a second, and the team now ships new features roughly twice as fast. Andes Data Labs’ founder says the discipline of the process mattered as much as the technology: the team always knew where the project stood.
02Business Need
The front end had become the bottleneck between strong analytics and the people who needed them.
The data science team was producing better models every quarter, but customers experienced the product through its front end. If dashboards were slow and inconsistent, the quality of the analytics behind them went unnoticed.
03The Vision
The founder set three goals for the rebuild.
04Why Next.js
We compared several options with Andes Data Labs’ team, including improving the existing single-page app. Next.js was recommended for four reasons.
05The Solution
Component Library
- More than 140 components documented in Storybook: layouts, filters, tables, cards, forms and navigation.
- Design tokens for colours, spacing and typography, with light and dark themes.
- Accessible components with keyboard support and correct ARIA roles.
- A shared chart system built on Apache ECharts, with consistent styling, tooltips, legends and export to PNG and CSV.
Application Features
Every dashboard follows the same pattern: a summary row of key figures, filters that apply across the page, and charts that open into detailed views. Once users learn one dashboard, they can use them all.
06How We Worked
The founder had been burned by an earlier, opaque engagement, so we made the process visible from day one.
- Every change made in a pull request, reviewed by a second engineer, with a preview link for Andes Data Labs’ team.
- Automated unit, component and end-to-end tests required before merge.
- Demos of working software every two weeks, followed by a short planning session.
- A public board showing what was in progress, in review and done.
- Performance budgets checked automatically, so no change could make pages slower without being flagged.
07Approach and Phases
Front-end audit, user interviews, performance baseline and technology recommendation.
Design system, component library, chart system, authentication and app shell.
Site overview, equipment, energy and water dashboards rebuilt and released in stages.
Maps, saved views, scheduled reports and migration of remaining screens.
All users moved to the new application and the old app switched off.
New dashboards and features on the same fortnightly rhythm.
08Technology and Architecture
The front end uses the Next.js App Router with React Server Components. Data is fetched on the server from Andes Data Labs’ Python analytics API, cached and streamed to the browser. Client components are used only where interaction requires them, such as filters and chart zooming, which keeps the amount of JavaScript sent to the browser small.
09Security and Accessibility
- Single sign-on through Auth0, connected to customers’ identity providers.
- Role-based access to sites and data, enforced on the server.
- Security headers, dependency scanning and regular updates.
- Accessibility to WCAG 2.1 AA, including keyboard navigation and accessible chart summaries.
10Challenges We Overcame
Rebuilding the front end of a live product used by demanding customers required care.
11How the New Front End Creates a Cycle of Value
12Results
Results compare the new application with the old one, measured by Andes Data Labs and its customers.
Performance
| Measure | Old app | New app |
|---|---|---|
| Median dashboard load | 6.8 s | 1.1 s |
| Lighthouse performance score | 41 | 97 |
| JavaScript sent on first load | 2.3 MB | 310 KB |
| Load time over satellite link (test site) | 18 s | 3.4 s |
Product and Delivery
Just as important, the delivery rhythm has continued. Two years on, the team still demos working software every two weeks, and the component library has grown to support every new dashboard without a redesign.
13Results Across User Groups
Each group of users benefits differently.
“We wanted a fast, modern analytics front end and chose Next.js on Accugile's advice. They built a server-rendered app with a reusable component library, and the performance scores are excellent. What I liked most was their discipline: pull requests, automated tests, and demos every two weeks. We always knew where we stood.”
14Why the Partnership Worked
The founder highlights discipline and transparency as the most valuable parts of the partnership.
15The Partnership Continues
Accugile continues to work with Andes Data Labs on new features:
- Natural-language questions about site data, powered by the company’s models.
- Offline mode for areas with no connectivity.
- Customer-configurable dashboards built from the component library.
- Embedded analytics for customers’ own portals.



