MyGit

book-searcher-org/book-searcher

Fork: 254 Star: 6371 (更新于 1970-01-01 00:00:00)

license: BSD-3-Clause

Language: TypeScript .

Easy and blazing-fast book searcher, create and search your private library.

最后发布版本: 1.3.0 ( 2023-10-17 18:43:13)

官方网址 GitHub网址

Book Searcher

GitHub stars GitHub forks Release GitHub issues GitHub license

中文版

Easy and blazing-fast book searcher, create and search your private library.

Book Searcher can index metadata for over 10 million books in one minute, and search in 30µs.

Usage

We currently offer both Desktop and Command-line versions. For individual users we recommend using the desktop version.

Desktop

1. Download the pre-compiled desktop installer from Release

Or you can compile by yourself. Refer to Build from source section for instructions.

  • Windows: Book-Searcher-desktop_version_x64.msi
  • macOS: Book-Searcher-desktop_version_x64.dmg
  • Linux:
    • Deb: Book-Searcher-desktop_version_amd64.deb
    • AppImage: Book-Searcher-desktop_version_amd64.AppImage

2. Prepare the index

Refer to Prepare the index section for instructions.

3. Run book-searcher-desktop

Specify the index folder path in the settings menu.

Cli

1. Download the pre-compiled binary from Release

Or you can compile by yourself. Refer to Build from source section for instructions.

2. Prepare the index

Refer to Prepare the index section for instructions.

3. Run book-searcher run

It will listen to 127.0.0.1:7070.

Access http://127.0.0.1:7070/ to use webui, or you can use the original search api.

Deploy with Docker

mkdir book-searcher && cd book-searcher
wget https://raw.githubusercontent.com/book-searcher-org/book-searcher/master/docker-compose.yml
# Prepare the index: put csv files in the directory, and run the following command to create index
docker-compose run --rm -v "$PWD:$PWD" -w "$PWD" book-searcher /book-searcher index -f *.csv
# start book-searcher
docker-compose up -d

Now book-searcher it will listen to 0.0.0.0:7070.

Deploy with Vercel / Netlify

Deploying the frontend to Vercel / Netlify to speed up loading of static resources and provide a reverse proxy to the image service.

Deploy with Vercel

Deploy to Netlify

Original Search Api

You can search by the following fields:

  • title
  • author
  • publisher
  • extension
  • language
  • isbn
  • id

Examples:

  • /search?limit=30&offset=0&title=TITLE
  • /search?limit=30&offset=0&title=TITLE&author=AUTHOR
  • /search?limit=30&offset=0&isbn=ISBN
  • /search?limit=30&offset=0&query=title:TITLE extension:epub publisher:PUBLISHER

We now have two search modes, /search?limit=30&offset=0&mode=explore&title=TITLE&author=AUTHOR

  • filter: the results need to meet all restrictions, default mode
  • explore: the results only need to meet certain restrictions

Build from source

Build Cli version

1. Build frontend

make frontend_preinstall frontend

2. Build book-searcher

TARGET=release make

# move the compiled binary to the project root directory
mv target/release/book-searcher .

Build Desktop version

1. Install frontend dependencies

make frontend_preinstall

2. Build book-searcher-desktop

cargo tauri build

Prepare the index

1. Prepare the raw data

Prepare the raw books metadata and save the csv files to the project root directory.

The raw data is used to generate the index, see Raw data section for details.

2. Create index

You may need to rm -rf index first.

book-searcher index -f *.csv

The finally folder structure should look like this:

book_searcher_dir
├── index
│   ├── some index files...
│   └── meta.json
└── book-searcher

Raw data

This raw data is used to generate index, should be a csv file with the following fields:

id, title, author, publisher, extension, filesize, language, year, pages, isbn, ipfs_cid, cover_url, md5

You will need to export and maintain your own meta information for the books you have purchased, as this project only provides fast searching.

License

book-searcher © The Book Searcher Authors, Released under the BSD-3-Clause License.

最近版本更新:(数据更新于 1970-01-01 00:00:00)

2023-10-17 18:43:13 1.3.0

2023-10-14 22:35:55 1.2.2

2023-10-13 11:07:39 1.2.1

2023-09-23 21:45:13 1.2.0

2023-07-27 10:58:18 1.1.0

2023-02-05 18:59:26 0.9.1

2023-01-23 15:52:23 0.9.0

2023-01-20 19:44:41 0.8.5

2023-01-19 11:36:50 0.8.4

2023-01-14 15:19:47 0.8.3

主题(topics):

books, search, tantivy

book-searcher-org/book-searcher同语言 TypeScript最近更新仓库

2024-12-21 21:40:12 lobehub/lobe-chat

2024-12-21 12:01:51 siyuan-note/siyuan

2024-12-21 10:57:01 ai16z/eliza

2024-12-21 09:15:35 MetaCubeX/metacubexd

2024-12-21 04:50:26 mediar-ai/screenpipe

2024-12-20 19:36:48 vitejs/vite