ХабрПостыНовостиМегапосты?

We design a professional front-end for a messenger

Demo
Demo

Previously, I wrote an article, "Writing a High-Performance Viewport for a Messenger" / Habr, which demonstrated the creation of a simple viewport for a messenger, and it wasn't based on a cross-platform solution.

Selection of technologies

Before creating our future messenger, we need to decide on the technology we'll use for its development. Among web development tools for single-page applications (SPAs), Angular and React are clear favorites. I won't dwell on the advantages of each of these tools, but will focus on Angular, as I've previously conducted research on non-classical virtualized lists and found that it handles this task better than React.

A solution for creating non-classic virtualized lists using Angular's ng-virtual-list and React's rcx-virtual-list (not yet cross-platform, as Angular handles this task better).

Technical requirements

  1. We'll create a group viewing area that will open from the dock.

  2. A viewing area for messages, sorted by creation date.

  3. A process for editing and deleting messages.

  4. A message compose block.

  5. A search for messages by substring.

  6. A unique design with themes.

  7. A cross-browser and cross-platform solution.

Developing a solution

Let's create a new Angular project; in this example, we'll use version 20.x. Add the ng-virtual-list package and configure it as described.

I'll provide the source code for the ng-virtual-list-chat-demo project right away. Later, I'll highlight key points in the repository code to explain it in more detail.

The project runs entirely on mocks, and the transport is implemented using mock services.

Services

Main components

The design of the elements is developed with gradient fill animation in mind.

The solution works in any browser and on any platform.

Live demo: https://chat-demo.eugene-grebennikov.pro/

Live demo ng-virtual-list: ng-virtual-list-examples

P.S.: If you liked the project, please rate the ng-virtual-list tool for working with virtualized lists with ⭐ stars.

@djonnyx
02.03.2026 12:30 UTC
Первоисточник