Introduction

Typetron is a modern Node.js framework, written in Typescript, that allows you to build fully-featured web applications and APIs. Most of the core packages it uses were built from scratch, in Typescript to preserve the performance of the framework.

Features

Typetron aims to have all the features necessary for building any web app possible, so you don’t need to search for a third-party package to add in your project. Almost everything you need is available already in Typetron. Most of the features it has were written from scratch and are available in the framework out of the box. This was done to ensure that all the features you are using benefit from the latest language and platform features. Also, every package can be tuned for performance or updated in no time if needed, by the community.

These are some features Typetron aims to have:

  • Routing
  • Controllers
  • Middleware
  • Query builder
  • ORM (Active Record)
  • IoC container
  • Services
  • ServiceProviders
  • Persistence (SQL, NoSQL)
  • Intuitive directory structure
  • Models (aka smart DTOs)
  • Forms & Validations
  • Utilities/helper functions
  • Easy debugging
  • Testing
  • Authentication
  • Error handling
  • CLI
  • Migrations
  • Frontend helpers (using Forms and Models with Angular, React, Vue, etc)
  • Websockets
  • Database seeding
  • Cache
  • Mailing
  • Authorization
  • Sessions
  • Modules
  • Logging
  • Internationalization (i18n)
  • GraphQL
  • Queues
  • Notifications (email, SMS, Slack, Discord, MS Teams, Google Chat, Twitter, Telegram, etc)
  • A/B testing
  • API versioning
  • Two-Factor Authentication (2FA)
  • OAuth
  • Feature flagging
  • Worker threads
  • Views (HTML rendering)
  • Automatic documentation generation for REST, Websocket and GraphQL
  • Deployment(aws, azure, GCP, DO etc or custom server)
  • Monitoring
  • HTTP2
  • HTTP3/QUIC
  • Error alerts (from the server directly on pc or phone, Slack or SMS)

If you think a feature is missing, please create a Github issue, so we can take care of it.

Roadmap

Typetron is still in development, and a roadmap isn’t yet available. You can join the newsletter to get the latest updates.

Performance

Being built with packages created from scratch using the latest features of Typescript, Typetron comes with great performance out of the box, compared to other available “batteries-included” frameworks.

Developer experience

Typetron’s source code is built around developer’s expectations: it is modern, clean and beautiful. Also, the tools Typetron is providing are everything a developer needs to build his next awesome project.

Code sharing

A few years ago we wrote websites. Nowadays we write web applications. The web evolved along with the tools we are using. A typical web application is composed of at least two parts: a backend app and a frontend app. This separation led to two different camps that have a very distinct line between them. Typetron aims to give developers tools, so they can make the backend and frontend apps communicate seamlessly.

Typescript

Javascript is the language of the web, but Javascript alone is not very powerful. When working on enterprise level apps, it will slow down the development making the project feel tedious to work with. Typescript provides static typing giving you and IDEs a richer environment alongside spotting common errors without running the code.

Typetron was build in Typescript’s strict mode which enforces you to write a more robust code base making your app free of bugs.




If you are new to Typetron we recommend you check tutorial next where it will show up, step by step, how to build a simple app.