Assuming this is just for fun and not an attempt at an actual business, why not just forward the user to www.google.com/search?q=my_query after appending "+site:Reddit.com" or whatever? This could be done with a statically served 1kb HTML file with no server otherwise required to handle requests.