{"id":21193889,"url":"https://github.com/gaetanomatonti/sparkle","last_synced_at":"2025-06-28T13:41:16.396Z","repository":{"id":63127774,"uuid":"551664699","full_name":"gaetanomatonti/Sparkle","owner":"gaetanomatonti","description":"Make the web shine. ✨","archived":false,"fork":false,"pushed_at":"2023-02-02T11:00:00.000Z","size":101,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2023-08-03T12:00:23.299Z","etag":null,"topics":["css","html","spm","swift","web"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":false,"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/gaetanomatonti.png","metadata":{"files":{"readme":"README.md","changelog":null,"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-10-14T21:04:47.000Z","updated_at":"2023-05-31T10:12:18.000Z","dependencies_parsed_at":"2023-02-17T18:46:05.745Z","dependency_job_id":null,"html_url":"https://github.com/gaetanomatonti/Sparkle","commit_stats":null,"previous_names":[],"tags_count":6,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gaetanomatonti%2FSparkle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gaetanomatonti%2FSparkle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gaetanomatonti%2FSparkle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gaetanomatonti%2FSparkle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gaetanomatonti","download_url":"https://codeload.github.com/gaetanomatonti/Sparkle/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225615156,"owners_count":17496946,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["css","html","spm","swift","web"],"created_at":"2024-11-20T19:17:50.780Z","updated_at":"2024-11-20T19:17:51.486Z","avatar_url":"https://github.com/gaetanomatonti.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sparkle\n\nMake the web shine. ✨\n\n\u003e Note that the software provided in this package is still in early development, and APIs are subject to changes.\n\n## Static Site Generation\n\nSparkle takes advantage of SSG (Static Site Generation) to generate static websites with a DSL powered by Swift.\nStatic websites are generated at build time and immediately rendered on the client side, shortening the browser's load times.\n\n## Creating a Website\n\nTo create a website using Sparkle, create a Swift Package in Xcode, then add Sparkle as a dependency in your `Package.swift`.\n\n```swift\ndependencies: [\n  .package(url: \"https://github.com/gaetanomatonti/Sparkle.git\", branch: \"main\")\n],\n```\n\nCreate an executable target that depends on Sparkle.\n\n```swift\ntargets: [\n  .executableTarget(\n    name: \"MyWebsite\",\n    dependencies: [\n      .product(name: \"Sparkle\", package: \"Sparkle\")\n    ]\n  )\n]\n```\n\nCreate `main.swift` in your target's `Source` folder. This is the main entry point of your target. Here you can prompt the generation of your website.\n\n```swift\nstruct MyWebsite: Site {\n  var homepage: Page {\n    Home()\n  }\n}\n\ntry MyWebsite().generate()\n```\n\nAs a result of the generation, files will be created under your package's `Output` directory.\n\nHooray! You've created your very first website with Sparkle.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgaetanomatonti%2Fsparkle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgaetanomatonti%2Fsparkle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgaetanomatonti%2Fsparkle/lists"}