[フレーム]
BT

InfoQ Software Architects' Newsletter

A monthly overview of things you need to know as an architect or aspiring architect.

View an example

We protect your privacy.

Facilitating the Spread of Knowledge and Innovation in Professional Software Development

Write for InfoQ

Unlock the full InfoQ experience

Unlock the full InfoQ experience by logging in! Stay updated with your favorite authors and topics, engage with content, and download exclusive resources.

Log In
or

Don't have an InfoQ account?

Register
  • Stay updated on topics and peers that matter to youReceive instant alerts on the latest insights and trends.
  • Quickly access free resources for continuous learningMinibooks, videos with transcripts, and training materials.
  • Save articles and read at anytimeBookmark articles to read whenever youre ready.

Topics

Choose your language

InfoQ Homepage News Platypi JavaScript Platform Launches

Platypi JavaScript Platform Launches

This item in japanese

May 07, 2015 2 min read

Write for InfoQ

Feed your curiosity. Help 550k+ global
senior developers
each month stay ahead.
Get in touch

A new JavaScript platform quietly entered the fray in recent months and offers more than just a typical MVC framework. Platypi is built with TypeScript and gives developers a little of the familiar but serves it up with a unique perspective.

The Platypi platform consists of three components: PlatypusTS, PlatypusUI, and PlatypusCLI. PlatypusTS is the core MVC JavaScript framework built with TypeScript. In some ways, it looks very familiar with its view controllers, services, and views.

An interesting piece of the platform's trio is a unique command line tool. When building an app, developers often find themselves writing repetitive boilerplate code just to stand up the shell of a service or controller. PlatypusCLI offers developers the option of letting a generator write that code instead. For example, using the command line, typing:

platypi add service products

will scaffold a new TypeScript file in the correct location with the following boilerplate code filled in:

/// <reference path="../../_references.d.ts" />
import plat = require('platypus');
import BaseService = require('../base/base.service');
class ProductsService extends BaseService {}
plat.register.injectable('products-service', ProductsService);
export = ProductsService;

Developers still need to hook that file into the rest of the app, but using the command line tool is likely to save time when creating a new project and ensure uniformity in construction.

Platypi also offers its own UI library called PlatypusUI. Though the use of the library is optional, it contains a number of common controls that are pre-styled and contain hooks into the controller's code. Developers familiar with web components will notice a similar syntax and Angular developers versed in writing and using custom directives should feel at home. The mechanism by which these components render to the browser is similar. For example, consider a button:

<plat-button class="button-primary gs-button" plat-tap="register">Register</plat-button>

This gets rendered in the browser as:

<button class="button-primary gs-button plat-button plat-gesture" plat-tap="register" plat-control="plat-button">
 <span>Register</span>
</button>

Tapping this button will execute the register method in the page's view controller.

Unlike some popular JavaScript frameworks, Platypi makes money and does so by offering support contracts. While there is a free option, an indie developer option starts at 10ドル/month per developer and offers 10 support requests per year with a 48 hour response time. In addition to these options, Platypi offers consulting services to work with companies to build their solutions including training and design work.

Asked about how Platypi compares to Angular, CEO Matt Landers said, "Angular is unsupported. You have to rely on the community to answer questions, provide hot fixes, upgrade, provide direction." Regarding their future support plans, he said:

If you write an inventory management system that needs to be in use for 10 years, we want to be the partner you can rely on to support you during that time.

The project uses Apache Cordova to provide cross platform support.

Platypi was co-founded by three ex-Microsoft engineers and it was officially released on March 10, 2015. According to Landers, they've begun working on integrations with third-party services. API documentation is available and all of the company's projects are available on GitHub.

Rate this Article

Adoption
Style

Related Content

The InfoQ Newsletter

A round-up of last week’s content on InfoQ sent out every Tuesday. Join a community of over 250,000 senior developers. View an example

We protect your privacy.

BT

AltStyle によって変換されたページ (->オリジナル) /