{"id":16742592,"url":"https://github.com/johnsundell/playground","last_synced_at":"2025-04-06T03:09:37.299Z","repository":{"id":72297891,"uuid":"46015484","full_name":"JohnSundell/Playground","owner":"JohnSundell","description":"Instantly create Swift playgrounds from the command line","archived":false,"fork":false,"pushed_at":"2020-09-11T03:07:33.000Z","size":41,"stargazers_count":449,"open_issues_count":4,"forks_count":34,"subscribers_count":19,"default_branch":"master","last_synced_at":"2025-03-30T02:06:37.904Z","etag":null,"topics":["playground","swift","swift-playgrounds","xcode"],"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/JohnSundell.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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}},"created_at":"2015-11-11T23:01:45.000Z","updated_at":"2025-02-14T21:52:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"d3a76586-1c04-4d21-94fc-8065c5a2d3fb","html_url":"https://github.com/JohnSundell/Playground","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JohnSundell%2FPlayground","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JohnSundell%2FPlayground/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JohnSundell%2FPlayground/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JohnSundell%2FPlayground/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JohnSundell","download_url":"https://codeload.github.com/JohnSundell/Playground/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247427006,"owners_count":20937201,"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":["playground","swift","swift-playgrounds","xcode"],"created_at":"2024-10-13T01:24:15.553Z","updated_at":"2025-04-06T03:09:37.257Z","avatar_url":"https://github.com/JohnSundell.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Playground\n\n[![Swift 5.1](https://img.shields.io/badge/swift-5.1-orange.svg?style=flat)](#)\n[![SwiftPM](https://img.shields.io/badge/swiftpm-compatible-brightgreen.svg?style=flat)](https://github.com/apple/swift-package-manager)\n[![@johnsundell](https://img.shields.io/badge/contact-@johnsundell-blue.svg?style=flat)](https://twitter.com/johnsundell)\n\nWelcome to `playground`, a Swift script that enables you to super quickly generate Swift playgrounds from the command line - with or without dependencies - for any supported platform.\n\nIt essentially provides a command line interface to [Xgen](https://github.com/johnsundell/xgen).\n\n**Features**\n\n- [X] Generate playgrounds in seconds.\n- [X] Automatically reuse any playground created today, for easy code note taking.\n- [X] Add dependencies to a playground with a simple command - no more fiddling with workspaces.\n- [X] Easily open a Gist or code from a GitHub URL in a playground.\n- [X] Supports iOS, macOS \u0026 tvOS.\n\n## Usage\n\n**Simply run `playground` and a new playground will be created and opened**\n\n```\n$ playground\n```\n\nYou can also supply various arguments to customize your playground:\n\n**Add a playground at a specific path**\n\n```\n$ playground -t ~/MyPlayground\n```\n\n**Add some dependencies to your playground**\n\n```\n$ playground -d ~/unbox/unbox.xcodeproj,~/files/files.xcodeproj\n```\n\n**Open the contents of a Gist, a GitHub URL or any other URL in a playground**\n\n```\n$ playground -u https://gist.github.com/JohnSundell/b7f901e8edb89d1396ede4d8db3e8c21\n```\n\n**Quickly get started with view code prototyping**\n\n```\n$ playground -v\n```\n\n**Specify what platform you want the playground to run on**\n\n```\n$ playground -p tvOS\n```\n\n*For all available options, run `$ playground -h`*\n\n## Installation\n\nThe easiest way to install `playground` is using the Swift Package Manager:\n\n```\n$ git clone https://github.com/JohnSundell/Playground.git\n$ cd Playground\n$ swift build -c release\n$ install .build/release/Playground /usr/local/bin/playground\n```\n\n## Help, feedback or suggestions?\n\n- [Open a PR](https://github.com/JohnSundell/Playground/pull/new/master) if you want to make some change to `playground`.\n- Contact [@johnsundell on Twitter](https://twitter.com/johnsundell) for discussions, news \u0026 announcements about `playground` \u0026 other projects.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnsundell%2Fplayground","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohnsundell%2Fplayground","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnsundell%2Fplayground/lists"}