X Bookmarks — 2024 KW36: Vector Search, Cursor Rules, and PayloadCMS Blocks

September 5, 2024

|bookmarks

by Florian Narr

X Bookmarks — 2024 KW36: Vector Search, Cursor Rules, and PayloadCMS Blocks

@sujjeeee — Infinite scrolling + vector search with Drizzle, Turso, and HuggingFace

Infinite Scrolling + Vector Search

Built with @DrizzleORM, @tursodatabase, and @huggingface

Smart stack — Turso is SQLite at the edge with built-in vector support, so you're not bolting on a separate vector DB. Drizzle keeps the type safety, HuggingFace handles embeddings. Combining that with infinite scroll means semantic search results that load progressively rather than dumping everything at once.


@guidsen — Cursor AI rules with Supabase-specific additions

Added my @cursor_ai rules to improve the code suggestions from the AI. Reused quite some from @pontusab, but added some @supabase specific rules in there.

Works like a charm 🫶

Cursor rules are the kind of thing that pays off quietly — you set them once and the suggestions stop drifting into patterns that don't match your project. Supabase-specific rules make sense given how opinionated the RLS setup and auth flow are. Worth keeping an eye on what Guido actually put in there if the rules become public.


@sujjeeee — Next.js parallel routes for role-based UIs

Want to render different UIs based on user roles or manage multiple workspaces on the same route?

@nextjs parallel routes are your go-to solution.

Honestly one of the most underused features in the App Router. Parallel routes let you render multiple pages in a single layout slot, so a /dashboard can show a completely different component tree depending on whether you're an admin or a regular user — no redirect, no conditional import hell. The fact that it also handles workspaces in one route is a nice bonus.


@AlessioGr — PayloadCMS blocks as code fields in the rich text editor

The rich text editor of @payloadcms is so good, we don't need to add new features like code blocks. Simply use our blocks feature and re-use payload's existing code field!

And soon you will be able to trigger the creation of blocks using markdown shortcuts, as seen in the video

That's a clean approach — instead of patching the editor with a custom extension, you reuse the existing code field as a block type and get all the built-in handling for free. The markdown shortcut trigger is the part that makes it actually usable; nobody wants to context-switch to a toolbar button when they're already typing.


@TGUPJ — Canvas for research

maybe a canvas for research?

Hard to say much without seeing what's actually behind the link, but the framing is interesting. Canvas-based research tools keep coming up — the idea being that spatial layout itself carries meaning, which linear note-taking loses. Whether this is another Obsidian-canvas clone or something more opinionated remains to be seen.


@adriankuleszo — 8 common button types in UI

8 most common button types in UI

Good reference for keeping button hierarchies consistent across a design system. Primary, secondary, ghost, outline, icon-only, loading state, destructive, and disabled — getting these right early saves a lot of "why do we have four slightly different blue buttons" conversations later.


@natiakourdadze — 10 SaaS price comparison directories

If you have a SaaS startup, add your product to these 10 price comparison engines to get more traffic!

  1. g2 .com
  2. capterra .com
  3. getapp .com
  4. softwareadvice .com
  5. trustradius .com
  6. saasgenius .com
  7. itcentralstation .com
  8. alternativeto .net
  9. saasworthy .com
  10. [...]

Makes sense — these sites rank well for comparison queries and people landing there are actively evaluating options. Getting listed is free distribution you're leaving on the table if you skip it. The caveat is managing review velocity once you're listed; an empty G2 profile can hurt more than no profile at all.