Search by Algolia
What is B2B ecommerce? Everything you need to know
e-commerce

What is B2B ecommerce? Everything you need to know

When you think of “customer experience,” what comes to mind? People, right? Specifically, consumers. Retail customers. That’s easy; the ...

Vincent Caruana

Sr. SEO Web Digital Marketing Manager

What is ecommerce merchandising? Key components and best practices
e-commerce

What is ecommerce merchandising? Key components and best practices

A potential customer is about to land on the home page of your ecommerce platform, curious to see what cool ...

Catherine Dee

Search and Discovery writer

AI-powered search: From keywords to conversations
ai

AI-powered search: From keywords to conversations

By now, everyone’s had the opportunity to experiment with AI tools like ChatGPT or Midjourney and ponder their inner ...

Chris Stevenson

Director, Product Marketing

Vector vs Keyword Search: Why You Should Care
ai

Vector vs Keyword Search: Why You Should Care

Search has been around for a while, to the point that it is now considered a standard requirement in many ...

Nicolas Fiorini

Senior Machine Learning Engineer

What is AI-powered site search?
ai

What is AI-powered site search?

With the advent of artificial intelligence (AI) technologies enabling services such as Alexa, Google search, and self-driving cars, the ...

John Stewart

VP Corporate Marketing

What is a B2B marketplace?
e-commerce

What is a B2B marketplace?

It’s no secret that B2B (business-to-business) transactions have largely migrated online. According to Gartner, by 2025, 80 ...

Vincent Caruana

Sr. SEO Web Digital Marketing Manager

3 strategies for B2B ecommerce growth: key takeaways from B2B Online - Chicago
e-commerce

3 strategies for B2B ecommerce growth: key takeaways from B2B Online - Chicago

Twice a year, B2B Online brings together industry leaders to discuss the trends affecting the B2B ecommerce industry. At the ...

Elena Moravec

Director of Product Marketing & Strategy

Deconstructing smart digital merchandising
e-commerce

Deconstructing smart digital merchandising

This is Part 2 of a series that dives into the transformational journey made by digital merchandising to drive positive ...

Benoit Reulier
Reshma Iyer

Benoit Reulier &

Reshma Iyer

The death of traditional shopping: How AI-powered conversational commerce changes everything
ai

The death of traditional shopping: How AI-powered conversational commerce changes everything

Get ready for the ride: online shopping is about to be completely upended by AI. Over the past few years ...

Aayush Iyer

Director, User Experience & UI Platform

What is B2C ecommerce? Models, examples, and definitions
e-commerce

What is B2C ecommerce? Models, examples, and definitions

Remember life before online shopping? When you had to actually leave the house for a brick-and-mortar store to ...

Catherine Dee

Search and Discovery writer

What are marketplace platforms and software? Why are they important?
e-commerce

What are marketplace platforms and software? Why are they important?

If you imagine pushing a virtual shopping cart down the aisles of an online store, or browsing items in an ...

Vincent Caruana

Sr. SEO Web Digital Marketing Manager

What is an online marketplace?
e-commerce

What is an online marketplace?

Remember the world before the convenience of online commerce? Before the pandemic, before the proliferation of ecommerce sites, when the ...

Catherine Dee

Search and Discovery writer

10 ways AI is transforming ecommerce
e-commerce

10 ways AI is transforming ecommerce

Artificial intelligence (AI) is no longer just the stuff of scary futuristic movies; it’s recently burst into the headlines ...

Catherine Dee

Search and Discovery writer

AI as a Service (AIaaS) in the era of "buy not build"
ai

AI as a Service (AIaaS) in the era of "buy not build"

Imagine you are the CTO of a company that has just undergone a massive decade long digital transformation. You’ve ...

Sean Mullaney

CTO @Algolia

By the numbers: the ROI of keyword and AI site search for digital commerce
product

By the numbers: the ROI of keyword and AI site search for digital commerce

Did you know that the tiny search bar at the top of many ecommerce sites can offer an outsized return ...

Jon Silvers

Director, Digital Marketing

Using pre-trained AI algorithms to solve the cold start problem
ai

Using pre-trained AI algorithms to solve the cold start problem

Artificial intelligence (AI) has quickly moved from hot topic to everyday life. Now, ecommerce businesses are beginning to clearly see ...

Etienne Martin

VP of Product

Introducing Algolia NeuralSearch
product

Introducing Algolia NeuralSearch

We couldn’t be more excited to announce the availability of our breakthrough product, Algolia NeuralSearch. The world has stepped ...

Bernadette Nixon

Chief Executive Officer and Board Member at Algolia

AI is eating ecommerce
ai

AI is eating ecommerce

