Swiftpack.co - Swift Packages by swift-cloud

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.

Packages published by swift-cloud

swift-cloud/Vercel 2.3.0
Swift runtime for Vercel Serverless Functions
⭐️ 97
🕓 2 weeks ago
🔖 Release Notes

Releases

The markdown parsing is broken/disabled for release notes. Sorry about that, I'm chasing the source of a crash that's been bringing this website down for the last couple of days.
v2.3.0
2 weeks ago
- Refactor `fetch()` to use `async-http-client` for superior performance on Linux - Fix various concurrency issues in Swift 6. Note: `ExpressHandler.configure` signature changed slightly. See updated docs
v2.2.1
2 weeks ago
- Fix a regression with `VaporHandler`
v2.2.0 - Swift v6
2 weeks ago
Updated for Swift 6
v2.1.0
15 weeks ago
Introduces a new `server` command to run the local proxy server without building and running the application. This allows for running the main application in Xcode with full debugging support. To start just the local proxy server: ```sh swift package --disable-sandbox vercel server ```
v2.0.0 - arm64
34 weeks ago
Vercel now supports arm64 serverless functions, allowing us to build and deploy without cross-compiling. This makes for significantly faster deploys on M1 Macs, and also allows deploying arm64 binaries from Github actions arm64 runners.
v1.14.0 - Vapor
35 weeks ago
This release adds support for running Vapor application on Vercel. To get started you need to add both `Vercel` and `VercelVapor` packages to your project: ```swift .product(name: "Vercel", package: "Vercel"), .product(name: "VercelVapor", package: "Vercel") ``` Then you can define a `VaporHandler` like so: ```swift import Vapor import VercelVapor @main struct App: VaporHandler { static func configure() async throws -> Application { let app = Application() app.get { _ in "Hello, Vapor" } return app } } ```
v1.13.0 - Dev Server Public Folder Support
44 weeks ago
The dev server now supports serving static files in the `./public` folder
v1.12.0 - base64 Request Bodies
47 weeks ago
- Handle base64-encoded request bodies https://github.com/swift-cloud/Vercel/pull/10 Thanks @summertriangle-dev
v1.11.0 - CDN Cache Control
49 weeks ago
- Support `cdn-cache-control` header
v1.10.0 - Env
51 weeks ago
- Add support for reading environment values from a local `.env` file - Makes it trivial to work with Vercel's new storage products after running `vercel env pull`
macOS
swift-cloud/VercelUI 1.1.0
Build server side rendered webpages in SwiftUI
⭐️ 84
🕓 34 weeks ago
🔖 Release Notes

Releases

The markdown parsing is broken/disabled for release notes. Sorry about that, I'm chasing the source of a crash that's been bringing this website down for the last couple of days.
v1.0.0 - Initial Release
1 year ago
Initial Release
iOS macOS watchOS tvOS
swift-cloud/Compute 3.1.0
Swift runtime for Fastly Compute@Edge
⭐️ 78
🕓 5 weeks ago
🔖 Release Notes

Releases

The markdown parsing is broken/disabled for release notes. Sorry about that, I'm chasing the source of a crash that's been bringing this website down for the last couple of days.
3.1.0
5 weeks ago
- Adds support for TLS JA4 digests with `req.TLSFingerprint(.ja4)`
3.0.0
5 weeks ago
- Built for Swift 6. There are no outstanding concurrency warnings or issues. - Adds a new `Fastly.Device` api to get data about the client making the current request
v2.19.0
7 weeks ago
Upgrade Swift Crypto to 3.0.0
v2.18.0 - Cache
29 weeks ago
This release adds support for [Fastly's Cache API](https://developer.fastly.com/learning/concepts/edge-state/cache#simple-cache) allowing you to cache and retrieve arbitrary data during a request: ```swift let data = try await Cache.getOrSet("my-page") { let res = try await expensivePageRender() return (res, .ttl(60)) } try await res .status(200) .header(.contentLength, "\(data.contentLength)") .send(data.body) ```
v2.17.0 - KVStore
1 year ago
- Rename `ObjectStore` to `KVStore` following Fastly name change
v2.16.0 - Support Xcode 14.3
1 year ago
- Add support for Xcode 14.3
v2.15.0 - Forwarded For
1 year ago
- Set `x-forwarded-for` header when proxying a fetch request
v2.14.0 - Swift Crypto
1 year ago
- Compute now relies directly on [apple/swift-crypto](https://github.com/apple/swift-crypto) making it more compatible with other Swift server libraries
v2.13.0 - Crypto Additions
1 year ago
- Adds additional crypto signatures for ease of use
v2.12.0 - Fanout
1 year ago
- Integrates Fanout into request and response handling - Adds a new `FanoutClient` for publishing messages to Fanout channels - Switches underlying crypto lib to [apple/swift-crypto](https://github.com/apple/swift-crypto) - Adds support for creating and verifying ECDSA style JWTs (ex. ES256) ```swift // Clients connect here router.get("/stream") { req, res in guard req.isUpgradeWebsocketRequest() else { return try await res.status(400).send("Invalid websocket request") } try req.upgradeWebsocket(to: .fanout, hostname: "localhost") } // Fanout relays messages here router.post("/stream") { req, res in let message = try await req.fanoutMessage() if message.event == .open { return try await res.send(fanout: .open, .subscribe(to: "test")) } try await res.send(fanout: .ack) } // Authenticated publish endpoint here router.post("/message") { req, res in let token = try ConfigStore(name: "env")["fanout_token"]! let client = FanoutClient(token: token) let content = try await req.body.text() let data = try await client.publish(content, to: "test") try await res.proxy(data) } ```
iOS macOS watchOS tvOS
swift-cloud/ComputeUI 1.0.1
Write SwiftUI / Tokamak apps on Fastly Compute@Edge
⭐️ 25
🕓 1 year ago
🔖 Release Notes

Releases

The markdown parsing is broken/disabled for release notes. Sorry about that, I'm chasing the source of a crash that's been bringing this website down for the last couple of days.
v1.0.1 - Initial Release
1 year ago
iOS macOS watchOS tvOS driverKit macCatalyst
swift-cloud/PlanetScale 1.4.0
Planetscale library compatible with Swift Cloud & Fastly Compute@Edge
⭐️ 7
🕓 1 year ago
🔖 Release Notes

Releases

The markdown parsing is broken/disabled for release notes. Sorry about that, I'm chasing the source of a crash that's been bringing this website down for the last couple of days.
v1.4.0 - Error Handling
1 year ago
- Adds error handling for invalid response status codes
v1.3.0 - Decode Performance Improvements
1 year ago
- Improve decode performance substantially
v1.2.1 - Fix Folder Name
1 year ago
- Fix folder name
v1.2.0 - Fix Casing
1 year ago
Correctly spell `PlanetScale`
v1.1.1 - Cleanup Row Decoding
1 year ago
- Decode each row individually to keep memory consumption lower
v1.1.0 - Additional Platforms
1 year ago
Now compatible with all Apple platforms in addition to Linus and Fastly Compute@Edge
v1.0.0 - Initial Release
1 year ago
Initial Release
iOS macOS watchOS tvOS driverKit macCatalyst
swift-cloud/MongoDB 1.0.0
A MongoDB client compatible with Swift Cloud and Fastly Compute@Edge
⭐️ 7
🕓 1 year ago
🔖 Release Notes

Releases

The markdown parsing is broken/disabled for release notes. Sorry about that, I'm chasing the source of a crash that's been bringing this website down for the last couple of days.
v1.0.0 - Initial Release
1 year ago
Initial Release 🥇
iOS macOS watchOS tvOS driverKit macCatalyst

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics