Show HN: A next gen front-end framework with lots of editable examples
nx-framework.com
nx-framework.com
Browser support: In the short term I will add more data about it and make it more obvious. In the long term I plan to implement this proposal: https://github.com/RisingStack/nx-framework/issues/3 for wider browser support.
Home page browser support: The above solution would solve it in the long term. Until then I will create a static fallback.
Lack of comparison with other frameworks: I would like to leave this to independent sources, but if it is needed I will add some to the home page.
Routing examples not working properly with links: It is a limitation of the nested examples, not the framework. I will fix it with the next home page improvements.
Thanks for all the feedback so far!
Edit: nevermind, README has no info anyway
Good idea, I am going to add it. I am working an a static fallback using this library: https://github.com/RisingStack/nx-seo.
Sorry about the README, I decided to put everything into the home page, it might have been a bad idea.
Thanks for the feedback!
Edit: You can see the pure HTML fallback page by searching 'nx framework' and viewing the google cached version. I just didn't yet dare to enable it to others than spiders. Sorry for the inconvenience.
If anyone has issues with the server not responding please let me know here. I use free hosting (as this is a hobby/open-source project) and it might misbehave. Thanks a lot!
Edit: I got some extra gears, things should work fine from now on.
The project is in alpha and aimed to be working with the next gen of browsers (Safari 10, Edge). I am really OK with people using it for just hobby projects in the near future. The main reason I posted it is to get some feedback and maybe some contributors.
I will make the browser support text more evident on the page. Maybe a fixed cancellable text in the right corner?
Thanks for the feedback!
They're skating to where the puck is going to be.
- The ease you can get started with it. Just include the script and use it (no config and bootstrapping).
- The middleware system, which makes it easily extendable and configurable. Something like Express or Koa on the server side for Node.
- The use of ES6 Proxies for data binding (can be used with getters/setters, inhertied and expando props).
- Probably speed, but I do not have any trustable benchmarks yet.
- The use of many simple new native APIs, which makes understanding the code itself and contributing to it easier in my opinion.
Side note: since it seems like comparisons are requested, I plan to implement the official show off/introduction apps of other frameworks in NX as a way of objective comparison.
I don't want to officially compare NX with any other framework (performance or feature wise). I think this should be left to somebody independent if it is needed in the future.
I just wrote that comment for the request form the top of my head, but it is no way official. I think that if you would really like to know the differences you should try out some of the examples in the docs and decide for yourself.
That said, I don't know if it's a good idea to depend so heavily on those APIs without some kind of fallback. A framework that doesn't support iOS is probably a nonstarter for the vast majority of projects.
As a first step I will communicate browser support more clearly and gather data about when will support land for the yet unsupported browsers (I know Safari is coming in the fall).
About the home page: I have a server side rendered pure HTML fallback for crawlers, but I didn't yet turned it on for unsupported browsers. I will improve it and turn it on soon. Until then it can be viewed in google cache: http://webcache.googleusercontent.com/search?q=cache:ZHpTEum....
About a fallback: I am thinking about a way to add it.
Thanks for the feedback.
Routing is working with links and history buttons. It is the limitation of the nested examples, not the framework (history buttons do work in the examples though.) The problem is that I have to fetch the current example code from the main page on every reload, which I do not do yet.
Links are working perfectly fine in real world situations (non example iframe). I will improve the example iframes to work with links too.
Thanks for the feedback! (You can see more router info here: http://nx-nxframework.rhcloud.com/docs/spa/router)
Edit: to see the router in action with links just try some links to the home page, like this: http://nx-nxframework.rhcloud.com/docs/spa/analytics. It uses the NX router.
Proxies are used to support advanced data binding with this helper repo: https://github.com/RisingStack/nx-observe. It allows to bind on getter/setter, inherited or expando properties and it is something that differentiates it from the others.
Browser support is coming in the future and I don't want to ditch this if I don't have too. The project is in alpha and Safari support is coming even before it will reach beta. I am grateful for all the feedback though.
Edit: should be better now. Thanks for the feedback!