Apache License 2.0

项目介绍

typesense/showcase-recipe-search 是一个托管在 GitHub 上的开源项目,主要使用 JavaScript 编写,采用 Apache License 2.0 许可证,目前获得 519 个 Star、45 次 Fork。

仓库全名
typesense/showcase-recipe-search
开源许可证
Apache License 2.0
Star 数
519
Fork 数
45
未关闭 Issue
4

README 摘要

🥘 Instant Recipe Search, powered by Typesense This is a demo that showcases some of Typesense's features using a 2 Million database of recipes. View it live here: recipe-search.typesense.org Tech Stack This search experience is powered by Typesense which is a blazing-fast, open source typo-tolerant search-engine. It is an open source alternative to Algolia and an easier-to-use alternative to ElasticSearch. The…

完整内容见 GitHub 原始 README 或本页 。

常见问题

showcase-recipe-search 用什么语言开发?

主要使用 JavaScript 编写,采用 Apache License 2.0 许可证,目前有 519 个 Star。

showcase-recipe-search 可以免费商用吗?

仓库采用 Apache License 2.0 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 showcase-recipe-search 的源码?

可以直接克隆仓库:git clone https://github.com/typesense/showcase-recipe-search.git,默认分支为 master;安装与运行步骤见仓库 README。

showcase-recipe-search 最近还在维护吗?

仓库最近一次更新为 2025年6月13日,当前有 4 个未关闭 Issue;Star 数为 519,可作为社区活跃度的参考。

关于

Instantly search 2M cooking recipes using Typesense Search (an open source alternative to Algolia / ElasticSearch) ⚡ 🥘 🔍

描述取自 GitHub 官方 API,中文内容由 GitRead 中文社区 编辑团队整理。

简要分析

热度分
623
价值分
326
活跃状态
活跃

README

🥘 Instant Recipe Search, powered by Typesense

This is a demo that showcases some of Typesense’s features using a 2 Million database of recipes.

View it live here: recipe-search.typesense.org

Tech Stack

This search experience is powered by Typesense which is a blazing-fast, open source typo-tolerant search-engine. It is an open source alternative to Algolia and an easier-to-use alternative to ElasticSearch.

The recipe dataset is from Glorf/recipenlg 🙏!

The dataset is 2.2 GB on disk, with ~2.2 million rows. It took 8 minutes to index this dataset on a 3-node Typesense cluster with 4vCPUs per node and the index was 2.7GB in RAM.

The app was built using the Typesense Adapter for InstantSearch.js and is hosted on S3, with CloudFront for a CDN.

The search backend is powered by a geo-distributed 3-node Typesense cluster running on Typesense Cloud, with nodes in Oregon, Frankfurt and Mumbai.

Repo structure

  • src/ and index.html - contain the frontend UI components, built with Typesense Adapter for InstantSearch.js
  • scripts/indexer - contains the script to index the recipe data into Typesense.
  • scripts/data - contains a 1K sample subset of the recipes database. But you can download the full dataset from the link above.

Development

To run this project locally, install the dependencies and run the local server:

yarn
bundle # JSON parsing takes a while to run using JS when indexing, so we're using Ruby just for indexing

In a separate shell, run typesense server:

# Bellow command needs docker installed
yarn run typesenseServer

ln -s .env.development .env

BATCH_SIZE=1000 yarn run indexer:transformDataset # This will output a JSONL file
yarn run indexer:importToTypesense # This will import the JSONL file into Typesense

yarn start

Open http://localhost:3000 to see the app.

if necessary to install Ruby, we use Ruby 2.7.2:

Deployment

The app is hosted on S3, with Cloudfront for a CDN.

yarn build
yarn deploy

评论

暂无评论