openstax / sifter

Search Book Content using a CSS or XPath selector

Home Page:https://openstax.github.io/sifter/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This searches our books using any CSS selector! You can share the link with others so they can see the results too.

  • πŸ‘€ you can click the results to see the actual content!
  • 0️⃣ Zero infrastructure to maintain!
  • 🐁 just 150 lines of JS code!
  • πŸ”— share your search with others!
  • ⚑ subsequent searches are Lightning fast! (reload the page)
  • πŸ”Œ you can search offline!

Examples

Knowledge of CSS selectors or XPath selectors is required for searching. See Help for a quick reference and links to more comprehensive documentation.

Screencap

screencap

What is this sorcery?

It is a PWA which uses service-workers to run offline & cache the books locally (see the Lighthouse tab in Chrome).

It runs in your browser and pulls content from archive-staging.

So, are you saying the next time I'm ice-climbing in the Himalayas or free-soloing El Capitan I can find out which books have subfigures in them?

Absolutely!

Development

  1. clone this repository and switch to this directory
  2. start a little static webserver by running python -m SimpleHTTPServer 8080 or python3 -m http.server 8080 depending on your Python version
  3. visit http://localhost:8080/

ToDone

  • Search CNXML
  • Select subset of books to search
  • Change which server to get content from (currently archive-staging)

About

Search Book Content using a CSS or XPath selector

https://openstax.github.io/sifter/


Languages

Language:JavaScript 84.8%Language:HTML 15.2%