frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Show HN: StaticSearch – a simple search engine for static sites

https://github.com/craigbuckler/staticsearch
3•ceeb•21h ago
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!

Detecting toxic work culture early on

https://www.deccanherald.com/education/detecting-toxic-work-culture-early-on-2-3654210
1•rustoo•1m ago•0 comments

RunawayML: Audiovisual Generation

https://runwayml.com/
1•wslh•1m ago•0 comments

Live Dashboard of Proportion of Energy from Various Sources in Taiwan

https://www.taipower.com.tw/d006/loadGraph/loadGraph/genshx_.html
1•komali2•2m ago•1 comments

Show HN: V2.0 of Open SaaS, a free, open-source SaaS boilerplate starter is here

https://opensaas.sh
2•hot_town•2m ago•0 comments

5 Missing After Deadly Mine Collapse in Chile

https://www.nytimes.com/2025/08/01/world/americas/chile-mine-collapse.html
1•DanielVZ•4m ago•0 comments

Show HN: AI HUD for Job Search

https://app.hunterscouts.com/job-search
1•neis•4m ago•0 comments

Great Firewall Report

https://gfw.report/en/
1•samuel246•4m ago•0 comments

We Built Bluey's World

https://www.itsnicethat.com/features/how-we-built-bluey-s-world-cartoon-background-scenery-art-director-catriona-drummond-animation-090725
1•skrebbel•5m ago•0 comments

India has edged out China to become the top smartphone supplier to the US

https://sherwood.news/tech/us-smartphones-are-entering-their-made-in-india-era/
1•decimalenough•7m ago•1 comments

Cybercrooks attached Raspberry Pi to bank network and drained ATM cash

https://www.theregister.com/2025/08/01/cybercrooks_bribed_lackeys_in_physical/
2•rntn•13m ago•0 comments

Our first outage from LLM-written code

https://sketch.dev/blog/our-first-outage-from-llm-written-code
2•ygritte•18m ago•1 comments

Utah wildfires creating "fire clouds" that can form their own weather systems

https://www.cbsnews.com/news/grand-canyon-utah-wildfires-creating-fire-clouds-that-can-form-their-own-weather-systems/
1•geox•19m ago•0 comments

Show HN: I built a worldwide news app, because Apple doesn't want to

https://apps.apple.com/us/app/breaking-news-newsreadeck/id1593025917
1•bubudrc•20m ago•0 comments

Unfortunately We Are Not Living in a "Simulation"

https://www.currentaffairs.org/news/2022/02/unfortunately-we-are-not-living-in-a-simulation
1•Gooblebrai•23m ago•0 comments

Coeffects: Context-Aware Programming Languages

https://tomasp.net/coeffects/
1•dustingetz•23m ago•0 comments

Small Models, Big Wins: Agentic AI in Enterprise Explained

https://blog.premai.io/small-models-big-wins-agentic-ai-in-enterprise-explained/
2•prem_studio•24m ago•0 comments

Launch HN: Societies.io (YC W25) – AI simulations of your target audience

2•p-sharpe•25m ago•0 comments

The Untold Impact of Cancellation

https://pretty.direct/impact
15•cbeach•26m ago•2 comments

Build Privacy Tools, Go to Prison, Samourai Developers Change Pleas

https://www.sambent.com/build-privacy-tools-go-to-prison-samourai-developers-change-pleas/
1•cranberryturkey•27m ago•1 comments

Google rolls out Gemini Deep Think model that tests multiple ideas in parallel

https://techcrunch.com/2025/08/01/google-rolls-out-gemini-deep-think-ai-a-reasoning-model-that-tests-multiple-ideas-in-parallel/
2•thm•39m ago•0 comments

Google Agentspace is GA now

https://cloud.google.com/agentspace/docs/release-notes
1•Cockbrand•40m ago•0 comments

Navy demonstrates multi-day solar UAS flight

https://www.navair.navy.mil/news/Navy-demonstrates-multi-day-solar-UAS-flight/Tue-07292025-1554
4•bookofjoe•41m ago•1 comments

How did Facebook intercept competitor's encrypted mobile app traffic? (2014)

https://haxrob.net/onavo-facebook-ssl-mitm-technical-analysis/
2•taubek•44m ago•3 comments

Platformize It Building a Unified and Extensible Platform Framework [video]

https://www.youtube.com/watch?v=7sx7oV25zYc
1•kvaps•45m ago•1 comments

Detecting Virtual Thread Pinning in Java

https://blog.blockingqueue.com/detecting-virtual-thread-pinning-in-java
1•liviu31•48m ago•0 comments

AI Act: Today, the European Commission Approved the GPAI Code of Practice

https://www.nicfab.eu/en/posts/ai-act-eucom-approves-code-of-practice/
1•nicfab•49m ago•1 comments

Show HN: CodeSwissKnife Bar – Dev tools in your macOS menu bar (offline)

https://codeswissknife.com/codeswissknifebar.html
1•8mobile•49m ago•0 comments

Caught in the Game: On the History and Evolution of Web Browser Gaming

https://ar5iv.labs.arxiv.org/html/2304.14791
2•jicea•49m ago•0 comments

Show HN: Compress Image – Simple Lossless and Lossy Image Compression Tool

https://www.compressimagex.com/en
2•devxiyang•54m ago•1 comments

Full-body scans of 100k people could change medicine

https://www.theguardian.com/science/2025/jul/15/full-body-scans-uk-biobank-project-diseases-detected-and-treated
3•PaulHoule•56m ago•0 comments