37 points · by MrRowTheBoat · 2y ago · 37 comments
Each hashmap you create corresponds to its own collection in MongoDB.
Perfect for small projects, quick prototypes, or learning purposes. I'd love to get your feedback and hear your thoughts!
Check it out here: https://hashmap.me
Thanks for taking a look!
Thanks HN <3
Services like requestbin have had a lot of trouble with this sort of thing, historically https://web.archive.org/web/20190711192140/https://github.co...
> We have discontinued the publicly hosted version of RequestBin due to ongoing abuse that made it very difficult to keep the site up reliably. Please see instructions below for setting up your own self-hosted instance.
(note, that message is old, requestbin did live on despite it, iiuc)
Either you could try adding limitations that would make it less appealing to shady folks, e.g. amount of storage in the value.
Or most likely adding user accounts and depending on how far you need to go captchas or offload it by e.g. using GitHub oauth (and coupling yourself and your users to a 3P).
Neither of them are great. While the tool is fairly unpopular there probably isn't an issue.
Do you support conditional GET AND PUT (i.e. eTags)?
I do not currently support anything like that, however I think you bring up a very good point, and it could be very beneficial. One could however add their own lastModified variable as a part of the json blob they push up and implement the support themselves. From your teaching perspective of course, that may not be a great experience for the students.
For a second I thought it would be nice to not auto append a UUID to the hash, but I can imagine it’s simpler not having to check for or manage collisions.
Anyways they mass created hashmaps using UUIDs. Someone lower in the comments made a great point on this, unfortunately this is why people have to crack down on things and require accounts and stuff like that before you can use a service.
:) Service is up and running, but we'll see for how long.
Still, a great place to backup my video library!
I once thought about doing this using RDF/Tuple based data where most elements are forced to be UUID-4's (whose purpose and meaning are invisible) except for values. I imagined a public service without a token.
https://hashmap.me?key=key1&value=value1&token=tony-test-d87...
I think for Read it makes a ton of sense to be able to provide a key to only get that specific key from your dataset.
I could add support for allowing you to use your token in the url to avoid headers, but to be very clear that token should NEVER be exposed to other users or to the public, that token isn't changeable, and if another user has it they can modify your dataset. Maybe I could add read only tokens at some point?
With your exact URL above, are you proposing the ability to Write data from the browser? I see you're providing a value so it lead me to believe you're suggesting writing a key/value pair with your token from the browser
Even if it was something like "/api/read?key=getOnlyThisKey" which returns your value or perhaps a 404 or maybe a 204, implying your response was succesful, but there was no key with the specified requested key.