BT

InfoQ Homepage News Ts.ED Provides TypeScript Framework Leveraging Express and Decorators

Ts.ED Provides TypeScript Framework Leveraging Express and Decorators

Bookmarks

Ts.ED provides a server-side TypeScript framework on top of Node.js and Express. The framework provides classes and decorators to simplify common server-side patterns, and offers integration with many other projects including TypeORM, Swagger, GraphQL, AJV, Passport.js, and Socket.io, among others.

Ts.ED provides controllers using the @Controller decorator, each of which maps to Express' routing system. Similarly, decorators get provided for common patterns including requests, sessions, posts, middleware, server settings, and services.

Ts.ED's strength appears to be its support for a consistent pattern to include dependencies, and then define decorators to simplify the structure of the classes which define server-side application behavior. Ts.ED then applies this pattern on top of many other projects for established patterns, such as Mongoose for Mongo support or TypeORM for ORM support against a variety of databases.

GraphQL support in Ts.ED leverages the apollo-server-express to create a GraphQL server and type-graphql for relevant GraphQL decorators.

For data model validation, Ts.ED leverages AJV and json-schema, providing many decorators for common validation types and pattern matching. Ts.ED also provides information to host a Ts.ED application as a Lambda function on AWS by leveraging the aws-serverless-express package.

To learn more about creating applications with Ts.ED, read the getting started with Ts.ED documentation and Ts.ED examples.

Ts.ED is open source software available under the MIT license. Contributions and feedback are encouraged via the Ts.ED GitHub project and should follow the Ts.ED contribution guidelines.

Rate this Article

Adoption
Style

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Community comments

  • Great for building APIs!

    by Jose Asilis /

    Your message is awaiting moderation. Thank you for participating in the discussion.

    I'm glad there's an article of Ts.ED here in InfoQ. I've used it in the past and it's great! Unfortunately, I think the name is kind of misleading as it doesn't tell you much.

    This is akin to ASP.NET MVC way of handling files, and it does shave-off a lot of the boilerplate that you end up writing in bigger express applications with complex routes.

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

BT

Is your profile up-to-date? Please take a moment to review and update.

Note: If updating/changing your email, a validation request will be sent

Company name:
Company role:
Company size:
Country/Zone:
State/Province/Region:
You will be sent an email to validate the new email address. This pop-up will close itself in a few moments.