Today's Deep-Dive: Typesense
Ep. 217

Today's Deep-Dive: Typesense

Episode description

This episode introduces Typesense, an open-source, fast, and user-friendly search engine designed to simplify search experiences. It highlights Typesense’s key features, such as typo tolerance, in-memory indexing for speed, and ease of use, making it accessible without requiring deep technical expertise. The page compares Typesense to other search tools like Elasticsearch and Algolia, emphasizing its simplicity, cost-effectiveness, and flexibility, particularly for developers and businesses. It also details Typesense’s performance capabilities, including handling large datasets with low response times and its adoption by various companies, serving over 10 billion searches monthly. Additionally, the page discusses Typesense’s licensing model, community support, and paid support options, concluding that it is a powerful, efficient, and delightful search tool that could revolutionize digital interactions.

Gain digital sovereignty now and save costs

Let’s have a look at your digital challenges together. What tools are you currently using? Are your processes optimal? How is the state of backups and security updates?

Digital Souvereignty is easily achived with Open Source software (which usually cost way less, too). Our division Safeserver offers hosting, operation and maintenance for countless Free and Open Source tools.

Try it now for 1 Euro - 30 days free!

Download transcript (.srt)
0:00

Welcome welcome welcome to the deep dive the show that's well your shortcut to

0:04

being genuinely well informed

0:06

We cut through the noise to get you straight to the insights that matter most

0:09

Before we jump into today's topic though a huge shout out to our supporter safe

0:14

server

0:14

They're the experts you want for software hosting and they're a real partner in

0:18

digital transformation

0:20

Basically helping you level up your tech and navigate that whole complex digital

0:24

world if you're looking to empower your projects

0:27

Definitely check them out at WWW dot safe server dot DE again. That's WWW dot safe

0:32

server dot DE

0:33

Okay, so let's be real in today's world. We're just swimming maybe drowning in

0:39

information, right?

0:40

Whether you're trying to find out one perfect pair of shoes online or maybe

0:43

pinpoint a specific song in a giant music library

0:45

Or digging for that crucial file buried somewhere. We all want the same thing

0:48

instant access effortless find exactly what you need right away

0:51

No messing around and today we're taking a deep dive into type sense

0:54

It's a really powerful open source tool designed specifically to make those search

0:57

experiences less frustrating and honestly delightful

1:00

That's a great way to put it. Yeah type sense is fundamentally an open source

1:03

lightning fast search engine

1:05

But it's like built for mere mortals. That's how they put it. The main goal is top

1:10

performance

1:11

Absolutely, but just as important as ease of use

1:13

It's about making sure you don't need you know

1:16

A PhD or a huge dedicated team to get fantastic search working or even just to

1:20

understand what it can do it kind of

1:22

Demystify search deck. I like that for mere mortals

1:25

Okay

1:26

So our mission for this deep dive unpack what type sense is see how it stacks up

1:30

against the big often way more complex

1:32

Players out there and figure out why it's getting so much attention for making

1:36

search powerful

1:37

But also accessible and well efficient for pretty much everyone

1:40

We've gathered insights straight from the type sense github repository and their

1:44

official website

1:45

So we're getting it from the source

1:46

Think of this as your fast track to understanding what might be the next big thing

1:51

in search

1:51

Okay, let's uh, let's make this real

1:53

think about those everyday search frustrations, you know the feeling you type

1:58

something hit enter and you wait or

2:00

Worse you make one tiny typo just one letter off and boom no results found so

2:05

annoying

2:05

Or maybe you get too much back just a flood of stuff that isn't quite right and you

2:09

feel totally lost

2:10

We want fast easy precise, but search often feels more like I don't know digging

2:15

through a messy attic. Oh, absolutely

2:17

It's a common pain point and that's exactly where type sense comes in is this

2:22

Elegant solution at its core. It's a fast

2:25

typo-tolerant in memory fuzzy search engine

2:29

Okay, let's break that down a bit because those terms are key to the no PhD

2:33

required idea fuzzy

2:34

Just means it's forgiving you misspell something only remember part of a name

2:38

