Hacker News new | past | comments | ask | show | jobs | submit login

If I may give some feedback:

I took a look at the https://serverjs.io/ page. The only text is "server.js for Node" which literally just tells you the package name and the product it's for (which I could've guessed from the .js).

Below this, there are some features:

* 'Everything you need is loaded by default' (everything I need for what?! :P) * 'Realtime channels in a couple of lines' (okay, so it's for realtime communication - websockets? RTC? something else?) * 'Use async/await and forget Callback Hell' cool * etc..

I scroll down even more still not quite knowing what the package is for and read "Powerful server for Node.js that just works so you can focus on your awesome project". Okay ... what sort of server is it? An SMTP server? A web server? There was something about websockets earlier, so is it a websocket server?

It's not until I read through the code and see function calls to things like "get" and "post" that I guess it's _probably_ a web server.. but I'm still not entirely sure.




Well, that is very, very fair. I let [what I call] design to get in the way of usability :)

It is a web server AND a websocket server in its core, and I'm working hard now to try to make it extensible by plugins to be able to become a SMTP, RTC, torrent, etc. server if you want to.

For instance, I want to be able to do:

    const server = require('server');
    const { email } = server.plugins;

    server(
      email('fake@francisco.io', ctx => {
        // ctx.data => the body/text of the email
        // ctx.files => any attached files
        // ctx.params.to => array of "to"
        // ...
      })
    );
But I am having some problems conceptually as to try to standardize the way we deal with any kind of requests since different servers will work in very different ways.

But still your feedback is totally valid, I'll fix it, thank you.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: