Search by Algolia
What’s the secret of online merchandise management? Giving store merchandisers the right tools
e-commerce

What’s the secret of online merchandise management? Giving store merchandisers the right tools

As a successful in-store boutique manager in 1994, you might have had your merchandisers adorn your street-facing storefront ...

Catherine Dee

Search and Discovery writer

New features and capabilities in Algolia InstantSearch
engineering

New features and capabilities in Algolia InstantSearch

At Algolia, our business is more than search and discovery, it’s the continuous improvement of site search. If you ...

Haroen Viaene

JavaScript Library Developer

Feature Spotlight: Analytics
product

Feature Spotlight: Analytics

Analytics brings math and data into the otherwise very subjective world of ecommerce. It helps companies quantify how well their ...

Jaden Baptista

Technical Writer

What is clustering?
ai

What is clustering?

Amid all the momentous developments in the generative AI data space, are you a data scientist struggling to make sense ...

Vincent Caruana

Sr. SEO Web Digital Marketing Manager

What is a vector database?
product

What is a vector database?

Fashion ideas for guest aunt informal summer wedding Funny movie to get my bored high-schoolers off their addictive gaming ...

Vincent Caruana

Sr. SEO Web Digital Marketing Manager

Unlock the power of image-based recommendation with Algolia’s LookingSimilar
engineering

Unlock the power of image-based recommendation with Algolia’s LookingSimilar

Imagine you're visiting an online art gallery and a specific painting catches your eye. You'd like to find ...

Raed Chammam

Senior Software Engineer

Empowering Change: Algolia's Global Giving Days Impact Report
algolia

Empowering Change: Algolia's Global Giving Days Impact Report

At Algolia, our commitment to making a positive impact extends far beyond the digital landscape. We believe in the power ...

Amy Ciba

Senior Manager, People Success

Retail personalization: Give your ecommerce customers the tailored shopping experiences they expect and deserve
e-commerce

Retail personalization: Give your ecommerce customers the tailored shopping experiences they expect and deserve

In today’s post-pandemic-yet-still-super-competitive retail landscape, gaining, keeping, and converting ecommerce customers is no easy ...

Vincent Caruana

Sr. SEO Web Digital Marketing Manager

Algolia x eTail | A busy few days in Boston
algolia

Algolia x eTail | A busy few days in Boston

There are few atmospheres as unique as that of a conference exhibit hall: the air always filled with an indescribable ...

Marissa Wharton

Marketing Content Manager

What are vectors and how do they apply to machine learning?
ai

What are vectors and how do they apply to machine learning?

To consider the question of what vectors are, it helps to be a mathematician, or at least someone who’s ...

Catherine Dee

Search and Discovery writer

Why imports are important in JS
engineering

Why imports are important in JS

My first foray into programming was writing Python on a Raspberry Pi to flicker some LED lights — it wasn’t ...

Jaden Baptista

Technical Writer

What is ecommerce? The complete guide
e-commerce

What is ecommerce? The complete guide

How well do you know the world of modern ecommerce?  With retail ecommerce sales having exceeded $5.7 trillion worldwide ...

Vincent Caruana

Sr. SEO Web Digital Marketing Manager

Data is king: The role of data capture and integrity in embracing AI
ai

Data is king: The role of data capture and integrity in embracing AI

In a world of artificial intelligence (AI), data serves as the foundation for machine learning (ML) models to identify trends ...

Alexandra Anghel

Director of AI Engineering

What are data privacy and data security? Why are they  critical for an organization?
product

What are data privacy and data security? Why are they critical for an organization?

Imagine you’re a leading healthcare provider that performs extensive data collection as part of your patient management. You’re ...

Catherine Dee

Search and Discovery writer

Achieving digital excellence: Algolia's insights from the GDS Retail Digital Summit
e-commerce

Achieving digital excellence: Algolia's insights from the GDS Retail Digital Summit

In an era where customer experience reigns supreme, achieving digital excellence is a worthy goal for retail leaders. But what ...

Marissa Wharton

Marketing Content Manager

AI at scale: Managing ML models over time & across use cases
ai

AI at scale: Managing ML models over time & across use cases

Just a few years ago it would have required considerable resources to build a new AI service from scratch. Of ...

Benoit Perrot

VP, Engineering

How continuous learning lets machine learning  provide increasingly accurate predictions and recommendations
ai

How continuous learning lets machine learning provide increasingly accurate predictions and recommendations

What new data points have you learned lately? Learning is never ending (hence the phrase “lifelong learning”), so chances are ...

Vincent Caruana

Sr. SEO Web Digital Marketing Manager

Using personalization to boost ecommerce ROI: trends, facts, tips
e-commerce

Using personalization to boost ecommerce ROI: trends, facts, tips

You love blue. You’ve bought several blue items from a particular up-and-coming brand. You’re also a ...

Catherine Dee

Search and Discovery writer

Looking for something?

facebookfacebooklinkedinlinkedintwittertwittermailmail

The Algolia community is one of our strongest assets, and we love when customers tackle projects with our technology in unexpected ways. OneSignal recently reached out to us to share how they used Algolia’s Hacker News Search API to create a demo of their notification platform, and it’s pretty awesome. OneSignal CEO George Deglin joins us for a guest post to explain how they used Algolia to spread the word on the capabilities of Web Push and OneSignal.


At OneSignal, we help mobile and web developer send smarter and more effective push notifications to their users. Our tools make it easy for developers to schedule, localize, A/B test, and monitor the notifications they send.

In late 2014, the World Wide Web Consortium published a Recommendation of HTML5. Among many impressive features, the one that stood out the most to us was Web Push notifications. Finally, web developers were being given a much better alternative to e-mail for re-engaging their visitors.

Earlier this year, Google Chrome was the first browser to publicly launch Web Push support. We were right there with them, announcing our support for this new technology just days later.

We knew we couldn’t simply launch and wait for clients to sign up. Nearly every developer we talked to had no idea that websites could even send push notifications now. We had to find an effective way to demonstrate our technology to thousands of web developers at once, and there’s no better place to do that than Hacker News.

To get upvotes on Hacker News, we’d have to create a demonstration that appealed to readers and wasn’t self-promotional fluff. With the help of Algolia, we found a perfect solution.

Instead of simply talking about our launch of Web Push support, we built a demo that provides real value to Hacker News readers.

We stumbled upon Algolia’s easy-to-use Hacker News Search API after seeking out an easy way to identify trending Hacker News Stories. Next, we created an Algolia query to identify Hacker News stories that received over 250 upvotes. Finally, we would use Web Push to deliver notifications of these stories to users who visited the site and opted-in. Simply by combining the two with a script that would run every 5 minutes, we had built a push notification system for Hacker News that required nothing but the Chrome web browser!

For the developers out there, here’s the code we used.

Our efforts were a success! After posting the story on Hacker News, it quickly received enough upvotes to briefly trend on the front page. Thousands of developers learned about the potential of Web Push and how OneSignal can help them get started with it.

Find the right tutorial for your needs

About the author
Guillaume Dumortier

Recommended Articles

Powered byAlgolia Algolia Recommend

New experimental version of Hacker News Search built with Algolia
product

kevin

API Documentation 2.0: From Browsing to Search
product

Peter Villani

Sr. Tech & Business Writer

Introducing our new navigation
product

Craig Williams

Director of Product Design & Research