Type sense is smart enough to often guess what you meant and still find it

2:42

So it understands intent not just the exact letters I type exactly it gets what you

2:46

meant not just what you typed

2:48

That's huge for user experience and then in memory. This is really interesting

2:53

because it's core to its speed

2:54

It means the search index the data it's searching is loaded right into the computer's

2:58

RAM. It's working memory

3:00

Okay, so like keeping the important stuff right on your desk instead of filed away

3:04

somewhere precisely imagine looking for a book

3:06

Is it faster to grab it off the shelf next to you or go search boxes in the garage

3:11

in?

3:11

Memory is having it right there on the shelf

3:14

Super fast lookups. It's all designed to cut complexity and give you that genuinely

3:18

delightful fast search without needing deep technical expertise

3:22

That attic versus bookshelf analogy really clicks. Okay, so here's where it gets

3:27

like really interesting for a lot of folks

3:29

Type sense often gets mentioned as an alternative

3:31

Maybe even a better one sometimes compared to big names like elastic search or Algolia

3:36

For someone starting out or even a developer looking for a simpler way. What really

3:40

sets type sense apart? Why choose it?

3:43

Yeah, the differences are pretty stark when you look at actually using them take

3:46

elastic search. It's powerful

3:48

No doubt hue scale complex queries. It can do a lot, but it's often a really big

3:54

piece of software

3:56

Setting it up tuning it scaling it that could be complex often needs specialized

4:01

teams

4:01

Significant ongoing effort so a big investment in just managing the search part,

4:06

right?

4:06

You have to ask do you want your team focused on managing search infrastructure or

4:10

building your actual product?

4:11

Type sense flips that it's designed to be lightweight

4:14

But still really powerful and scalable and it comes as a single binary one file

4:18

seriously

4:19

Yeah, pretty much you download one file run it and you're basically ready to go. No

4:23

complex installs

4:24

No fighting dependencies. It's plug-and-play for search. The focus is really on

4:29

Developer happiness a clean well documented API

4:33

That's a toolkit for programmers to interact with it and the API is designed to be

4:37

straightforward

4:38

So it you know, it just works well out of the box less tinkering needed Wow

4:42

Okay, one file install sounds amazing for anyone who's struggled with setup before

4:46

so what about Algolia then?

4:49

That's often a hosted service people know how does type sense compare there,

4:52

especially cost and flexibility wise?

4:53

That's a really important comparison. Algolia is great performs

4:57

Well good UX, but it's proprietary hosted search as a service

5:01

The potential issue there is cost as your site or app grows you hit search limits

5:06

Indexing limits and suddenly your bill can jump it can get expensive fast

5:09

Ah the scaling cost trap exactly type sense being open source gives you the choice

5:14

run it on your own servers

5:16

Totally free beside your server costs. That's potentially huge savings as you scale

5:20

or if you want managed convenience

5:23

There's type sense cloud, but its pricing is different. It's based on fixed hourly

5:27

costs for the server resources

5:29

It's predictable not based on how many records you have or how many searches people

5:34

do which can be hard to predict

5:36

And budget for with other services. Okay, predictable pricing is a big plus any key

5:40

technical differences besides the hosting model

5:43

Yes a key one for efficiency type sense can give you sorted results from a single

5:47

index

5:48

So if you want users to sort products by price or by date or by rating type sense

5:53

handles that efficiently with one main data structure

5:55

Algolia often needs you to create separate duplicate indices for each sort order

5:59

sort by price

6:01

That's one index sort by date another index which means more memory usage more

6:05

complexity

6:06

Right more memory more management overhead now to be fair

6:09

Algolia does have some very mature features like built-in personalization and

6:12

server-side analytics that types sense is still building out

6:16

But for core search functionality and especially for analytics

6:20

You can easily use standard web analytics tools with type sense on the client side

6:25

for now

6:25

For many the simplicity cost and open source benefits outweigh those current

6:30

differences

6:30

Yeah, it really sounds like ease of use is deeply embedded and the source is

6:34

mentioned getting from zero to instant search and like

6:37

30 seconds, that's incredible

