{"id":48812701,"url":"https://github.com/swift-libp2p/swift-libp2p-fluent","last_synced_at":"2026-04-14T09:31:02.636Z","repository":{"id":338671224,"uuid":"1154642733","full_name":"swift-libp2p/swift-libp2p-fluent","owner":"swift-libp2p","description":"LibP2P ORM (queries, models, and relations) for NoSQL and SQL databases (from Vapor)","archived":false,"fork":false,"pushed_at":"2026-02-15T22:36:47.000Z","size":35,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-16T01:26:30.402Z","etag":null,"topics":["database","fluent","libp2p","swift","swift-libp2p"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/swift-libp2p.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-10T16:10:26.000Z","updated_at":"2026-02-15T22:36:51.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/swift-libp2p/swift-libp2p-fluent","commit_stats":null,"previous_names":["swift-libp2p/swift-libp2p-fluent"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/swift-libp2p/swift-libp2p-fluent","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swift-libp2p%2Fswift-libp2p-fluent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swift-libp2p%2Fswift-libp2p-fluent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swift-libp2p%2Fswift-libp2p-fluent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swift-libp2p%2Fswift-libp2p-fluent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/swift-libp2p","download_url":"https://codeload.github.com/swift-libp2p/swift-libp2p-fluent/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swift-libp2p%2Fswift-libp2p-fluent/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31790607,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T02:24:21.117Z","status":"ssl_error","status_checked_at":"2026-04-14T02:24:20.627Z","response_time":153,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["database","fluent","libp2p","swift","swift-libp2p"],"created_at":"2026-04-14T09:31:01.991Z","updated_at":"2026-04-14T09:31:02.631Z","avatar_url":"https://github.com/swift-libp2p.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Swift LibP2P Fluent\n\n[![](https://img.shields.io/badge/made%20by-Breth-blue.svg?style=flat-square)](https://breth.app)\n[![](https://img.shields.io/badge/project-libp2p-yellow.svg?style=flat-square)](http://libp2p.io/)\n[![Swift Package Manager compatible](https://img.shields.io/badge/SPM-compatible-blue.svg?style=flat-square)](https://github.com/apple/swift-package-manager)\n![Build \u0026 Test (macos and linux)](https://github.com/swift-libp2p/swift-libp2p-fluent/actions/workflows/build+test.yml/badge.svg)\n\n\u003e Fluent is a database abstraction layer that makes interacting with databases within swift-libp2p ezpz!\n\n## Table of Contents\n\n- [Overview](#overview)\n- [Install](#install)\n- [Usage](#usage)\n  - [Example](#example)\n- [Drivers](#drivers)\n- [Contributing](#contributing)\n- [Credits](#credits)\n- [License](#license)\n\n## Overview\n\nFluent is an ORM framework for Swift. It takes advantage of Swift's strong type system to provide an easy-to-use interface for your database. \nUsing Fluent centers around the creation of model types which represent data structures in your database. These models are then used to perform create, read, update, and delete operations instead of writing raw queries.\n\n### Docs \u0026 Examples\n- [**Vapor's Fluent Documentation**](https://docs.vapor.codes/fluent/overview/)\n\n## Install\n\nInclude the following dependency in your Package.swift file\n``` swift\nlet package = Package(\n    ...\n    dependencies: [\n        ...\n        .package(url: \"https://github.com/swift-libp2p/swift-libp2p-fluent.git\", .upToNextMinor(from: \"0.0.1\"))\n    ],\n        ...\n        .target(\n            ...\n            dependencies: [\n                ...\n                .product(name: \"Fluent\", package: \"swift-libp2p-fluent\"),\n            ]),\n    ...\n)\n```\n\n## Usage\n\n### Example \n``` swift\nimport LibP2P\nimport Fluent\n// import \u003cYour Fluent Driver\u003e\n\n/// Configure your Libp2p networking stack...\nlet lib = try await Application.make(.detect(), peerID: .ephemeral(.Ed25519))\n\n// To use the database throughout your app\napp.databases.use( /*Your database driver*/ )\n\n// To use the configured databse for the peerstore\napp.peerstores.use(.fluent)\n\n// To use the configured database for cache \napp.caches.use(.fluent)\n\n```\n\n## Drivers\n\n| Name | Description | Build (macOS \u0026 Linux) |\n| --------- | --------- | --------- |\n| ** Supported ** | \n| [`SQLite`](//github.com/vapor/fluent-sqlite-driver) | Fluent driver for SQLite | [![Build \u0026 Test Drivers](https://github.com/swift-libp2p/swift-libp2p-fluent/actions/workflows/drivers.yml/badge.svg)](https://github.com/swift-libp2p/swift-libp2p-fluent/actions/workflows/drivers.yml) |\n| [`PostgreSQL`](//github.com/vapor/fluent-postgres-driver) | Fluent driver for PostgrSQL | [![Build \u0026 Test Drivers](https://github.com/swift-libp2p/swift-libp2p-fluent/actions/workflows/drivers.yml/badge.svg)](https://github.com/swift-libp2p/swift-libp2p-fluent/actions/workflows/drivers.yml) |\n| [`MySQL`](//github.com/vapor/fluent-mysql-driver) | Fluent driver for MySQL / MariaDB | [![Build \u0026 Test Drivers](https://github.com/swift-libp2p/swift-libp2p-fluent/actions/workflows/drivers.yml/badge.svg)](https://github.com/swift-libp2p/swift-libp2p-fluent/actions/workflows/drivers.yml) |\n| [`MongoDB`](//github.com/vapor/fluent-mongo-driver) | Fluent driver for MongoDB | [![Build \u0026 Test Drivers](https://github.com/swift-libp2p/swift-libp2p-fluent/actions/workflows/drivers.yml/badge.svg)](https://github.com/swift-libp2p/swift-libp2p-fluent/actions/workflows/drivers.yml) |\n| **Community Drivers** |\n| [`Github Tag`](//github.com/topics/fluent-driver) | A list of all fluent drivers | N/A |\n\n\n## Contributing\n\nContributions are welcomed! This code is very much a proof of concept. I can guarantee you there's a better / safer way to accomplish the same results. Any suggestions, improvements, or even just critiques, are welcome! \n\nLet's make this code better together! 🤝\n\n## Credits\n\n- [vapor](https://github.com/vapor/vapor) \n- [fluent](https://github.com/vapor/fluent)\n\n## License\n\n[MIT](LICENSE) © 2026 Breth Inc.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswift-libp2p%2Fswift-libp2p-fluent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fswift-libp2p%2Fswift-libp2p-fluent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswift-libp2p%2Fswift-libp2p-fluent/lists"}