Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
# Nectar
Nectar is a thin, type-safe, declarative router layer built on top of the Hummingbird server framework. It brings high-ergonomics, controller-style endpoint definitions to server-side Swift without sacrificing performance.

> [!IMPORTANT]
> Nectar is currently a Proof of Concept (PoC). If there is enough interest and community feedback, it will be expanded into a fully tested, public library.

```swift
import Nectar

struct AppEntry: NectarApp {
var endpoints: [Endpoint] {
var endpoints: [any EndpointGroup] {
UserEndpointGroup()
}
}
Expand All @@ -17,7 +14,7 @@ struct AppEntry: NectarApp {
struct UserEndpointGroup: EndpointGroup {
let partialName = "users"

var subgroups: [Endpoint] {
var subgroups: [any EndpointGroup] {
PathExtension(":id") {
CommentEndpointGroup()
}
Expand Down
Loading