6:39

Plus multiple easy install options Docker native binaries the managed cloud. It

6:45

seems built to remove friction

6:47

So, okay, it's easy. It's fast. But what about the features?

6:50

What specific things does type sense offer that make the search experience itself

6:54

better smarter more?

6:55

Delightful for the person actually doing the searching right beyond the basics

6:58

There's some really user-friendly features first off typo tolerance. This is

7:02

massive. It handles typos gracefully out of the box

7:05

No special setup needed. Remember the example from their docs search stork and it

7:10

finds stark industries, huh?

7:11

Okay, that's smart. We've all made those typos. Exactly. It just understands then

7:17

the blazing fast speed

7:19

We keep saying it but it's engineered for it builds in C plus plus N aiming for

7:23

under 50 meters response times

7:26

That speed feels good to users. You also get great control with tunable ranking

7:31

sorting fasting and filtering

7:33

Sounds tucky, but it's about control

7:35

Tunable ranking that's decide what's most important in results. Maybe newer items

7:39

first or higher rated ones

7:40

Sorty is obvious. Let users sort by price date etc and

7:44

Faceting and filtering is that like the sidebar options on shopping sites precisely

7:49

like filter by brand filter by size filter by color

7:51

Yeah, it lets users slice and dice the results easily turns a huge list into

7:55

exactly what they want makes finding things intuitive

7:58

Okay, that makes perfect sense very user centric definitely and synonyms are great

8:02

to handle things like pants versus trousers sneakers versus trainers

8:05

Users find stuff even if they use different words then we get into more advanced

8:09

territory, but still kept accessible

8:11

Vector search and semantic hybrid search. This is cool. It's about understanding

8:15

meaning not just key words

8:17

so going beyond exact word matching right think searching for comfortable shoes for

8:22

walking and

8:23

It finds results even if they don't use those exact words because it understands

8:27

the concept. It uses AI models to find

8:30

Eerily accurate results matching the intent Wow. Okay. That's next level

8:36

It is and even more so is conversational search with built-in rag rag stands for

8:42

retrieval augmented generation

8:43

Think chat GPT but running securely over your own data your company Docs your

8:49

knowledge base

8:49

Whatever you index wait, so I can ask it questions in normal language exactly

8:53

You can ask something like what's our policy on international shipping and instead

8:57

of just give you a list of documents where that might be

8:59

Mentioned it retrieved the relevant info from your data and then generates a clear

9:03

natural language answer

9:04

Like our policy states that based on the documents it read that's incredible

9:08

It's not just finding it's answering that changes everything for internal knowledge

9:12

search or customer support bots

9:14

It's a huge leap and there's also geo search perfect for finding things nearby

9:18

Like stores or services within a certain distance and finally federated search

9:22

This lets you search across different types of information at once like one search

9:27

bar could hit your products your blog posts and your help

9:30

Docs simultaneously bringing it all together in one place very neat

9:34

Okay, those features are compelling but you know proof is in the pudding numbers

9:38

talk

9:39

What kind of actual performance are we talking about and who's really using this?

9:42

Can it handle serious scale?

9:45

It definitely handles scale. The benchmarks are pretty telling

9:48

Let's take one example a data set of 2.2 million recipes names ingredients the

9:53

whole thing

9:53

indexing that took only about 900 megabytes of RAM and type sense and on a fairly

9:58

standard server for virtual CPUs it handled

10:02

104 concurrent searches per second a hundred people searching at the exact same

10:06

time

10:07

Yep, and the average processing time just 11 milliseconds near instant or a bigger

10:11

one

10:12

28 million books titles authors categories that used about 14 gigs of RAM same

10:19

server

10:20

It managed 46 concurrent searches per second average time 28 milliseconds

10:24

So even with tens of millions of items it stays incredibly responsive

10:28

All right that directly impacts user happiness and can mean lower server costs for

10:32

you. Those are solid numbers really backs up the speed claims

10:35

What about adoption is it just niche or lots of people using it?

10:38

Oh, it's way beyond me now type sense cloud their managed service is serving over

10:42

