Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/KyleMit/stack-posts
Personalized Local Copy of Stack Overflow
https://github.com/KyleMit/stack-posts
next stackoverflow-api typescript vercel
Last synced: 3 months ago
JSON representation
Personalized Local Copy of Stack Overflow
- Host: GitHub
- URL: https://github.com/KyleMit/stack-posts
- Owner: KyleMit
- Created: 2020-09-23T04:27:23.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-10-21T14:18:29.000Z (about 2 years ago)
- Last Synced: 2024-06-22T19:42:06.724Z (5 months ago)
- Topics: next, stackoverflow-api, typescript, vercel
- Language: CSS
- Homepage: https://stack-posts.vercel.app/
- Size: 768 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: ReadMe.md
Awesome Lists containing this project
- jimsghstars - KyleMit/stack-posts - Personalized Local Copy of Stack Overflow (CSS)
README
# Stack Posts
Personalized Local Copy of Stack Overflow
## API Docs
[Questions on Users](https://api.stackexchange.com/docs/questions-on-users#page=1&pagesize=100&order=desc&sort=activity&ids=1366033&filter=!WXi8jmdCDBo_r-QTD3GFmuOlWj4Js-SxyFKgGyu&site=stackoverflow&run=true)
## Todo
* [ ] Fix/customize markdown rendered - [ex](https://www.myoverflow.dev/p/2522749)
* [ ] Update to ESM
* [ ] Update to latest Remark Package
* [ ] Use [Stacks](https://stackoverflow.design/)
* [ ] 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?
* [x] Add tags view## SDK
* [JavaScript SDK - Stack Exchange API](https://api.stackexchange.com/docs/js-lib)
* [KarthikGangadhar/**stack-exchange**](https://github.com/KarthikGangadhar/stack-exchange) - This is a simple npm module that provides wrapper to access StackOverflow API
* [StackExchange API JS SDk - Stack Apps](https://stackapps.com/q/6748/21608)## Example API Call
```js
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
```