Enhance Express.js, Koa, Fastify and other web frameworks with Nitric
At Nitric, our philosophy is rooted in choice and freedom. Our commitment lies in offering the power to select the most suitable technologies for your projects. Our journey started with championing cloud portability, empowering developers to build applications once and run them natively across multiple cloud providers such as AWS, Google Cloud, and Microsoft Azure. We furthered this flexibility by introducing multi-language support, giving you the freedom to select the programming language that best fits your needs.
Building on this ethos, we're thrilled to announce the addition of support for third-party web frameworks. This major enhancement enables developers to utilize their existing skills and web projects within the Nitric environment and infuse them with powerful cloud features.
Enhanced Web Development with Nitric
Previously, to develop and deploy HTTP APIs with Nitric, you needed to employ our APIs feature, which lets you write cloud functions bound to routes on API Gateways. We've now broadened the horizon with a new HTTP resource feature, initially available for JavaScript and TypeScript.
This new feature allows you to leverage existing web frameworks such as Express.js, NestJS, and Fastify. You can then enhance those frameworks with Nitric to benefit from automated deployments and features like asynchronous messaging, secrets management, blob file storage and scheduled tasks.
Here's an example of using the new feature with Express.js:
import { http } from '@nitric/sdk'import express from 'express'const app = express()app.use('/hello', (req, res) => {res.send('hello from express')})http(app)
Why this is important
The primary goal of this feature is to enable developers to use Nitric with their existing expertise and projects. We understand that transitioning to a new platform can often be a daunting process, especially when needing to adapt to new programming paradigms. With Nitric, that's no longer a worry. You can continue to leverage your web development skills, experiences, and existing projects.
Additionally, you can supercharge these projects with the portable cloud resources Nitric offers, such as Topics, Queues, Collections, Storage, and Secrets. These features help you unlock project enhancements like elastic scaling, least-privilege security, background/scheduled task offloading or adding cloud resources without manually writing infrastructure-as-code automation. The combination results in a potent blend of familiar development environments with powerful, cloud-native features, bringing about an entirely new and empowering experience.
What's next
Nitric is committed to fostering freedom, choice, and innovation. Our recent support for third-party web frameworks embraces this commitment. It's designed to empower developers to make the most of their existing skills and projects, and extend them with robust, cloud-native capabilities.
So whether you're an experienced developer or a beginner exploring the cloud's potential, Nitric provides a framework that combines flexibility, ease of use, and the power of cloud services. Welcome to a new era of web development, where your skills get cloud superpowers.
If you'd like to see this feature in other languages like Python or Go, get in touch on Discord or GitHub and let us know.
Checkout the latest posts
Hey ops people, you’re doing it wrong. (But we can fix it!)
Challenging operations teams on a commonly made mistake
Cloud SDKs Can Chain You Down
With the right level of abstraction over cloud resources, we can separate the responsibilities and concerns of developers and operations teams.
Polyglot projects made easy with Nitric
Nitric makes building cloud applications in multiple languages a breeze
Get the most out of Nitric
Ship your first app faster with Next-gen infrastructure automation