The ecommerce industry has experienced steady and reliable growth over the last 20 years (albeit interrupted briefly by a global ...

Sean Mullaney

CTO @Algolia

Looking for something?

facebookfacebooklinkedinlinkedintwittertwittermailmail

Get inspiration and speed up your Storefront implementation with this React / Next.js Starter kit.

Anyone who has built an end-to-end Search and Discovery experience knows how demanding it can be to create a robust front-end interface that not only meets software development standards, but also the expectations of end-users in terms of speed and UI/UX best practices. Especially when those experiences serve multiple devices at a time, in particular mobile devices, which represent over 60% of web traffic on B2C ecommerce in 2021.

For several years now, our team has been investing time and resources in the InstantSearch and Autocomplete libraries to provide UI components that developers can use, customize, and extend to compose their interfaces. We’re proud to have empowered thousands of our customers, and look forward to enabling many more in the future. 

Despite these libraries, a non-negligible amount of time and expertise is still required to craft a great experience. Customers still need to figure out how to plug our components into their unique UI/UX design and technology. 

Start with a template, not a blank page

We’re thrilled to introduce our first UI template, focused primarily on ecommerce. The UI Template is a storefront implementation using React / Next.js, which you can use either as a starter kit to build your Algolia-powered solution, or an educational and inspirational resource from which you can cherry pick bits of code.

 

Get started image

 

Live preview

Before we dive into how we built the UI Template, and the elements and components included in the package, let’s take a step back and consider the end-user point of view. Click on the live preview below to test the experience on your own devices.

Try the Live Preview

Or scan it from you phone

qr code pwa ecommerce kit

Functional & technical overview

We built the PWA Ecom UI Template with the end-user experience as a core focus, paying particular attention to making it as production ready as possible. The UI Template’s implementation benefits from the following technology: 

  • Uses the latest version of React Hooks with functional components
  • Includes SEO optimizations (server-side rendering using Next.js, SEO-friendly rooting)
  • Is PWA compliant
  • Scores >90% on WebCoreVitals and Accessibility (via Lighthouse)
  • Is built with TypeScript and Tailwind CSS for theming

From a functional standpoint, the current version of this UI Template focuses on the Search & Discovery experience in the following areas:

  • Homepage, with a focus on Discovery
  • Product Listing Page, with Search & Browse unified into a single experience, allowing end-users to navigate products naturally by combining keyword-based search and facet-based navigation.

Additionally, integrating Algolia Autocomplete.js and React InstantSearch into the template has allowed us to unlock not only the Search & Browse capabilities offered by Algolia, but its more advanced features such as Query Suggestion, Merchandising via Rules, AI Re-Ranking, and AI Personalisation.

In future iterations, the UI template will add more pages, such as a Product Detail page with recommendations, product search review, store locator, and help center.

Finally, in terms of design, the PWA Ecom UI Template is based on the UI and the best practices available in our Ecom UI Design Kit released last summer, which we developed to be as neutral as possible, providing you with the flexibility to make this template fit your brand with minimal efforts and short delivery times. 

A UI template built for commerce, but not limited to a single industry

PWA Ecom UI Template’s essential elements can be adopted for any other use-case and industry, benefiting both the company and the end-users by incorporating best UI practices. Its interaction patterns and best practices, as well as its front-end development logics (e.g., server-side rendering, URL rooting, state management), are relevant for web applications beyond ecommerce. 

We’ve experienced this ourselves when we cherry-picked parts of the UI template (at that time in Beta) to accelerate the development of the Algolia CodeExchange. The main objective of our CodeExchange is to enhance the discoverability of resources available to builders using Algolia.

Preview of the Algolia CodeExchange – In yellow the components re-used from the UI Template

ecommerce template example

Leveraging the UI Template allowed us to meet our tight deadline, and even deliver an experience better than the planned design. The template saved us development and design time by not having to rebuild a mobile-friendly filtering sidebar. This time-saver allowed us to move more quickly to enhance the tool.

 

Get started image

 

Remember, you can use the template in two ways: as a foundation of your future implementation, whether you are re-platforming or upgrading your tech stack architecture to embrace the Headless approach; and as an educational resource from which you can get inspiration and/or cherry pick bits of code based on your needs.

What do you think?

Our development team is constantly improving and optimizing our product. We would love to hear from you: 

  • Has the UI Template been helpful for your use-case? Did you face any challenges while using it?
  • Is there anything missing in this template that should be added in future iterations?

Please share your thoughts in our Community.

About the author
Alexandre Collin

Product Manager - Frontend eXperiences

linkedintwitter

Recommended Articles

Powered byAlgolia Algolia Recommend

Using UI kits for creating great ecommerce Search and Discovery experiences
e-commerce

Catherine Dee
Alexandre Collin

Catherine Dee &

Alexandre Collin

Harnessing API’s with React: a different approach
engineering

Alexandre Stanislawski

Building a composable front-end search with autocomplete and instant search results
product

John Stewart

VP Corporate Marketing