{"id":47301304,"url":"https://github.com/Olanetsoft/compact-playground","last_synced_at":"2026-03-31T07:00:43.996Z","repository":{"id":342052717,"uuid":"1138390497","full_name":"Olanetsoft/compact-playground","owner":"Olanetsoft","description":"Compile Compact smart contracts in the browser. Built for Learn Compact.","archived":false,"fork":false,"pushed_at":"2026-03-26T10:10:07.000Z","size":30,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-27T03:40:48.821Z","etag":null,"topics":["compact","midnightntwrk"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Olanetsoft.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-01-20T16:01:15.000Z","updated_at":"2026-03-26T10:10:12.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/Olanetsoft/compact-playground","commit_stats":null,"previous_names":["olanetsoft/compact-playground"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Olanetsoft/compact-playground","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Olanetsoft%2Fcompact-playground","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Olanetsoft%2Fcompact-playground/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Olanetsoft%2Fcompact-playground/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Olanetsoft%2Fcompact-playground/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Olanetsoft","download_url":"https://codeload.github.com/Olanetsoft/compact-playground/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Olanetsoft%2Fcompact-playground/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31224248,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-31T04:08:55.938Z","status":"ssl_error","status_checked_at":"2026-03-31T04:08:47.883Z","response_time":111,"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":["compact","midnightntwrk"],"created_at":"2026-03-17T03:00:22.710Z","updated_at":"2026-03-31T07:00:43.990Z","avatar_url":"https://github.com/Olanetsoft.png","language":"TypeScript","funding_links":[],"categories":["Developer Tools"],"sub_categories":[],"readme":"# Compact Playground\n\nCompile Compact smart contracts in the browser. Built for [Learn Compact](https://github.com/Olanetsoft/learn-compact). \n\nThis project integrates with the Midnight Network.\n\n**Live API:** https://compact-playground.up.railway.app\n\n## API\n\n### POST /compile\n\n```bash\ncurl -X POST https://compact-playground.up.railway.app/compile \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"code\": \"export circuit add(a: Uint\u003c64\u003e, b: Uint\u003c64\u003e): Uint\u003c64\u003e { return (a + b) as Uint\u003c64\u003e; }\"}'\n```\n\n**Response:**\n```json\n{\n  \"success\": true,\n  \"output\": \"Compilation successful\",\n  \"executionTime\": 3360\n}\n```\n\n**Error Response:**\n```json\n{\n  \"success\": false,\n  \"errors\": [{\"line\": 5, \"column\": 12, \"message\": \"unbound identifier Void\"}]\n}\n```\n\n### GET /health\n\n```bash\ncurl https://compact-playground.up.railway.app/health\n```\n\n## mdBook Integration\n\n1. Copy `frontend/compact-playground.js` and `frontend/compact-playground.css` to your mdBook\n\n2. Add to `book.toml`:\n```toml\n[output.html]\nadditional-js = [\"compact-playground.js\"]\nadditional-css = [\"compact-playground.css\"]\n```\n\n3. Use `compact` language in code blocks:\n````markdown\n```compact\nexport circuit add(a: Uint\u003c64\u003e, b: Uint\u003c64\u003e): Uint\u003c64\u003e {\n    return (a + b) as Uint\u003c64\u003e;\n}\n```\n````\n\nCode blocks get a Run button. Press `Ctrl+Enter` to compile.\n\n## Deploy\n\n### Railway\n\n1. Fork this repo\n2. Create a new project on [railway.app](https://railway.app)\n3. Connect repo, it will auto-detect the Dockerfile\n4. Deploy\n\n### Docker\n\n```bash\ndocker build -t compact-playground .\ndocker run -p 8080:8080 compact-playground\n```\n\n## Development\n\n```bash\nnpm install\nnpm run dev:node  # Requires compactc installed locally\nnpm run test:run  # Run tests\n```\n\n## License\n\nMIT\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FOlanetsoft%2Fcompact-playground","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FOlanetsoft%2Fcompact-playground","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FOlanetsoft%2Fcompact-playground/lists"}