gillchristian / tsplay.dev

TypeScript Playground Shortener
https://tsplay.dev
MIT License
69 stars 9 forks source link

tsplay.dev as "OSS Playground" replacement? #114

Open orta opened 1 year ago

orta commented 1 year ago

Hey there folks, I figure as there's three people on the credits - asking via issues might make more sense. The TypeScript team are starting to pull back on the playground and a bunch of web infra ( https://github.com/microsoft/TypeScript-Website/issues/2804 ) and are moving in the direction of switching the playground to have a more limited scope as a vscode extension.

There's a lot of features which I think are generally useful as web infra for everyone, and so I've got pretty far into porting the full TypeScript playground to run as a separate open source project next.js app ( https://github.com/tsrepl/site ) and started to think a bit about where it should live and how to frame it.

When doing that, I wondered if it would make sense to instead join forces and have "tsplay.dev" as the place where that exists also. Judging on the URLs saved on tsplay, I think we can support URLs for both e.g.:

vs

As all the TS website URLs are root with queries or hashes, and tsplay are /XYZ

There's a bunch of positives, like we could integrate the URL shortcuts more tightly into the playground - but there's also downsides. I don't know how expensive it is to run tsplay, but I think this would make it more expensive (as it might get more traffic etc) and I'd like write access to this repo (or maybe make it an org?) and ideally vercel access

gillchristian commented 1 year ago

Hey @orta, it's unfortunate that the official playground would be discontinued :grimacing:

I think tsplay.dev can definitely be place for the new playground.

Regarding costs and administration, at the moment it only costs 5$ to host the DB. I hadn't moved the repo to a GitHub organization because that would result in extra costs since Vercel ins't free for organizations (but maybe they make exceptions for OSS projects?).

I sent you a friend request in Discord, we can discuss specifics there if that's ok with you.

UPDATE: I forgot about the domain, it's around 15$ a year to renew.

leerob commented 1 year ago

Happy to chat through OSS sponsorships here 👍

gillchristian commented 1 year ago

@leerob awesome! We need a 2 member team, to be able to move the project to a GitHub organization.

I will send an email on we meet the criteria => https://vercel.com/guides/can-vercel-sponsor-my-open-source-project

clearfram3 commented 1 year ago

I think this is great! How could I help? I would need a hand with making pull requests etc, but can give a hand with Svelte and Postgres/Mongo/Sqlite. I will also dive into esBuild/Vite to make sure I can help there too.

orta commented 1 year ago

This one is on us I'm afraid, and so it takes as long as it takes, the TypeScript playground is a non-trivial JS app but that's mostly been sent over in #115 - we kinda need to figure out the API side (and the right UI to make that feel good)