Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

codeshare.js.org #9467

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

JustDeveloper1
Copy link

@JustDeveloper1 JustDeveloper1 commented Dec 30, 2024

(work in progress, at the moment running on https://j.is-a.dev/ )
repository: https://github.com/JustStudio7/CodeShare
used custom rest api on TSX: https://api.juststudio.is-a.dev/

(another pastebin)

@MattIPv4 MattIPv4 changed the title Register codeshare.js.org codeshare.js.org Dec 30, 2024
@MattIPv4
Copy link
Member

@indus What do you think of this? I'm not sure I see how it directly relates, and as the PR description notes, it is essentially a pastebin, so will be storing arbitrary content provided by users which seems risky?

@MattIPv4 MattIPv4 added the awaiting response This PR is waiting for a response from the requester label Dec 30, 2024
@JustDeveloper1
Copy link
Author

JustDeveloper1 commented Dec 30, 2024

The content provided by the user that will be publicly visible will contain only:
Name of program code, program code that is not executed on the website, code language, and public user info: (using Clerk ( https://clerk.com/ ) for user authorization.) User's avatar, nickname, UserID, and account creation date.

  • XSS-protected.

@JustDeveloper1
Copy link
Author

JustDeveloper1 commented Dec 30, 2024

We ("JustStudio.", https://juststudio.is-a.dev/ ) will also add rules (terms) to ensure that CodeShare project is used for open source projects, rather than any discrimination or the like, and we ("JustStudio.") will ensure that users do not violate them.

@indus
Copy link
Member

indus commented Dec 30, 2024

@JustDeveloper1 In the w.i.p. I also only see a header a textfield and two buttons (that do nothing ?)
I'm having a hard time to understand what your page is about. Should users upload games that other users can play? I don't see how this has a relevancy for the JS community.

@JustDeveloper1
Copy link
Author

JustDeveloper1 commented Dec 30, 2024

@JustDeveloper1 In the w.i.p. I also only see a header a textfield and two buttons (that do nothing ?)

I'm having a hard time to understand what your page is about. Should users upload games that other users can play? I don't see how this has a relevancy for the JS community.

- Two buttons that do nothing?
- Buttons aren't working because I messed up with css.

- Should users upload games that other users can play?
- No, users should upload only code (i will add language select).

Relevancy for the js community: at least because the API was made on TypeScript Execute (TSX) (open-source: https://github.com/JustStudio7/API/blob/server/index.tsx ), and users on CodeShare will be able to upload code in JavaScript, TypeScript, and some other languages.

That two buttons should sending HTTP requests to api.juststudio.is-a.dev
For example, "load code" button should do a HTTP 'GET' request
to https://api.juststudio.is-a.dev/cs/${id} to get the saved code by id, example saved code response here: https://api.juststudio.is-a.dev/cs/1 (note: the code in response has replaced characters to prevent from XSS-attack, because it will be inserting as innerHTML in HTML element and it should not execute)

@MattIPv4
Copy link
Member

at least because the API was made on TypeScript Execute (TSX)

Most websites are built with JavaScript, be that on the frontend or on the backend -- just because it is built with JavaScript does not make it directly relevant to the ecosystem/community.

What about the site, as an end-user, is specifically relevant to a JavaScript developer more-so than a developer of any other language?

@JustDeveloper1
Copy link
Author

JustDeveloper1 commented Dec 30, 2024

What about the site, as an end-user, is specifically relevant to a JavaScript developer more-so than a developer of any other language?

I do not know, since the project is w.i.p. currently, maybe I will have any ideas while developing this project, or maybe you can suggest your ideas.
Maybe a badge "JavaScript Developer" or "JavaScript Community" next to nickname of each user who published the code on js/ts language.

@MattIPv4
Copy link
Member

If your site is still WIP, then I don't think we're going to approve a subdomain for it at this time -- once you have your content ready to go, and it is directly related to the JS ecosystem/community, then you can request a JS.org subdomain for the project :)

@JustDeveloper1
Copy link
Author

If your site is still WIP, then I don't think we're going to approve a subdomain for it at this time -- once you have your content ready to go, and it is directly related to the JS ecosystem/community, then you can request a JS.org subdomain for the project :)

Ok, if I finish site development in a few days, can this pull request remain open until the website done?

@indus
Copy link
Member

indus commented Dec 31, 2024

@JustDeveloper1 I prefer zero-inbox but "a few days" is fine. Nevertheless, the “direct connection to the JS ecosystem/community” aspect must then be clear

@indus indus added the on hold label Dec 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting response This PR is waiting for a response from the requester on hold
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants