xStasis × Fora Soft

Lifestyle assessment platform with video guidance

Published: Nov 24, 2026
xStasis results page with the lifestyle score and an explanatory video
Basic assessment page with 68 questions
PRO result with four recommendation videos from a library of 71
xStasis is a web platform that measures how healthy a person's lifestyle is. A visitor answers questions about sleep, food, exercise, mood, self-perception and relationships, and gets an overall score with a breakdown by area and short recommendation videos. We built the product from the ground up: requirements and wireframes, the landing page, the assessment engine, the scoring logic, the results page, user accounts, the environments and the delivery pipeline.
The client is xStasis, a lifestyle company that offers health and lifestyle assessments and courses. The business model is freemium: the basic assessment is free, and a PRO plan unlocks an in-depth assessment with its own results and a larger video library. The platform is for adults who want to understand their habits and improve their physical, emotional and social wellbeing without visiting a specialist first.
xStasis assessment and PRO result in the browser
The system works like this: the assessment runs in the browser, the server scores the answers in three areas (physical, emotional and social) and saves the result to the user's account. This case describes the version we delivered: the full path from the landing page to the PRO result, with the upgrade working without online payment.
The hardest part of the platform is turning assessments written by the client's health experts into a consistent score. Questions differ in format and weight, one question can be labeled with several sub-topics, and the client kept refining both assessments during development: the basic assessment reached version 12 and the PRO assessment version 9. We kept the questions, answer values and weights as data separate from the engine, so a revision from the experts is a change to the data, not to the engine.
xStasis landing page with the free assessment and plans for visitors, free users and PRO users

Who uses the platform

  • A visitor has no account, can read the landing page and take the basic assessment of 68 questions.
  • A free user has an account on the free plan, created after finishing the basic assessment, sees the basic result and can upgrade to PRO.
  • A PRO user has an account on the PRO plan, can take the PRO assessment of 187 questions and gets the PRO result with more recommendation videos.

Highlights

  • One assessment engine for a 68-question and a 187-question assessment, with progress kept in the browser between visits.
  • Weighted scoring on the server: an overall score and physical, emotional and social scores from 0 to 100, plus separate sleep, nutrition and (in PRO) exercise scores saved with the result.
  • Results explained in video: for a free user the overall score picks one of four explanatory videos, and each user gets a set of recommendation videos drawn at random from the plan's library.
  • A visitor takes the basic assessment first and creates an account only when it is time to see the result.
Results page with the lifestyle score, area scores and recommendation videos
Assessment page with one question about sleep and saved progress

Assessment engine for expert-written questions

One engine runs both assessments. Questions and answer options are described as data in the web application, and their scoring values and weights as data on the server. A revision from the client's experts is a change to this data, and we ship it with a regular release.

Each question belongs to one area and is labeled with one or more sub-topics, such as sleep quality, nutrition, exercise schedule, self-perception, moods or quality of relationships. The basic assessment uses 35 sub-topic labels and the PRO assessment 55. Both assessments use single-choice and multiple-choice questions.

Questions are shown up to five per page, and a page holds questions from one area only. The user can move on after answering every question on the page. Answers and the current page are kept in the browser, so a person who closes the tab can continue from the same place in that browser.

Each saved result records the assessment version it was scored with, so it can be traced back to that revision.

Lifestyle scoring

The server turns a set of answers into scores a person can read at a glance. The calculation follows these rules:

  • Each answer is converted to a value between 0 and 1, relative to the worst and the best possible answer to that question. For multiple-choice questions, the range accounts for options that add points and options that take points away.
  • Each question has a weight, so more important questions affect the result more. The PRO assessment uses a finer weight scale than the basic one.
  • Each area score is a weighted average of its questions on a 0 to 100 scale, and the three area scores make up the overall score.

One question uses its own rule: the answer counts as positive only if the user selects at least two of the listed options.

Three sub-topics have their own scores: sleep and nutrition in both assessments, and exercise in the PRO assessment. The server adjusts them with coefficients supplied by the client's experts and saves them with the result.

The server calculates the scores and saves the result in a single database transaction. If any step fails, nothing is saved.

Score breakdown for the physical area with answer values and weights
Explanatory video picked by the overall score and recommendation videos

Results page with video guidance

