> For the complete documentation index, see [llms.txt](https://docs.meetnuri.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.meetnuri.com/technology/frontend-and-backend.md).

# Frontend & Backend

**Frontend**

Nuri’s frontend is built with **Next.js** and **Tailwind CSS**, configured as a **Progressive Web App (PWA)** to optimize speed, responsiveness, and accessibility across all devices.

* **Next.js** enables hybrid rendering (combining server-side and static generation) to provide lightning-fast loading, SEO optimization, and dynamic interaction - crucial for time-sensitive user flows like tracking a meal or logging a workout.
* **Tailwind CSS** ensures pixel-perfect UI/UX design, allowing for utility-first, component-based styling that supports mobile-first experiences - a necessity, as 70%+ of wellness app usage occurs on mobile.
* As a **PWA**, Nuri allows users to operate offline - caching key features like the mood selector, fasting timer, and food logger. This design improves reliability and user engagement, especially in fitness scenarios (gyms, outdoor runs, etc.). According to Habit Formation studies, apps with offline tracking can boost consistency by **25–30%**.

**Backend**

The backend is designed for **performance, concurrency, and complex analytics**.

* **Node.js** powers real-time responses - ideal for syncing dynamic user inputs like nutrition logs or fitness data.
* **Redis** provides low-latency caching for frequently accessed datasets (e.g., macro summaries, mood streaks), dramatically reducing load times and boosting responsiveness.
* **PostgreSQL**, a powerful relational database, manages deep user profiles, time-series symptom data, and behavioral metrics. Its ACID compliance ensures data accuracy and its support for advanced queries allows Nuri to correlate:
  * Fitness intensity ↔ Macronutrient burn
  * Fasting duration ↔ Mood fluctuations
  * Nutrient gaps ↔ Sleep & energy levels

This architecture positions Nuri to offer **real-time, science-backed coaching** at scale, while maintaining data integrity and security.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.meetnuri.com/technology/frontend-and-backend.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
