{"id":32146553,"url":"https://github.com/sinoru/swift-snowflake","last_synced_at":"2026-02-19T07:01:32.588Z","repository":{"id":47216972,"uuid":"515941080","full_name":"sinoru/swift-snowflake","owner":"sinoru","description":"A Swift library for Snowflake ID.","archived":false,"fork":false,"pushed_at":"2024-08-17T11:50:12.000Z","size":94,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2025-11-27T17:23:24.593Z","etag":null,"topics":["ios","linux","macos","snowflake","snowflake-twitter","swift","swiftpm","tvos","watchos"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sinoru.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-07-20T10:45:27.000Z","updated_at":"2024-11-04T06:53:53.000Z","dependencies_parsed_at":"2023-01-30T21:00:43.281Z","dependency_job_id":null,"html_url":"https://github.com/sinoru/swift-snowflake","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/sinoru/swift-snowflake","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinoru%2Fswift-snowflake","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinoru%2Fswift-snowflake/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinoru%2Fswift-snowflake/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinoru%2Fswift-snowflake/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sinoru","download_url":"https://codeload.github.com/sinoru/swift-snowflake/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinoru%2Fswift-snowflake/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29605798,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-19T06:47:36.664Z","status":"ssl_error","status_checked_at":"2026-02-19T06:45:47.551Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["ios","linux","macos","snowflake","snowflake-twitter","swift","swiftpm","tvos","watchos"],"created_at":"2025-10-21T08:12:12.348Z","updated_at":"2026-02-19T07:01:32.582Z","avatar_url":"https://github.com/sinoru.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# swift-snowflake\n\n| **main** | **develop** |\n|:---:|:---:|\n| [![Test](https://github.com/sinoru/swift-snowflake/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/sinoru/swift-snowflake/actions/workflows/test.yml) | [![Test](https://github.com/sinoru/swift-snowflake/actions/workflows/test.yml/badge.svg?branch=develop)](https://github.com/sinoru/swift-snowflake/actions/workflows/test.yml) |\n\nA Swift library for [Snowflake ID](https://en.wikipedia.org/wiki/Snowflake_ID).\n\n## Package Products\n\n* [`Snowflake`][snowflake-docs], main library that contains `Snowflake`. (without importing Foundation)\n* [`SnowflakeFoundationCompat`][snowflake-foundation-compat-docs], library that contains make `Snowflake` interoperate better with Foundation.\n  * `JSONDecoder`, `JSONEncoder` extensions for easily using on JSON parse.\n\n[snowflake-docs]: https://swiftpackageindex.com/sinoru/swift-snowflake/documentation/snowflake\n[snowflake-foundation-compat-docs]: https://swiftpackageindex.com/sinoru/swift-snowflake/documentation/snowflakefoundationcompat\n\n## Supported Platforms\n\nswift-snowflake aims to support all of the platforms where Swift 5.3 or later is supported.\n\n## Example\n\n```swift\nimport Snowflake\n\nlet someSnowflakeID: Snowflake = 1822504365596868608\n```\n\n```swift\nimport SnowflakeFoundationCompat\n\nlet examples: [Snowflake] = [175928847299117063, 1541815603606036480]\n\nlet jsonEncoder = JSONEncoder()\njsonEncoder.snowflakeEncodingStrategy = .number\n\nlet data = try jsonEncoder.encode(examples)\n\n```\n\n## Using **swift-snowflake** in your project\n\nTo use this package in a SwiftPM project, you need to set it up as a package dependency:\n\n```swift\n// swift-tools-version:5.3\nimport PackageDescription\n\nlet package = Package(\n  name: \"MyPackage\",\n  dependencies: [\n    .package(\n      url: \"https://github.com/sinoru/swift-snowflake.git\", \n      .upToNextMajor(from: \"1.0.0\") // or `.upToNextMinor\n    )\n  ],\n  targets: [\n    .target(\n      name: \"MyTarget\",\n      dependencies: [\n        .product(name: \"Snowflake\", package: \"swift-snowflake\")\n      ]\n    )\n  ]\n)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsinoru%2Fswift-snowflake","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsinoru%2Fswift-snowflake","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsinoru%2Fswift-snowflake/lists"}