Fuse
Tailwind CSS
Our great sponsors
Fuse | Tailwind CSS | |
---|---|---|
60 | 1,275 | |
17,438 | 77,985 | |
- | 1.8% | |
6.4 | 8.8 | |
23 days ago | 7 days ago | |
JavaScript | TypeScript | |
Apache License 2.0 | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Fuse
-
Show HN: A fast, accurate and multilingual fuzzy search lib for the front end
Looks like a neat library.
Iโm curious if thereโs a tl;dr on how this is better or different to Fuse, which is a very popular established client side fuzzy searching library.
oh very cool. would love to see the comparison/benchmark against the library I've used in projects for years (Fuse - https://github.com/krisk/Fuse).
Keep up the great work!
- What is your go to client-side fuzzy searching library?
- Best solution for typing suggestions with a huge array?
-
Search box and results component
Check the docs for your component system's text input component. Not all have specific autocomplete Search components like MUI, you might have to make your own out of your library's text input and menu components plus a fuzzy search library like Fuse.js.
-
How to Create an Astro Search component ๐๐ค
import Fuse from 'fuse.js'; import { useState } from 'react'; // Configs fuse.js // https://fusejs.io/api/options.html const options = { keys: ['frontmatter.title', 'frontmatter.description', 'frontmatter.slug'], includeMatches: true, minMatchCharLength: 2, threshold: 0.5, }; function Search({ searchList }) { // User's input const [query, setQuery] = useState(''); const fuse = new Fuse(searchList, options); // Set a limit to the posts: 5 const posts = fuse .search(query) .map((result) => result.item) .slice(0, 5); function handleOnSearch({ target = {} }) { const { value } = target; setQuery(value); } return ( <> Searchlabel> {query.length > 1 && (
Found {posts.length} {posts.length === 1 ? 'result' : 'results'} for '{query}' p> )}
-
{posts &&
posts.map((post) => (
- {post.frontmatter.title}a> {post.frontmatter.description} li> ))} ul> ); } export default Search;
-
Client side filtering with xState and Fuse.js
After a quick research, Fuse.js seemed like a good fit:
-
Popular Frontend Coding Interview Challenges
Iโd use fuse personally
-
Looking for a tutorial or documentation for a specific GPS application
For any geo-related functionality where I've got control of the data (e.g. an array of objects which represent restaurant locations), I use a library called Geolib (https://www.npmjs.com/package/geolib) along with something like Fuse (https://fusejs.io/) which is a fuzzy-search library for use with local data sources. Unless I absolutely need the support for remote data that I don't control, I always prefer to use local libraries not just for costs but also for consistency and long-term availability.
- Need help/guidance with JS part of asp.net core
Tailwind CSS
-
ChatCrafters - Chat with AI powered personas
This app was built with Svelte Kit, Tailwind CSS, and many other technologies. For a full rundown, please visit the GitHub repository
-
Mojo CSS vs. Tailwind: Choosing the best CSS framework
Unlike Tailwind, which has over 77,000 stars on GitHub, Mojo CSS has about 200 stars on GitHub. But the Mojo CSS documentation is fairly good and you can find most of the information youโll need there.
-
Collab Lab #66 Recap
JavaScript React Flowbite Tailwind Firebase - Auth, Database, and Hosting Vite
-
Show HN: Brutalisthackernews.com โ A HN reader inspired by brutalist web design
- Performance is a feature.
Another common interpretation of brutalism is aesthetic, reacting to overly complicated user interfaces by creating simpler, more direct ones. Tailwind CSS (https://tailwindcss.com), one of today's most popular CSS libraries, promotes this approach in its component examples. There's also a neat library I've seen recently called "Neobrutalism Components" for React that I like (https://neobrutalism-components.vercel.app), providing components with a similar look and feel to Gumroad. This might more accurately be called 'Neo-Brutalism,' as noted in the comments.
A more engineering-centric interpretation of Brutalism focuses on form, structure, and efficiency, drawing significantly from brutalist architecture principles. Apart from the user interface itself, most mobile, desktop, and web applications are extremely bloated and often perform worse than sites from 10 years ago did. While one HTML file might be "less brutalist" than the original HN site, it is substantially more brutalist than any HN mobile app in existence, and offers nearly identical functionality.
A broader interpretation of brutalism, which could be termed 'Meta-Brutalism,' is embodied in the overall experience on this site through UX flows. Yes, in the strictest sense, the original HN site is more Brutalist in many ways, but it only shows 30 articles at a time and does not function as a PWA. For this site, the experience of reading 10 stories is arguably less brutalist, but for quickly browsing through several pages and skimming articles (which is how I read HN) it is a lot faster, and in my opinion, more Brutalist.
My primary inspiration was addressing software and tool bloat in UIs rather than strictly adhering to every principle set forth by David Bryant Copeland. I don't find it convincing that this site "isn't brutalist" compared to really any other experience apart from the Main HN site, and I would argue the overall experience is more brutalist in its performance and scrolling behavior.
As a side note: I generally don't like Brutalist architecture that much although I believe it is unfairly maligned. I visited the Salk Institute once and enjoyed it though (https://www.archdaily.com/61288/ad-classics-salk-institute-l...).
-
Ask HN: Who is hiring? (April 2024)
- Staff Software Engineer ($275k/yr): https://tailwindcss.com/careers/staff-software-engineer
We're small, independent, and profitable, with a team of just 6 people doing millions in revenue, and growing sustainably every year. You'd work directly with the founders on open-source software used by millions of people.
If you like the idea of working on a small team that cares about craft and isn't trying to achieve VC scale, I think this is a pretty awesome place to do your best work.
-
Deploy a Golang serverless function for a demo form with htmx
Instead of Booststrap, I used Tailwind CSS as the CSS library.
-
Shared Tailwind Setup For Micro Frontend Application with Nx Workspace
Tailwind CSS: A utility-first CSS framework for rapidly building custom designs.
-
Building a Dynamic Job Board with Issues Github, Next.js, Tailwind CSS and MobX-State-Tree
Basic knowledge of Tailwind CSS and MobX-State-Tree
-
Open-source timepicker components for Tailwind CSS
Tailwind CSS
-
Exploring Catalyst, Tailwind's UI kit for React
Be sure to have the latest version of Tailwind CSS to avoid compatibility issues, as Catalyst uses the newest version
What are some alternatives?
flowbite - Open-source UI component library and front-end development framework based on Tailwind CSS
antd - An enterprise-class UI design language and React UI library
unocss - The instant on-demand atomic CSS engine.
windicss - Next generation utility-first CSS framework.
emotion - ๐ฉโ๐ค CSS-in-JS library designed for high performance style composition
Material UI - Ready-to-use foundational React components, free forever. It includes Material UI, which implements Google's Material Design.
vuetify - ๐ Vue Component Framework
chakra-ui - โก๏ธ Simple, Modular & Accessible UI Components for your React Applications
element-plus - ๐ A Vue.js 3 UI Library made by Element team
Bulma - Modern CSS framework based on Flexbox
esbuild - An extremely fast bundler for the web
twind - The smallest, fastest, most feature complete Tailwind-in-JS solution in existence.