News for hackers. Stuff that matters.

Show HN: I have a silly pet project, can I get some input?

Last night I had a stupid idea, and wanted to check if it is technically possible. Well, it is!

In a nutshell: Emoji support for your website's URLs.

yourwebsite.com/contact - booring

yourwebsite.com/:phoneemoji: - cool!

So I wrote a nodejs middleware that offers emoji support for your API, with 2 lines of code. (well if you count the installation 3 lines)

Here's the project:

https://www.npmjs.com/package/slashemoji

I currently have support for the /contact and /about routes.

Can you give me some ideas of what other URLs to cover, and what emojis to link the routes to?

( 18 comments | 11 points | on HN )
Re:Show HN: I have a silly pet project, can I get some input? by swimmadude66 on Wednesday September 04, 2019 @05:20PM (#20881545)
Rather than trying to exhaustively predict all the pages you could ever want, maybe it would be smarter to build this as a middleware. That way you could also support things like post requests, multiple emojis in a path, or paths off of something other than root.

Additionally, you could allow your code to accept a mapping of emojis to strings. That way people could use other emojis without hammering you to support them, and the same emoji could be used to represent different strings on different sites.

Overall I think its a cool idea, but if I were you I'd be worried about the huge amount of work to extend this functionality as-is if it got popular.

Re:Show HN: I have a silly pet project, can I get some input? by andreigaspar on Wednesday September 04, 2019 @05:32PM (#20881646)
Yeh that makes sense, I'll have to come up with a solution for that. I didn't think about it that deeply yet tbh, I just snapped it together as a tongue in cheek project.

I'll explore some solutions for scaling and customizing it, thanks!

Re:Show HN: I have a silly pet project, can I get some input? by andreigaspar on Wednesday September 04, 2019 @06:58PM (#20882208)
Solved it! Routes can be associated with simple one liners now.

For example: emoji.set(':emojisymbol:', '/whatever/route/here')

Thanks again for the input!

Re:Show HN: I have a silly pet project, can I get some input? by swimmadude66 on Friday September 13, 2019 @10:12AM (#20962321)
Awesome, looking forward to trying it out!
Re:Show HN: I have a silly pet project, can I get some input? by andreigaspar on Thursday September 05, 2019 @04:19PM (#20890313)
I created an updated package with the ability to customize your emojis, and implemented it into our site (there are some examples in the description): https://www.npmjs.com/package/emoji-express
Re:Show HN: I have a silly pet project, can I get some input? by tanmaydesai89 on Wednesday September 04, 2019 @04:53PM (#20881304)
Sharing a demo url would help.

pages you can cover: careers/jobs, pricing, status, faqs, blog, terms of service, privacy policy.

Hope this helps.

Re:Show HN: I have a silly pet project, can I get some input? by andreigaspar on Wednesday September 04, 2019 @04:58PM (#20881339)
Yeh that makes sense, I'll put it on a server.

Thanks for the suggestions, these are awesome! I'll add them like this (because I can't use spaces): /careers /jobs /pricing /status /faq /blog /terms /privacy

Re:Show HN: I have a silly pet project, can I get some input? by tanmaydesai89 on Wednesday September 04, 2019 @05:04PM (#20881406)
Glad I could help.

I had a question though - why not provide a mapping option to slug for better customization. (pardon - my programming knowledge is very limited)

Re:Show HN: I have a silly pet project, can I get some input? by andreigaspar on Wednesday September 04, 2019 @05:13PM (#20881479)
That is an interesting point, I honestly didn't think about it. The initial thought was to automate everything, so no code has to be written, just a simple import - but this comes at the cost flexibility and customization.

I'll try to figure that out as well for 2.0, maybe there's a user friendly way to customize it

Re:Show HN: I have a silly pet project, can I get some input? by andreigaspar on Wednesday September 04, 2019 @07:02PM (#20882236)
Solved the mapping option! Can be mapped with a one-liner now, thanks again for the input!
Re:Show HN: I have a silly pet project, can I get some input? by tonteldoos on Thursday September 05, 2019 @07:34PM (#20891608)
Scratched an itch, simple idea, elegant implementation, and useful! I love it :)
Re:Show HN: I have a silly pet project, can I get some input? by andreigaspar on Friday September 06, 2019 @05:12AM (#20894179)
Thanks I'm really glad to hear that!
Re:Show HN: I have a silly pet project, can I get some input? by gitgud on Wednesday September 04, 2019 @06:14PM (#20881930)
Cool idea, I think it should be mobile only though. Emojis dont show in my chrome browser on PC, as coloured icons that is.
Re:Show HN: I have a silly pet project, can I get some input? by andreigaspar on Wednesday September 04, 2019 @07:01PM (#20882225)
Thanks! Well the old routes are still kept intact, so it can be accessed through let's say yoursite.com/contact - but if you choose to use an emoji you get the contact page too :D
Re:Show HN: I have a silly pet project, can I get some input? by XZz_Yassin on Wednesday September 04, 2019 @07:01PM (#20882231)
Cool idea, I like it
Re:Show HN: I have a silly pet project, can I get some input? by WheelsAtLarge on Wednesday September 04, 2019 @07:12PM (#20882305)
I second that.

This is a great way to universalize the standard website footers such as About us, privacy, contact us and sitemap

Re:Show HN: I have a silly pet project, can I get some input? by andreigaspar on Wednesday September 04, 2019 @07:25PM (#20882389)
That's a pretty creative input, I didn't think about it from the perspective of universalizing these routes.

I built it as a tongue in cheek project, but I'm starting to get pretty excited about polishing it.

Re:Show HN: I have a silly pet project, can I get some input? by andreigaspar on Wednesday September 04, 2019 @07:03PM (#20882244)
Thanks a lot!