The results page explains the scores in plain language and in video, so the user does not have to interpret numbers alone.

  • The page shows the overall score and the three area scores, each with its own color and a short explanation.
  • For a free user, the overall score selects one of four explanatory videos: below 25, from 25 to below 50, from 50 to below 75, and 75 or higher.
  • A PRO user gets one explanatory video made for the PRO result.
  • Below the scores, the page shows recommendation videos: two from a library of 12 for a free user and four from a library of 71 for a PRO user. The set is drawn at random once and remembered in the browser, so the page does not change each time it is opened there.
  • A closing video ends the page, one for each plan.

The videos are served from cloud object storage, separately from the application itself.

Basic assessment first, account second

A visitor completes the whole basic assessment before being asked to register, which keeps the entry barrier low while each result is still tied to an account. The flow has four steps:

  • The visitor agrees to a medical disclaimer. A visitor who declines can go back to the consent step or return to the landing page.
  • The visitor answers the questions of the basic assessment.
  • The visitor fills in a short profile: date of birth, gender, height, weight, country, ethnicity, education and occupation. The server checks the profile against fixed lists of countries, ethnicities and education levels.
  • The visitor enters a name, an email and a password. The server creates the account and saves the first result in one step, signs the user in and opens the results page.
Create an account step to see the result after the basic assessment
PRO offer with the in-depth assessment and more videos

Free and PRO plans

The platform shows a free user and a PRO user different assessments, results and videos, so the client can offer the in-depth assessment as an upgrade.

  • The results page of a free user shows a PRO offer with the price and the list of benefits.
  • After the upgrade, the results page invites the user to start the PRO assessment.
  • Before showing the PRO assessment page, the web application checks the user's plan and sends a user without the PRO plan back to the page with their latest result.
  • The results page looks at which assessment the latest result came from and which plan the user has, and shows the matching scores, texts and videos.

In this version the upgrade step switches the account to PRO directly, without an online payment step.

Accounts and password recovery

Users sign up and sign in with an email and a password.

  • Passwords are stored salted and hashed with bcrypt.
  • The session lives in signed cookies that scripts on the page cannot read, which protects it from being stolen by injected code. The cookies carry the HTTPS-only flag whenever the application runs outside a developer's machine. Each time a session is renewed, the server replaces the token used to renew it.
  • A user who forgets the password requests a six-character code by email. The code is valid for six hours.
  • The server gives the same reply to a reset request whether or not the email is registered, so the reply does not reveal whether an email is registered.
  • Setting a new password ends all of the user's existing sessions and starts a new one.
Account security: bcrypt passwords, signed cookies and reset codes
Password reset code by email and the notification queue

Separate notification service

Emails are sent by a separate notification service, so the server does not wait for the mail provider when a user asks for a reset code.

The server puts each email into a Redis queue. The notification service picks the email up, hands it to the mail provider and then marks it as processed. If the notification service is stopped, sign-in and the assessments keep working, and the emails wait in the queue until the service starts again. If the mail provider rejects an email, the error is logged and the send is not repeated.

Environments and delivery pipeline

We set up the environments and the pipeline so that a change reaches each shared environment through the pipeline, without anyone connecting to the hosting machines by hand.

  • Three shared Docker environments (development, testing and pre-production) run behind a Traefik proxy, and developers have a local one. On pre-production, Traefik obtains HTTPS certificates from Let's Encrypt automatically.
  • A push to the development branch deploys the development environment automatically. Testing and pre-production are deployed by starting a pipeline job manually. After a deployment, the pipeline applies database migrations.
  • A SonarQube code quality check runs on every merge request and on the development branch, and the pipeline waits for its verdict. The pipeline also moves the related Jira tasks to the next status after a deployment to development or testing.
Delivery pipeline with a SonarQube check and deployments to three environments

Technical Implementation

🖥 Platforms
Web
🎨 Frontend
Next.js, React, next-i18next, Material UI, React Hook Form, TypeScript
⚙️ Backend
Node.js, Express, Prisma, Joi, JWT, bcrypt, Nodemailer
🗄 Data and messaging
PostgreSQL, Redis (Streams), Cloudflare R2
🐳 Infrastructure
Docker, Traefik, Let’s Encrypt, GitLab CI, SonarQube
xStasis: web