BT

Facilitating the Spread of Knowledge and Innovation in Professional Software Development

Write for InfoQ

Topics

Choose your language

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

BT