Introducing Relic: A highly polished web server for Dart 🎯

Over the past 9 months, we’ve been building Relic, a low-level web server heavily inspired by shelf, but with many performance and architectural improvements . Think of it as a modern, more efficient alternative with the same flexibility you love from shelf.

Relic is getting close to a stable release, and we’d love to hear your thoughts, feedback, and ideas as we approach 1.0.

:test_tube: Try it out: https://pub.dev/packages/relic

Let us know what you think!

14 Likes

“We made everything type-safe (no more dynamic).”

I really like that! Especially for web servers, strong typing makes a huge difference.

I’ll definitely give Relic a try and I’m looking forward to seeing how it evolves.

1 Like

Sorry if this is out of place but I have a question from the perspective of someone who isn’t a Dart-on-the-web user (yet).

I have one or two ideas for minimal web services (think a Mastodon bot or a tiny REST API front for a database). I value portability (AWS, Google Cloud, ancient LAMP server, Raspberry Pi, whatever), ease of deployment, and limited dependency graph. These are small projects, so no need for enterprise-level features (I’ve been happy with firebase deploy for years, and I could go back to rsync without an issue).

Is something like Relic a good fit for projects like this?

You want Hasura (or Supabase, more powerful, but more complicated)

You should check out Serverpod (which is very soon using Relic as its base), this is exactly what it does the best. It has a great ORM for Postgres and makes it super quick to setup a layer of methods. You can even pull a row from the database and just pass it back as a return type to your Flutter client. You can deploy it anywhere you can run Dart or soon to Serverpod Cloud with zero configuration.

4 Likes

Dart deserves packages like this and serverpod.

Congratulations for the release.

Working on network softwares is another level of complexity.
It’s a lot of planning and architecture and unseen side-effects…

Wish this project to become our Dart version of Apache/Nginx/… hoping it slowly gain adoption so people can plug inside. I may even dream of gRPC mngt in some years…

Maybe too early too but I would be interested in basic, even non representatives, benchmarks so we can estimate how it will behave under a cloud pod.
Basic http dynamic responses, static assets and postgres queries with/without cache would hint enough.

1 Like