New SwiftUI like declarative syntax for Swift for servers

I've been using SwiftUI for a while and loving it. I've been wanting to program in swift on server side for so long. But all other server side swift solutions are same and makes no new ground.
For example most server side swift libraries(Kitura, Perfect etc) has nearly identical syntax to other server side scripting languages(node, python etc)

So I created this library for server side programming. Only the syntax is working its not handling any requests or sql connections right now but can be implemented if we can get enough people.

Everything is type safe and asynchronous. Swifty :slight_smile:

Example requests

Every request has its input(like post parameters or get params) and it can manipulate its environment with those inputs. My main goal is to write safe server side code with as less code as possible.

Example Enviroment

Example Code

I didn't made it to a new library to speed up the testing.

I need some thoughts this project. If you like it you can help me build it. So we can have our own server side syntax as Swift community!

Everything is type safe so I can make a tool that automatically prints all api documentation.


I'm really excited for more diverse SSS competition to arise, and I think this sort of thing is a great start! Is it built on NIO?


I've not built the server components yet. But it'll be built upon NIO

The syntax here is very compelling. Although I'm not a bug server-side Swift user at this point, I'd be quite interested to see how you grow with this project.

Let us know what we can do to support from afar!

1 Like

I've updated the library and made it little pretty :slightly_smiling_face:

And server side components are working with swift nio now! (not the prettiest implementation)
Only the sql stuff are not working.

Here is the repo:
And the example code: Main.swift

1 Like
Terms of Service

Privacy Policy

Cookie Policy