An open API service indexing awesome lists of open source software.

https://github.com/hummingbird-project/hummingbird-examples

Examples demonstrating various aspects of the Hummingbird swift server framework
https://github.com/hummingbird-project/hummingbird-examples

examples hummingbird server-side-swift swift web-server

Last synced: about 1 year ago
JSON representation

Examples demonstrating various aspects of the Hummingbird swift server framework

Awesome Lists containing this project

README

          










# Example Code

Examples converted to Hummingbird 2.0

- [auth-cognito](https://github.com/hummingbird-project/hummingbird-examples/tree/main/auth-cognito) - Authentication via AWS Cognito.
- [auth-jwt](https://github.com/hummingbird-project/hummingbird-examples/tree/main/auth-jwt) - Authentication using JWT.
- [auth-otp](https://github.com/hummingbird-project/hummingbird-examples/tree/main/auth-otp) - Using one time passwords authentication.
- [auth-srp](https://github.com/hummingbird-project/hummingbird-examples/tree/main/auth-srp) - Secure Remote Password authentication.
- [graphql-server](https://github.com/hummingbird-project/hummingbird-examples/tree/main/graphql-server) - GraphQL server using [Graphiti](https://github.com/GraphQLSwift/Graphiti)
- [hello](https://github.com/hummingbird-project/hummingbird-examples/tree/main/hello) - Basic application setup.
- [html-form](https://github.com/hummingbird-project/hummingbird-examples/tree/main/html-form) - Link a Mustache rendered HTML form to Hummingbird application.
- [http2](https://github.com/hummingbird-project/hummingbird-examples/tree/main/http2) - Basic application with HTTP2 upgrade added.
- [jobs](https://github.com/hummingbird-project/hummingbird-examples/tree/main/jobs) - Demonstrating offloading of jobs to another server.
- [multipart-form](https://github.com/hummingbird-project/hummingbird-examples/tree/main/multipart-form) - HTML form using Multipart form data, using MultipartKit
- [open-telemetry](https://github.com/hummingbird-project/hummingbird-examples/tree/main/open-telemetry) - Integration with OpenTelemetry
- [proxy-server](https://github.com/hummingbird-project/hummingbird-examples/tree/main/proxy-server) - Using AsyncHTTPClient to build a proxy server
- [response-body-processing](https://github.com/hummingbird-project/hummingbird-examples/tree/main/response-body-processing) - Example showing how to process a response body in middleware.
- [s3-file-provider](https://github.com/hummingbird-project/hummingbird-examples/tree/main/s3-file-provider) - Use a custom FileProvider to serve files from S3 with FileMiddleware.
- [server-sent-events](https://github.com/hummingbird-project/hummingbird-examples/tree/main/server-sent-events) - Server sent events.
- [sessions](https://github.com/hummingbird-project/hummingbird-examples/tree/main/sessions) - Username/password and session authentication.
- [todos-dynamodb](https://github.com/hummingbird-project/hummingbird-examples/tree/main/todos-dynamodb) - Todos application, based off [TodoBackend](http://todobackend.com) spec, using DynamoDB.
- [todos-fluent](https://github.com/hummingbird-project/hummingbird-examples/tree/1.x.x/todos-fluent) - Todos application, based off [TodoBackend](http://todobackend.com) spec, using Fluent
- [todos-lambda](https://github.com/hummingbird-project/hummingbird-examples/tree/main/todos-lambda) - Todos application, based off [TodoBackend](http://todobackend.com) spec, using DynamoDB and running on AWS Lambda.
- [todos-mongokitten-openapi](https://github.com/hummingbird-project/hummingbird-examples/tree/main/todos-mongokitten-openapi) - Todos application, using MongoDB driver [MongoKitten](https://github.com/orlandos-nl/MongoKitten) and the [OpenAPI runtime](https://github.com/apple/swift-openapi-runtime).
- [todos-postgres-tutorial](https://github.com/hummingbird-project/hummingbird-examples/tree/main/todos-postgres-tutorial) - Todos application, based off [TodoBackend](http://todobackend.com) spec, using PostgresNIO. Sample code that goes along with the [Todos tutorial](https://hummingbird-project.github.io/hummingbird-docs/2.0/tutorials/todos).
- [upload](https://github.com/hummingbird-project/hummingbird-examples/tree/main/upload) - File uploading and downloading.
- [upload-s3](https://github.com/hummingbird-project/hummingbird-examples/tree/main/upload-s3) - File uploading and downloading using AWS S3 as backing store.
- [webauthn](https://github.com/hummingbird-project/hummingbird-examples/tree/main/webauthn) - Web app demonstrating WebAuthn(PassKey) authentication.
- [websocket-chat](https://github.com/hummingbird-project/hummingbird-examples/tree/main/websocket-chat) - Simple chat application using WebSockets.
- [websocket-echo](https://github.com/hummingbird-project/hummingbird-examples/tree/main/websocket-echo) - Simple WebSocket based echo server.

And finally

- [todos-auth-fluent](https://github.com/hummingbird-project/hummingbird-examples/tree/main/todos-auth-fluent) - This is a more complete example which shows authentication, CRUD operations and mustache rendering all in one app.

### External Examples

These packages bundle examples with Hummingbird 2:

- [Elementary Demo](https://github.com/sliemeobn/elementary/tree/main/Examples/HummingbirdDemo) - An HTML application rendered from Hummingbird by [Elementary](https://github.com/sliemeobn/elementary)
- [ElementaryHTMX Demo](https://github.com/sliemeobn/elementary-htmx/tree/main/Examples/HummingbirdDemo) - An [HTMX](https://htmx.org/) application that communicates with Hummingbird, rendered by [Elementary](https://github.com/sliemeobn/elementary) and [ElementaryHTMX](https://github.com/sliemeobn/elementary-htmx)
- [OracleNIO Examples](https://github.com/kicsipixel/oracle-nio-examples) - Examples of using [OracleNIO](https://github.com/lovetodream/oracle-nio) with Hummingbird