Skip to content

KyleMit/stack-posts

Repository files navigation

Stack Posts

Personalized Local Copy of Stack Overflow

API Docs

Questions on Users

Todo

  • Fix/customize markdown rendered - ex
  • Update to ESM
    • Update to latest Remark Package
  • Use Stacks
    • Replace inline build once stacks releases update
    • Purge CSS
  • Add 404.tsx page
  • Improve Syntax Highlighting
  • Add code copy button
  • Fix Heading levels from markdown 1,2,3 -> 4,5,6
  • Add Sort
  • Build site with awesome search 🚀
  • Run Weekly Update via Github Actions
  • R2
    • All posts you've
      • voted on
      • favorited
      • bountied
      • ... are generally interested in
  • Cache bust param?
  • Add tags view

SDK

Example API Call

const userId = 1366033
const base = `https://api.stackexchange.com/2.2/users/${userId}/questions`
const params = {
    page: "1",
    pagesize: "5",
    order: "desc",
    sort: "activity",
    site: "stackoverflow",
    filter: "ls.OxV)TU.yiDYF4d4clGwwb06WqnuOBDvxQZL"
}
const queryString = new URLSearchParams(params).toString()
const url = `${base}?${queryString}`
console.log(url)
// https://api.stackexchange.com/2.2/users/1366033/questions?page=1&pagesize=5&order=desc&sort=activity&site=stackoverflow&filter=ls.OxV%29TU.yiDYF4d4clGwwb06WqnuOBDvxQZL