{"id":18417403,"url":"https://github.com/stellar/soroban-template-astro","last_synced_at":"2025-06-11T03:14:16.819Z","repository":{"id":234273572,"uuid":"788385771","full_name":"stellar/soroban-template-astro","owner":"stellar","description":"frontend template for `soroban contract init`, powered by astro","archived":false,"fork":false,"pushed_at":"2025-01-16T21:30:59.000Z","size":112,"stargazers_count":5,"open_issues_count":4,"forks_count":3,"subscribers_count":20,"default_branch":"main","last_synced_at":"2025-04-07T12:48:26.944Z","etag":null,"topics":["soroban","soroban-frontend-template","soroban-template","soroban-template-frontend","stellar"],"latest_commit_sha":null,"homepage":"","language":"Astro","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/stellar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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}},"created_at":"2024-04-18T10:08:24.000Z","updated_at":"2025-01-16T21:31:00.000Z","dependencies_parsed_at":"2024-05-01T22:00:06.170Z","dependency_job_id":"78659143-593d-412e-b2c3-84e88397d996","html_url":"https://github.com/stellar/soroban-template-astro","commit_stats":null,"previous_names":["stellar/soroban-astro-template","stellar/soroban-template-astro"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stellar%2Fsoroban-template-astro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stellar%2Fsoroban-template-astro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stellar%2Fsoroban-template-astro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stellar%2Fsoroban-template-astro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stellar","download_url":"https://codeload.github.com/stellar/soroban-template-astro/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stellar%2Fsoroban-template-astro/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259189819,"owners_count":22819096,"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":["soroban","soroban-frontend-template","soroban-template","soroban-template-frontend","stellar"],"created_at":"2024-11-06T04:09:17.348Z","updated_at":"2025-06-11T03:14:16.794Z","avatar_url":"https://github.com/stellar.png","language":"Astro","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Soroban Frontend in Astro\n\nA Frontend Template suitable for use with `soroban contract init --frontend-template`, powered by [Astro](https://astro.build/).\n\n# Getting Started\n\n- `cp .env.example .env`\n- `npm install`\n- `npm run dev`\n\n# How it works\n\nIf you look in [package.json](./package.json), you'll see that the `start` \u0026 `dev` scripts first run the [`initialize.js`](./initialize.js) script. This script loops over all contracts in `contracts/*` and, for each:\n\n1. Deploys to a local network (_needs to be running with `docker run` or `soroban network start`_)\n2. Saves contract IDs to `.soroban/contract-ids`\n3. Generates TS bindings for each into the `packages` folder, which is set up as an [npm workspace](https://docs.npmjs.com/cli/v10/configuring-npm/package-json#workspaces)\n4. Create a file in `src/contracts` that imports the contract client and initializes it for the `standalone` network.\n\nYou're now ready to import these initialized contract clients in your [Astro templates](https://docs.astro.build/en/core-concepts/astro-syntax/) or your [React, Svelte, Vue, Alpine, Lit, and whatever else JS files](https://docs.astro.build/en/core-concepts/framework-components/#official-ui-framework-integrations). You can see an example of this in [index.astro](./src/pages/index.astro).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstellar%2Fsoroban-template-astro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstellar%2Fsoroban-template-astro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstellar%2Fsoroban-template-astro/lists"}