10 billion searches every month

10:44

That's massive real-world usage 10 billion. Okay. Yeah, that's serious in the docker

10:49

images

10:49

How developers often run it downloaded over 12 million times? That shows a huge

10:53

active community

10:55

It's being used by all sorts of companies. Yeah from you know, scrappy startups

10:58

building the next big thing to well-known household names

11:01

You can even play with live demos on their site searching 32 million songs or those

11:06

28 million books instantly

11:07

It really shows it off. Okay impressive scale and adoption

11:11

Now that open source aspect is a big draw but licenses

11:16

Sometimes they're confusing you mentioned the server is GPL 3.0, but the client

11:21

libraries are Apache. Can you break that down?

11:23

What does GPL mean for someone using the type sense server?

11:26

Yeah, it's a good question and they've put thought into this so the core type sense

11:31

server is GPL 3.0

11:33

Z the client libraries the bits you use in your app code to talk to the server are

11:38

Apache licensed

11:39

Let's simplify the GPL part for the server

11:41

Think of it like this GPL is designed to ensure that improvements to the core open

11:46

source project

11:47

Benefit the whole community in the long run if you take the type sense server code

11:51

modify it and then distribute that modified version like

11:53

Selling it as a service or including it in software you distribute you generally

11:57

need to make your modifications available under the same GPL license

12:00

Share your improvements back. Okay, so it encourages giving back to the project if

12:04

you build upon it and share it like Linux

12:06

It's exactly like Linux. It's a common model for foundational open source projects

12:10

But here's a key point if you modify the types and server and only use it

12:15

internally within your company

12:16

Without distributing those changes outside you generally don't have to open source

12:20

your internal modifications

12:22

Ah, okay. So internal use gets more flexibility that makes sense for businesses,

12:27

right?

12:27

It protects the open source nature when code is shared but allows private use and

12:33

the Apache license for the client libraries

12:35

That's much more permissive

12:37

It basically means you can easily use those libraries in your own applications even

12:41

proprietary closed source ones

12:42

Without needing to open source your application code just because you're talking to

12:46

typesense so easy integration without strings attached for your own app code

12:50

Precisely. It's a smart balance protect the core projects openness with GPL

12:55

Enable easy adoption in any kind of app with Apache for the clients that really

13:00

sounds like a well-thought-out approach

13:01

And if people run into issues or need help, what's the support situation like it's

13:06

pretty robust

13:07

There's an active public slack community great for general questions getting quick

13:10

feedback from other users

13:11

Even the core team sometimes hangs out there for bugs or feature requests

13:16

Github issues are the way to go standard open source practice and then for

13:20

businesses needing guaranteed response times or private support

13:23

There are paid support options available with SLA's service level agreements. So

13:27

help is there at different levels great

13:30

So community help official issue tracking and paid options for businesses covers

13:35

all bases

13:36

Alright, that brings us towards the end of our deep dive on type sense

13:40

I think the big takeaway is this isn't just another search tool. It's genuinely

13:44

fast super forgiving with typos

13:45

It's open source and really seems built around making developers lives easier while

13:49

delivering. Yeah, truly delightful search experiences

13:52

No PhD required really sums it up

13:55

It makes complex search stuff feel accessible and efficient whether you're just

13:58

starting out or scaling up big time a real game changer

14:00

It seems absolutely and it makes you think doesn't it if a tool like typesense can

14:05

revolutionize something as fundamental as search by focusing on speed

14:09

simplicity and well scar features

14:11

What other parts of our digital lives our everyday online interactions could be

14:17

made significantly better more intuitive

14:19

Maybe even delightful it poses a question

14:21

Where else can we apply this kind of focus on?

14:24

Core user needs and really clever thoughtful engineering to smooth out the friction

14:30

in our digital world

14:31

Something to ponder as we all keep searching for things online

14:34

That's a fantastic thought to end on and once again huge thank you to safe server

14:38

for supporting the deep dive your trusted partner for software

14:41

Hosting and digital transformation find out how they can help you at

14:44

www.safe-server.de one more time

14:47

deep dive

14:47

deep dive