-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Node.js image to safely embed user content #9
Conversation
Think this should be a new repo. I can ping the
Think https://github.com/rehypejs/rehype-github/tree/main/packages/image is all that is needed? Which exists (unpublished?).
Images particularly, right? Which formats?
Good to mention the deprecated https://github.com/zendesk/camo.
🔥
Good to mention it will work with fastify, express, etc.
Yes. Can you estimate how much work (without plugin, as it exists?) I’d also say other additions, like resizing images, is worth investigating? |
@ChristianMurphy @remcohaszing what do you think about this? |
I appreciate and support initiatives that increase feature compatibility with CM and GFM/GH 👍
I also appreciate the aim of increasing security.
Makes sense
How would this work?
Would integrations with common webservers be included in the documentation this would generate?
Metrics/analytics feels like something express, fastify, etc would provide? Would we want it to be in scope ever?
Agreed this is out of scope currently.
Resizing and thumbnail generation for images could also be worth exploring. 👍
With the goal appearing to be matching GitHub, would this include a new Recipe/Guide on https://unifiedjs.com/learn/ showing how to get the most GH like unified + remark + rehype + camomile setup?
This estimate does feel optimistic/underestimated to me just with what is listed.
If you feel comfortable with the estimate and the flat rate, I'm fine with this. Overall I support the idea. |
That's great! I forgot about this one again.
I think we can do most (all?) image mime types?
I think it states so clearly already: "The reason for this is that we can create a handle function which can be integrated in any Node.js framework or even a front-end framework like Next.js."
I think it's definitely interesting, but leaving it out for MVP
I'm not sure what you mean with generate, but I would write docs for all popular server frameworks yes.
That's a good idea, yes! About the time concerns, the 3 full days I wrote was just for the server, I didn't write that clearly. I think with inspiration on existing solutions that should be doable. Code review will be more async and perhaps over a longer period of time, but that is fine and I didn't take that into account for the estimate. Those small iterations I'll gladly do out of estimate/budget. |
Perhaps important to note that these are completely async from each other:
Looks like we all think this is a good thing to have, and are willing to fund it. |
lgtm Re resizing: In my experience resizing images is pretty simple using
Seems fair. |
@Murderlon What do you think about some of my Qs above? Particularly timeframe I was just wondering about |
I could do the week of 4-8 September.
I can make that week available for it.
No strong opinions on this. I gave a range and I'd say it's up to the team to decide where it lands. We can also revisit that after it's done.
👍 |
OK, how about this: you suggested between 500 and 1000, for 3 days as a price/time you can and are interested in doing this. Christian and I also thought that it might take a bit longer, and you mentioned that you could do a whole week. Even if it isn’t exactly finished I imagine it’s in a good enough place for me or others (and perhaps you in evening hours and such) to get it to a release. I’m not worried about that. Aside: Also, it’s good to mention that we’re not getting much money in OC (incl GH sponsors) anymore. About 1k per month. At the current burn rate, it’s empty after December. I calculate that I need October to get the whole majors thing done. And it’s nice to maybe have some time in nov/dec for other improvements/new things. But I’ll be looking for other gigs for nov/later. If someone else has similar ideas to this RFC, do open a similar one! TL;DR: 👍 750 for 3 days. 👍 1k for 4/5 days. 4-8 September. I’ll be available in DMs! I’d just say open source early and often and I’m sure folks will be happy to review. If anyone has objections, voice them in the next 72 hours, or it’s accepted! |
Sounds good! Small update on the week I'll work on it: I'd like to do 11-15 September instead of 4-8 so I can be on the safe side with wrapping something up for Transloadit which needs to be out sooner rather than later. |
@Murderlon can you update the PR with what’s accepted, so that it can be merged? |
I made some small changes. I didn't put in the dates as that's irrelevant, and the written amount of €500-€1000 also corresponds to the decision. |
Cool 😎 |
Initial checklist
📑 👉 Read the rendered RFC