St

StaticSearch – a simple search engine for static sites

Hacker News

StaticSearch – a simple search engine for static sites

I'm Craig Buckler and StaticSearch is my simple client-side only search engine for any static site (such as those created by Publican - https://publican.dev/ ). An example can be seen on https://publican.dev/ - click the search icon or press Ctrl|Cmd + K. Static sites cannot easily provide search facilities because there's no back-end framework, language, or database... You can use third-party services such as Alogia, AddSearch, or Google's Programmable Search Engine. These provide a search API, but often have a cost and can take a while to index. JavaScript-only options such as Lunr require you to pass all content in a specific format. Every page then has a full index of your site, so payloads can become large as your site grows. Pagefind analyses your built site and creates WASM binary indexes. But it requires some HTML configuration, uses considerable JavaScript code, and causes Content Security Policy issues. StaticSearch is a simpler option. It: - can use npx so there's no installation - quickly indexes built pages and adds them to your static site (like Pagefind) - requires no special HTML markers - respects robots.txt and meta tag settings - generates pure JavaScript and JSON files - is easy to add to your site using a native web component - includes options for custom search facilities - is vanilla JS compatible with all frameworks - has a tiny payload (13Kb of JS and 4Kb of CSS at most) - incrementally loads index data on demand and caches in the browser - determines when new word indexes are available. npm: https://www.npmjs.com/package/staticsearch Github: https://github.com/craigbuckler/staticsearch Full documentation: https://publican.dev/staticsearch/ All feedback is appreciated!

Share card

Actual performance

3points
Did not reach leaderboard

Launch Intel predictions

Analyze your own launch →
Product HuntOn track for Day 1 leaderboard · Strong signals: google, new, tiny · Missing: mac, agents, macos
81%81% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Indie HackersFits the IH revenue-focused audience · Strong signals: created, compatible · Missing: supports, reddit linkedin, podcasting
80%80% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
Hacker NewsStrong engagement from HN community · Strong signals: ide, io · Missing: https docs, excited, just released
61%61% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
AppSumoMay struggle as an AppSumo deal · Missing: plus, platform, intuitive
47%47% predicted probability of success on AppSumo, based on ML models trained on real launch data.
TrustMRRLess likely to generate early MRR · Strong signals: google · Missing: mobile apps, ios, personal
33%33% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
19%19% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
0%0% predicted probability of success on BetaList, based on ML models trained on real launch data.

Incorrect prediction on native model

Similar products

A
A Simple Search Engine58%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A Simple Search Engine

Hacker News30
AI
AISLER – Search Engine for electronic circuits53%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

AISLER – Search Engine for electronic circuits

Hacker News9
Th
Threadbase – A T-Shirt Search Engine60%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Threadbase – A T-Shirt Search Engine

Hacker News4
Pr
PressPanda, a journalist search engine60%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

PressPanda, a journalist search engine

Hacker News6
Se
Search engine for standalone lectures56%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Search engine for standalone lectures

Hacker News7
A
A reactive search engine45%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A reactive search engine

Hacker News10
Vi
Vineyard - A search engine for Vine60%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Vineyard - A search engine for Vine

Hacker News3
Se
Sentiment Search Engine65%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Sentiment Search Engine

Hacker News12
We
We made a search engine60%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

We made a search engine

Hacker News3
He
Healthforum – Drug Side Effect Search Engine51%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Healthforum – Drug Side Effect Search Engine

Hacker News2