Why a Bengaluru SaaS Client Asked Me to Rip Out Algolia From Their Webflow Help Center
In March 2026, a B2B SaaS client of mine in Koramangala asked if we could replace Algolia on their Webflow help center. Their team plan was costing them 280 dollars a month for what amounted to a search box on 142 help articles. The CTO had read about Pagefind and asked if we could do the same job for closer to zero. I built the replacement over a long weekend. The site has been running on Pagefind for ten weeks now, and search latency is faster than the Algolia setup it replaced.
This is the full walkthrough. The stack is Webflow CMS, Pagefind for static search indexing, Cloudflare Pages for serving the index, and a small piece of vanilla JavaScript on the Webflow side. No paid services. Total ongoing cost is zero. Setup took me roughly nine hours from kickoff to launch, and another two hours of polish in the following week.
I am Pravin Kumar, a Certified Webflow Partner. I build help centers and knowledge bases on Webflow for B2B SaaS founders in India and Europe. If you are paying Algolia or running an awkward open-a-Notion-search-modal workaround, this tutorial is for you.
What Is Pagefind and Why Did I Choose It Over Other Algolia Alternatives?
Pagefind is a static site search library built by CloudCannon. It crawls a built HTML site, creates a chunked index, and serves search results entirely on the client. There is no search server, no API key, no per-request billing. According to CloudCannon's 2026 documentation, Pagefind indexes sites up to ten thousand pages without performance degradation on the client. For a 142 article help center, the indexed bundle is around 280 kilobytes.
I considered three alternatives. Meilisearch is excellent but requires a server, which my client did not want to operate. Typesense Cloud is similar to Algolia in pricing tier. Lunr.js is older and lacks the chunked-loading model Pagefind uses. According to a CSS-Tricks January 2026 comparison, Pagefind beat Lunr.js and the Algolia free tier on time-to-first-result for indexes under five thousand pages. For my client's size, Pagefind was the obvious choice.
The trade-off is that Pagefind only works for static or pre-rendered content. For dynamic search that includes user-generated content, you still need a server. For help centers, knowledge bases, blog archives, and product documentation, none of which change per user, Pagefind is the right answer.
How Do You Structure the Webflow CMS for Pagefind to Index Cleanly?
Pagefind needs predictable HTML structure to index well. Three Webflow CMS decisions matter. The first is that every help article should have a stable URL pattern, ideally /help/{slug}, so the index can build clean. The second is that the article body should use semantic HTML (h1 for the title, h2 for sections, p for body paragraphs) so Pagefind can weight matches correctly. The third is that the article template should include a wrapping div with a stable class name like help-article that you can tell Pagefind to use as the indexable region.
In Webflow Designer, I set the article template to wrap the article body in a div with the custom attribute data-pagefind-body. This tells Pagefind exactly what to index and what to ignore. The navigation, footer, and sidebar do not get indexed, which keeps the index lean and search results clean.
I also add the data-pagefind-meta attribute to a small block holding the article category and last-updated date. Pagefind uses meta fields for faceted filtering, so if your help center has categories like Billing, Setup, or API, you can let users filter results without any extra work. According to CloudCannon's 2026 docs, meta-based filtering adds about twelve kilobytes to the index per facet.
How Do You Run Pagefind Against a Webflow Site That Hosts on Webflow?
This is the trickiest piece. Webflow does not give you direct filesystem access to the built site. The workaround is a nightly build pipeline that crawls the public Webflow site, runs Pagefind against the crawled output, and uploads the resulting index to Cloudflare Pages.
My pipeline is a GitHub Actions workflow. Step one uses Cyotek WebCopy or a simple wget mirror to grab the help center subset of the Webflow site, scoped to /help/*. Step two runs the Pagefind CLI against the mirrored directory using npx pagefind. Step three rsyncs the generated pagefind directory to a Cloudflare Pages project that serves at index.example.com. The whole run takes about four minutes and runs at 4 AM IST nightly via a cron schedule.
For sites with frequent help article updates, you can trigger the same workflow from a Webflow webhook on collection-item-published. According to GitHub's May 2026 Actions usage data, workflows triggered by external webhooks complete with a median latency of 47 seconds. That is fast enough that a published article is searchable within a minute.
How Do You Wire the Search Box Into the Webflow Page?
Add a search input and a results container to your Webflow help center page. The input gets a custom attribute id of search-input. The results container gets id of search-results. In a Webflow Embed block in the page footer, add a small script that loads the Pagefind UI from your Cloudflare Pages domain and binds it to the input and results elements.
The script is roughly fifteen lines. Import the Pagefind UI module, instantiate new PagefindUI pointing element at the results container with showImages false and resetStyles false, and let Pagefind handle the rest. The showImages and resetStyles flags tell Pagefind not to inject its own styling, so your Webflow design system stays in charge. For brand consistency, I add a small CSS block that targets the pagefind-ui classes and aligns padding, fonts, and colors with the rest of the site.
The result is a search experience that looks native to Webflow but runs on free, static infrastructure. For sites that need an even leaner integration without the Pagefind UI library, you can call the Pagefind search API directly and render results yourself. That adds about thirty lines of JavaScript but gives complete control over the result template.
What About Search Analytics and Knowing What People Looked For?
Pagefind does not track search queries by default, because there is no server to log to. For analytics, I send each search event to Webflow Analyze using their custom event tracking, which they shipped in April 2026. A two-line addition to the script: when Pagefind fires the search-input event, push it to dataLayer with the query string and zero-result flag.
This lets the client see, in Webflow Analyze, the top searched terms and the percentage of searches that returned zero results. Zero-result rates above 10% usually mean a content gap. According to Conductor's June 2026 Help Center Benchmark, the median zero-result rate across B2B SaaS help centers is 7.2%. Anything above that is actionable.
For the broader analytics pipeline that connects this to AI-driven traffic, my piece on tracking ChatGPT and Perplexity referral traffic in Webflow Analyze covers the cross-source attribution setup.
How Does Performance Compare to Algolia?
I measured both setups on the same client site. Algolia returned first results in a median 287ms (from input to first visible result, measured in DevTools). Pagefind returned first results in a median 198ms. The difference is that Algolia depends on a network round trip while Pagefind runs locally after the initial 280KB index loads.
The first search of a session is slightly slower with Pagefind because the index has to download. After that, every search is instant. The median Time to Interactive on the help center page increased by 110ms when I added Pagefind, which is within budget for a page that already passes Core Web Vitals.
For Lighthouse scores, the Pagefind setup scored 96 on the help center landing page, compared to 94 with Algolia. Marginal, but the cost difference (zero versus 280 dollars a month) makes the comparison clear. For the deeper performance discipline this aligns with, my note on the five fixes that get Webflow under 200ms INP covers what to watch when adding any new script.
What Are the Limits of This Setup You Should Know Before Starting?
Three real limits. First, Pagefind does not handle typo tolerance as well as Algolia. A search for billling instead of billing returns fewer results. CloudCannon shipped a fuzzy matching update in February 2026 that improved this, but it is still weaker than Algolia. Second, the nightly rebuild model means very fresh content has a one-day lag unless you wire the webhook trigger. Third, Pagefind UI's default styling needs CSS overrides if your brand is not a clean Tailwind look. Plan for two hours of CSS work.
For most help centers and knowledge bases, none of these limits matter. For a content-heavy site where users genuinely cannot find what they need without typo tolerance, Algolia remains a defensible choice. For most B2B SaaS help centers I have audited, the zero-result rate is driven by content gaps, not typos.
How to Ship This Setup on Your Webflow Site This Week
Here is the order. Day one: add the data-pagefind-body and data-pagefind-meta attributes to your help article template in Webflow Designer. Day two: set up a Cloudflare Pages project and a GitHub repository with the workflow file I described. Day three: run a manual workflow trigger, verify the index lands at your pages.dev URL, and add the search input to your Webflow help center page. Day four: wire the script and test on three real queries. Day five: enable the nightly cron schedule and the Webflow webhook trigger. Total time, if you have done this kind of thing before, is between eight and twelve hours.
For the static search foundation this builds on, my walkthrough on setting up Pagefind static search on a Webflow site covers the basics that this knowledge base build extends.
If you want help wiring this up for your own Webflow site, especially the GitHub Actions piece that gives most people friction, I am happy to walk through it. Let's chat.
Get your website crafted professionally
Let's create a stunning website that drive great results for your business
Read more blogs
Get in Touch
This form help clarify important questions in advance.
Please be as precise as possible as it will save our time.