We are addicted to writing good code
and we are not going to quit it!

The true story of engineering team extension for Pelago,
the world's first digital addiction treatment clinic.
HealthTech Development

We are addicted to writing good code and we are not going to quit it, but … we say firmly “NOT” to other addictions.

About Pelago (formerly Quit Genius)

The Pelago application helps to get out of alcohol, nicotine, and drug addiction. The solution is based on cognitive behavioral therapy supported by MAT drugs. The therapist and the patient are in regular contact with each other, and access to the application allows them to use the therapy from anywhere on Earth. Additional functionalities provide users with content that supports their fight against addiction.

Our engineers’ contribution

In December 2021, we decided to join the Pelago (formerly known as Quit Genius) team and jointly develop the world’s first digital addiction treatment clinic.

The project is written in TypeScript, as a cloud-native application, in a serverless architecture. We use AWS solutions, Cognito, DynamoDB, RDS, Lambda, SNS, SQS, and EventBridge services. Our team is responsible for the development of the backend written in Node.js. The front-end is developed in Angular, with a plan to move to React in the future. Frontend Developers also use Amazon Chime SDK and GraphQL.

What are we currently working on

So far, we have managed to introduce uniform formatting in the microservices we are developing. Where appropriate, we introduced unit tests, instead of long E2E tests (all written in cucumber-js, i.e. BDD tests).

The number of methods/types of shared libraries has been increased and we improved code deployment by automatically installing shared libraries (CircleCI). We increased the completeness of the data and improved their validation, and thanks to the cooperation with the product team, we developed statistics to measure the patient’s progress.

For medical personnel, we have introduced MFA, using the existing solutions in Cognito. We have improved the authorization efficiency by recognizing user groups. Thanks to the development of a method for updating the data, medical centers gained the opportunity to view the entire history of the user’s treatment.

We are currently working on improving the performance of the application – we have reduced the cold start, split the code of individual websites, and introduced changes on the front-end by splitting the code.

We strive to make the registration process as simple and hassle-free as possible from the end-user point of view. The occurrence of an error or difficult registration on the application side may affect the addict’s decision to start therapy.

The product is also used by employers who offer the Pelago application to their employees as a benefit. For these clients, we develop the automation of the new user registration process, bypassing the verification of entitlements by Customer Managers.

We also implement the automation of the billing process for business clients. The cost of the service depends on the actual number of users using the Pelago service.

There are new challenges ahead of us

In the near future, we plan to change the supplier of services enabling meeting planning. We will be working on the meeting recording feature via AWS Amazon Chime voice recording tools.

We want to create a product that will respond 100% to the needs of users, so we continue to work on efficiency, increasing the intuitiveness of the solution and reducing the number of errors on the side of the application.

By importing data from Excel and using S3, we will improve the way we collect data about the patient before the start of therapy.

Improving infrastructure deployment is important to us, so we intend to introduce a number of changes to Terraform. We want to improve code deployment by changing the code for CircleCI (possible migration to Github Actions). We are also targeting the implementation of event-driven and the use of the latest Event Bridge solution to a greater extent.

We are considering rewriting the code from Angular to React. We also plan to improve the E2E testing using Cypress.

Work with Experienced Designers and Developers

We deliver high-performing, reliable FinTech products fully aligned with your vision and goals.
Contact us and see for yourself.

Olga Pogorzelska
New Business

See next case study


Amman, Jordan

Providing an affordable and simple mobile payments solution that can make lives easier. Even for the unbanked communities.

Industry: FinTech Development
Technology: Google Cloud Platform, React Native, TypeScript
Read More