import{t as e}from"./ofetch-Dl6dVB_5.mjs";const t={path:`/keyword/:keyword`,categories:[`social-media`],example:`/bsky/keyword/hello`,parameters:{keyword:`N`},features:{requireConfig:!1,requirePuppeteer:!1,antiCrawler:!1,supportBT:!1,supportPodcast:!1,supportScihub:!1},name:`Keywords`,maintainers:[`untitaker`,`DIYgod`],handler:n};async function n(t){let n=t.req.param(`keyword`),r=(await e(`https://api.bsky.app/xrpc/app.bsky.feed.searchPosts?q=${encodeURIComponent(n)}&limit=25&sort=latest`)).posts.map(e=>({title:e.record.text,link:`https://bsky.app/profile/${e.author.handle}/post/${e.uri.split(`/`).pop()}`,description:e.record.text,pubDate:new Date(e.record.createdAt),author:[{name:e.author.displayName,url:`https://bsky.app/profile/${e.author.handle}`,avatar:e.author.avatar}]}));return{title:`Bluesky Keyword - ${n}`,link:`https://bsky.app/search?q=${encodeURIComponent(n)}`,item:r}}export{t as route};