Powering Search With Astro Actions and Fuse.js

With Astro, we can generate most of our site during our build, but have a small bit of server-side code that can handle search functionality using something like Fuse.js. In this demo, we’ll use Fuse to search through a set of personal “bookmarks” that are generated at build time, but return back proper results from a server call.


Powering Search With Astro Actions and Fuse.js originally published on CSS-Tricks, which is part of the DigitalOcean family. You should get the newsletter.

https://css-tricks.com/powering-search-with-astro-actions-and-fuse-js/

Létrehozva 20d | 2025. márc. 11. 16:30:08


Jelentkezéshez jelentkezzen be

EGYÉB POSTS Ebben a csoportban

Worlds Collide: Keyframe Collision Detection Using Style Queries

Interactive CSS animations with elements ricocheting off each other seem more plausible in 2025. While it’s unnecessary to implement Pong in CSS, the increasing flexibility and power of CSS reinfor

2025. márc. 31. 16:40:08 | CSS tricks
Automated Visual Regression Testing With Playwright

With visual regression testing, we can update a page, take screenshots before and after the fact, and compare the results for unintended changes. In this article, learn how to set up visual regress

2025. márc. 28. 16:50:07 | CSS tricks
Case Study: Combining Cutting-Edge CSS Features Into a “Course Navigation” Component

Having been tasked with creating a UI component for navigating the content of an online course, Daniel found himself neck-deep in a pool of new CSS features that he wound up using on the project.

2025. márc. 25. 14:40:06 | CSS tricks
Support Logical Shorthands in CSS

There’s a bit of a blind spot when working with CSS logical properties concerning shorthands.


2025. márc. 24. 15:30:09 | CSS tricks
Revisiting CSS border-image

I’ve used border-image regularly. Yet, it remains one of the most underused CSS tools, and I can’t, for the life of me, figure out why. Is it possible that people steer clear of border-image becaus

2025. márc. 21. 15:40:05 | CSS tricks
Quick Reminder That :is() and :where() Are Basically the Same With One Key Difference

I’ve seen a handful of recent posts talking about the utility of the :is() relational pseudo-selector. No need to delve into the details other than to say it can help make compou

2025. márc. 20. 14:10:22 | CSS tricks
Styling Counters in CSS

Going from the most basic ways to style lists directly in HTML to advanced customization techniques that are even capable of making things that aren't lists look like lists.


2025. márc. 17. 16:30:11 | CSS tricks