{"id":51519905,"url":"https://github.com/cryptomorin/kingdomsx-web","last_synced_at":"2026-07-08T15:00:49.582Z","repository":{"id":362801385,"uuid":"1260650868","full_name":"CryptoMorin/KingdomsX-Web","owner":"CryptoMorin","description":"KingdomsX.com official website assets","archived":false,"fork":false,"pushed_at":"2026-07-01T23:17:31.000Z","size":7721,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-07-02T00:25:39.714Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://kingdomsx.com","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/CryptoMorin.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-06-05T18:11:53.000Z","updated_at":"2026-07-01T23:17:34.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/CryptoMorin/KingdomsX-Web","commit_stats":null,"previous_names":["afkf24/kingdomsx-web","cryptomorin/kingdomsx-web"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/CryptoMorin/KingdomsX-Web","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CryptoMorin%2FKingdomsX-Web","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CryptoMorin%2FKingdomsX-Web/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CryptoMorin%2FKingdomsX-Web/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CryptoMorin%2FKingdomsX-Web/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CryptoMorin","download_url":"https://codeload.github.com/CryptoMorin/KingdomsX-Web/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CryptoMorin%2FKingdomsX-Web/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35268549,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-08T02:00:06.796Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2026-07-08T15:00:48.652Z","updated_at":"2026-07-08T15:00:49.572Z","avatar_url":"https://github.com/CryptoMorin.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# KingdomsX Web\n\n[KingdomsX](https://github.com/CryptoMorin/KingdomsX) is a Minecraft plugin similar to Factions, with more advanced core features and additional mechanics such as turrets, structures, and invasions.\n\nThis repository contains the public [website](https://kingdomsx.com) for the project. It is built with Astro and deployed on Cloudflare.\n\n## Stack\n- **Astro** - static site framework\n- **Cloudflare Workers** - request routing, API handlers, scheduled cron\n- **Cloudflare D1** - SQLite database for server listings\n- **TypeScript** - worker code under `worker/`\n\n## Requirements\n- Node.js 24\n- npm\n\n## Project Structure\n- `src/pages/` - Astro page entrypoints\n- `src/components/` - reusable Astro components\n- `src/assets/` - bundled styles, scripts, and imported media\n- `src/data/` - content/data modules used by the site\n- `public/` - files copied directly to the site root\n- `worker/` - Cloudflare Worker source and local development assets\n- `wrangler.jsonc` - production Cloudflare configuration\n- `wrangler.local.jsonc` - local preview configuration\n\n## Development\nContributions are appreciated and always welcome through [pull requests](https://github.com/CryptoMorin/KingdomsX-Web/pulls).\n\n### Setup\nClone the repository:\n\n```bash\ngit clone https://github.com/CryptoMorin/KingdomsX-Web.git\ncd KingdomsX-Web\n```\n\nInstall dependencies:\n\n```bash\nnpm ci\n```\n\nCopy the example local environment file:\n\n```bash\ncp .dev.vars.example .dev.vars\n```\n\nThe checked-in example values are enough for the local Worker preview. Real credentials are only needed for OAuth-specific testing.\n\n### Workflows\nAfter setup, use one of these development workflows depending on what you're working on:\n\n#### 1. Astro dev server\nUse this for quick frontend work. It skips the Worker and serves pages directly via Astro's dev server.\n\n```bash\nnpm run dev\n```\n\n#### 2. Full Worker preview\nUse this when working on routing, API handlers, D1 queries, or server listings. It builds the Astro site and serves it through the local Cloudflare Worker on port `8787`, backed by local D1 data and secrets from `.dev.vars`.\n\nRun the local setup before the first preview, after pulling or adding D1 migrations, or whenever you need to refresh local preview data:\n\n```bash\nnpm run worker:setup:local\n```\n\nThen start the preview:\n\n```bash\nnpm run preview\n```\n\n## Checks\nPlease run these before opening a pull request.\n\nRun the Cloudflare Worker and D1 test suite after changing Worker behavior, API handlers, migrations, or server-directory logic:\n\n```bash\nnpm run worker:test\n```\n\nType-check Worker code after changing anything under `worker/`:\n\n```bash\nnpm run worker:typecheck\n```\n\nRegenerate Worker type bindings after changing bindings or Wrangler config:\n\n```bash\nnpm run worker:types:check\n```\n\nRun a deploy dry-run after changing Worker routing, bindings, or Cloudflare configuration:\n\n```bash\nnpm run worker:deploy:check\n```\n\nRun the production build before all pull requests:\n\n```bash\nnpm run build\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcryptomorin%2Fkingdomsx-web","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcryptomorin%2Fkingdomsx-web","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcryptomorin%2Fkingdomsx-web/lists"}