Skip to content

showcase-songs-search

Demo search app showing Typesense on 32 million MusicBrainz songs

Permissive (OSI) · Apache-2.0

Listed by , founder & editor

25

Health

Dormant

Overview

Stars

208

Last commit

2 years ago

Feb 2025

Repository age

6 years

since Oct 2020

Latest version

–

Contributors

–

Releases

0

last 12 months

Docker pulls

35M

typesense/typesense

Language

JavaScript

This repository is a demo, not a product. It shows Typesense search over a database of 32 million songs from MusicBrainz. The frontend uses the Typesense Adapter for InstantSearch.js, written in JavaScript.

The repo contains the UI in src and index.html, an indexer script that loads MusicBrainz data into Typesense, a 1K-song sample dataset, and a k6 script for load testing the server. You can run it locally with yarn: start a local Typesense server, index the sample data, then start the app on port 3000. The live version runs on DigitalOcean App Platform, backed by a geo-distributed three-node Typesense Cloud cluster with nodes in Oregon, Frankfurt and Mumbai.

Typesense is the open source, typo-tolerant search engine behind it. It positions itself as an alternative to Algolia and an easier option than Elasticsearch. Use this repo as a reference for building a similar search page. The code is Apache-2.0 licensed.

Who it's for

Developers evaluating Typesense against Algolia

It is a working example with real data volume and a load-testing script.

Skip if: You need a packaged search product rather than example code.

Frontend developers building instant search pages

It shows how to wire InstantSearch.js to Typesense through the adapter.

Skip if: You use a different frontend library and want framework-specific examples.

The problem it solves

Choosing a hosted search service like Algolia is hard without seeing an open source engine handle a large dataset. This demo lets you try typo-tolerant search over 32 million records. You can also read the code that indexes and queries them.

Strengths

  • Uses a 32 million song MusicBrainz dataset
  • Includes an indexer script and a 1K sample subset
  • Ships a k6 benchmarking script
  • Apache-2.0 licensed and runs locally with yarn

Trade-offs

  • A demo, not a reusable search product
  • No commits since February 2025
  • Local setup needs parcel-bundler and several yarn steps
  • Live demo relies on Typesense Cloud

Self-host showcase-songs-search

Self-hostable
Yes
Docker image
typesense/typesense
Docker Compose
The repository ships a Compose file

Quick start

npm install -g parcel-bundler # Need to use NPM for this: https://github.com/parcel-bundler/parcel/issues/1036#issuecomment-559982275

yarn
yarn run typesenseServer
ln -s .env.development .env
BATCH_SIZE=1000 yarn run indexer
yarn start

From the project's own install instructions. Check the docs for production settings.

Frequently asked questions

Is it free?

Yes. The code is open source under Apache-2.0.

Can I run it myself?

Yes. Install dependencies, start the local Typesense server, run the indexer and start the app on port 3000.

Do I need the full dataset?

No. A 1K sample subset is included. You can download the full set from MusicBrainz.

Is it a replacement for Algolia?

The repo is only a demo. The Typesense engine behind it is the Algolia alternative.

Similar tools in Site search engines

showcase-books-search

Site search engines

Demo app showing typo-tolerant book search on 28 million OpenLibrary records with

180 20 2 years ago Dormant Apache-2.0

Apache Solr

Site search engines

Lucene-based search platform for teams replacing Elasticsearch, with SolrCloud clustering

1.7k 876 today Active Apache-2.0

Fess

Site search engines

Self-hosted enterprise search server with a built-in crawler and admin UI

1.2k 178 yesterday Active Apache-2.0

Toshi

Site search engines

Rust full-text search engine modeled on Elasticsearch, built on Tantivy

4.3k 135 3 years ago Dormant MIT

Yacy

Site search engines

Self-hosted, peer-to-peer search engine with its own crawler, for the web or an intranet

4.1k 500 20 days ago Slowing GPL-2.0

degoog

Site search engines

2.6k 117 2 days ago Thriving AGPL-3.0