-
-
Notifications
You must be signed in to change notification settings - Fork 134
-
Describe the problem you're trying to solve
As an active user of Stacker.news, I would love to see a "For You" section added to the header navigation.
Image
I mean, it can be anywhere, maybe after the top filter.
This feature would significantly improve content discovery and user engagement by showing personalized recommendations that dynamically curates posts based on:
Keywords in posts I've:
- Bookmarked
- Zapped
- Stackers I’m subscribed to
Describe the solution you'd like
a page in components/for-you.js with this code and adding the link to the header should fix this:
import { Select } from './form' import { useRouter } from 'next/router' const FILTERS = [ { value: 'subscribed', label: 'Subscribed Users' }, { value: 'bookmarked', label: 'Bookmarked' }, { value: 'territories', label: 'Territories' } ] export default function ForYouHeader({ sub }) { const router = useRouter() const prefix = sub ? `/~${sub.name}` : '' const filter = router.query.filter || 'subscribed' return ( <div className='flex-wrap'> <div className='text-muted fw-bold my-1 d-flex justify-content-start align-items-center'> <Select groupClassName='mb-2' className='w-auto' name='filter' size='sm' value={filter} items={FILTERS} noForm onChange={(_, e) => router.push(prefix + (e.target.value === 'subscribed' ? '/for-you' : `/for-you?filter=${e.target.value}`)) } /> </div> </div> ) }
Describe alternatives you've considered
Some alternative changes:
- Store keyword embeddings (e.g., via OpenAI or HuggingFace) and use cosine similarity.
- Add an option for users to tweak the algorithm.
- Run personalized feed generation in background with PostgreSQL job queue and cache in Redis.
Additional context
Add a "Why am I seeing this?" tooltip next to each post (e.g., "Similar to your zapped post on Nostr").
Example usage: I often zap or bookmark posts about Politics, Lightning privacy tools, and information security. A "For You" section would show similar content from both trending and obscure corners of SN, without me having to hunt manually.
Beta Was this translation helpful? Give feedback.
All reactions
-
👀 1
Replies: 1 comment 5 replies
-
So, uh, is this to be put to a for/against motion?
Beta Was this translation helpful? Give feedback.
All reactions
-
This means it's worth discussing, but is not clear how it fits in the context of our other plans yet.
Beta Was this translation helpful? Give feedback.
All reactions
-
oh ok, btw I have a question. Can people like me, who are not part of the SN team, make a PR to an issue if they know the solution?
Beta Was this translation helpful? Give feedback.
All reactions
-
Yes, as stated in the readme. Based on your submissions so far, I recommend submitting the issue first and making sure we want it worked on.
Beta Was this translation helpful? Give feedback.
All reactions
-
Oh, then shall this be considered an open issue to submit a PR for? #2198
Beta Was this translation helpful? Give feedback.
All reactions
-
yes
Beta Was this translation helpful? Give feedback.