General Architecture Design

  • JavaScript everywhere: client side, server side and even in microcontrollers
  • jDesktop applications and modules should exploit the latest javascript features, such as promises, modules, async functions, etc.
  • Applications and modules should stick to Object-Oriented and Event-Driven design

Error Handling

  • Synchronous implementations should throw exceptions. If an exception is unhandled by a try {} catch {} block then an error messege will be sent to the console.
  • Asynchronous implementations should provide Error objects to the function’s onerror method. if no callback is provided then an error messege will be sent to the console.
  • A specific module implementation should not mix  synchronous and asynchronous error handling approach (e.g.: a module should not throw exception on one kind of error and provide onerror method on an other type of error)
  • Getters and setters should throw exceptions to signal an error state


  • Module implementations should support all relevant runtime environments (e.g.: path module can be imported and used on browser side, server side and even in RTOS environment)
  • Module APIs should be general enough to be used on all relevant runtime environments. (e.g.: Pin module have the same API on X86, ARM, and ST microcontoller runtime environment)