Comments (7)
Thanks for this wonderful idea, yes I thought GraphQL query would be better for this, I will try it in this days
from github1s.
Thanks for your awesome idea & project. And I'd like to contribute and file PR.
Could you please tell me if you want any means to collaborate together?
from github1s.
Hey @conwnet First off, kudos on the project as it's been great to use! Lacking the use of Github's graphQL API is the first thing that I realized while looking at the codebase and I want to contribute to building this with you @xcv58. So let me know if I can grab this issue to work on or collaborate with you to work on it!
from github1s.
Thanks @kanhegaonkarsaurabh,
I think there are multiple tasks to enable GraphQL and we need input from @conwnet about how we deal with the users don't want to add a personal access token.
- Add GitHub OAuth workflow to get token without users' manual effort
- Evaluate & add a GraphQL client library that fits the use case (since most GraphQL clients are designed for front end frameworks not the way we would use)
- Implement the
readDirectory
andreadFile
with GraphQL
For users who don't want to authorize their GitHub account, I think there are two solutions:
- Use the RESTful endpoint for such customers (this will increase long term maintenance cost but the user experience is good)
- Just don't support this use case with an explanation like GitHub did for their Explorer https://docs.github.com/en/graphql/overview/explorer
- Build a simple GraphQL proxy for such use case and the proxy would use our own token (this wouldn't scale well because the host cost & rate limit, but we could reach to GitHub to see whether there is any alternative way to fetch the public data or increase the quota)
And above is just my thought, please share your thought @conwnet @kanhegaonkarsaurabh .
from github1s.
I had a sample apollo client setup here and will iterate on it: https://github.com/xcv58/github1s/pull/1/files
from github1s.
Thanks everyone first. The GitHub OAuth workflow is really better way to improve experience.
In my opinion, the user experience is the first thing we should consider. I think maybe we should keep the RESTful endpoint as a fallback (even only 60 request per hour) for someone who just want to take a taste.
I think use own token maybe can not solve this problem (and even may been abused), and I dont know if there has other way to increate this. What do you think? @xcv58 @kanhegaonkarsaurabh
from github1s.
I think maybe we should keep the RESTful endpoint as a fallback (even only 60 request per hour) for someone who just want to take a taste.
+1 for this.
I think use own token maybe can not solve this problem (and even may been abused), and I dont know if there has other way to increate this.
We don’t need this approach if you think the effort to maintain the RESTful fallback is acceptable.
I had requested a high rate limit GitHub API access five years ago through education program. Not sure it’s still doable. But anyway I prefer to keep the RESTful fallback.
from github1s.
Related Issues (20)
- Cannot find module 'vscode-gulp-watch' HOT 3
- Edit a GitHub issue (issues) with github1s HOT 2
- Unable to get the latest files for GitHub projects HOT 3
- How to run other scm in my local dev? HOT 3
- Github Auth Callback HOT 4
- Maybe we need a new port HOT 3
- How it works ? HOT 5
- Bitcoin HOT 2
- Bitcoin HOT 1
- configure private gitlab/bitbucket HOT 4
- 发现 debug 插件代码行对应不上 HOT 2
- ghub ui v6 HOT 2
- Migrate the OSSInsight API to public endpoint HOT 2
- Contact book.py HOT 2
- học vs HOT 2
- I can't change language HOT 2
- Is github1s blocking certain IPs? HOT 8
- Support sourceforge repositories HOT 4
- 可以编辑文件,并做git commit 和git push 吗 HOT 3
- Shortcut for closing terminal not Working HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from github1s.