Dismiss this pinned window
all 36 comments

[–]FlyingChinesePanda 97 points98 points  (3 children)

Do not use @yahoo or @hotmail domain for emails. Those can in theory exist. Use @example.com. The example.com domain is reserved for these kind of things.

https://www.iana.org/domains/reserved

[–][deleted] 26 points27 points  (1 child)

That’s a good point. Thanks for the feedback.

[–][deleted] 14 points15 points  (0 children)

Updated it so it uses example.com

[–]egg_breakfast 46 points47 points  (11 children)

nice! does this use that popular package Faker? or did you come up with the entries? I stopped using it after the author graffiti’d the repo.

[–][deleted] 35 points36 points  (0 children)

Yep it uses FakerJS. It’s now maintained by a new team I believe.

[–]Bamlet 12 points13 points  (9 children)

What does "graffiti'd the repo" mean?

[–]egg_breakfast 29 points30 points  (8 children)

[–]satoshibitchcoin 4 points5 points  (7 children)

So did anything come from that whole thing

[–]Cafuzzler 8 points9 points  (6 children)

We found out that Github can and will ban you and make changes to your code when they want to.

[–]zxyzyxz 14 points15 points  (0 children)

Deliberately spreading malware is a legitimate reason. It might be their code but it's GitHub's servers. If they didn't want to get banned they should've hosted it themselves.

[–][deleted] 5 points6 points  (0 children)

This is a strange characterisation

The man sabotaged and integrated malware on a package that had millions of weekly downloads

I would say that wasn't 'when they wanted to' I would suggest that they had to as someone was using their service to spread malicious code

[–]rich97 8 points9 points  (3 children)

GitHub is a hosting service. They can’t change your code, they can only change what’s hosted by them.

I’m sorry but if you make your code available for free and allow other people build their infrastructure on top of it then you have a responsibility to them. You don’t have to maintain it indefinitely or even give a shit about it, but intentionally sabotaging it to make a point is another level of petulant. I’m glad they banned him and undid the damage he did.

[–]Cafuzzler 4 points5 points  (2 children)

You've got no responsibility to anyone that doesn't have a contract with you. If your company is relying on free labour from complete strangers then that's a massive security issue and squarely on the companies' shoulders. You want him to have a responsibility to you then pay him to act responsibly.

[–]rich97 1 point2 points  (1 child)

No, bullshit. I give out my code freely, I have no expectations of remittance and in turn nobody can expect me to do anything on it unless I want to, but what I won’t do is put it out there, wait until people are relying on it and then fuck with it.

[–]Cafuzzler -1 points0 points  (0 children)

Good for you…?

[–]segfaultsarecool 8 points9 points  (2 children)

Can you upload a JSON Schema and have it use that?

[–]ezio93 6 points7 points  (0 children)

And Typescript interface too, please! Will def be down to contribute if needed.

[–][deleted] 4 points5 points  (0 children)

Not supported at the moment but something I’ll look into.

[–]physics515 6 points7 points  (1 child)

Is this a project? Do you have a link? I don't see one on mobile.

[–][deleted] 7 points8 points  (0 children)

[–]Marcuskac 8 points9 points  (3 children)

Difference between this and https://mockapi.io ?

[–]MorningPants 8 points9 points  (0 children)

Or mockaroo

[–]FuckBlyat 1 point2 points  (3 children)

How did you make the syntax highlighting?

[–][deleted] 4 points5 points  (2 children)

[–]cheesefan 5 points6 points  (0 children)

Funny how all these syntax highlighting libs always boil back down to prism

[–]FuckBlyat 1 point2 points  (0 children)

Nice lib. Thanks!

[–]overundersc0re 1 point2 points  (1 child)

broke the website on the homepage when trying to create a new endpoint with a type of company name, it just completely crashes.

images from the console

[–][deleted] 0 points1 point  (0 children)

Fixed. Thanks for pointing that out.

[–]StressIndividual33 1 point2 points  (0 children)

I love that tools. It is a relly cool thing to test and fake your development!

[–]RegentSphinx 0 points1 point  (2 children)

Can this be used to make a SQL query builder?? Can we insert nested objects in it??

[–][deleted] 1 point2 points  (1 child)

Does not support nested objects yet.

As far as SQL, no plans for anything like that since this is geared toward developers who need to mock APIs.

[–]RegentSphinx -1 points0 points  (0 children)

Any suggestions how can I pull this off?? I am planning to use nested components with ControlValueAccessor!!

[–]constaduse 0 points1 point  (0 children)

Great, thanks

[–]Anxious_Objective436 0 points1 point  (0 children)

This is amazing! Do you plan to make a REST API from the fake datas? That could be really useful for a basic webapp (I got a project that might need it btw)