diff --git a/.github/mscode-logo-black.svg b/.github/mscode-logo-black.svg new file mode 100644 index 0000000..d480b53 --- /dev/null +++ b/.github/mscode-logo-black.svg @@ -0,0 +1 @@ + diff --git a/.github/mscode-logo-white.svg b/.github/mscode-logo-white.svg new file mode 100644 index 0000000..d18111a --- /dev/null +++ b/.github/mscode-logo-white.svg @@ -0,0 +1 @@ + diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..399e54e --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,21 @@ +name: CI + +on: + push: + branches: [master] + pull_request: + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: pnpm/action-setup@v4 + - uses: actions/setup-node@v4 + with: + node-version: 24 + cache: pnpm + - run: pnpm install --frozen-lockfile + - run: pnpm typecheck + - run: pnpm test + - run: pnpm exec wrangler deploy --dry-run --outdir dist diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0942af5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +/node_modules +/.wrangler +/.dev.vars +/.idea +/dist diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..b921394 --- /dev/null +++ b/LICENSE @@ -0,0 +1,24 @@ +MIT License + +Copyright (c) 2026 MSCode + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +Support data in data/caniemail.json comes from caniemail.com +(https://github.com/hteumeuleu/caniemail), MIT License, Copyright (c) Rémi Parmentier. diff --git a/README.md b/README.md index 99782ba..cbf48e2 100644 --- a/README.md +++ b/README.md @@ -1,20 +1,88 @@ -# MSCode badges +

+ MSCode badges +

-Status: planned, not started. +

+ Tests + Cloudflare Workers + License MIT +

-Badges and tech icons in the MSCode style, to replace shields.io and skillicons.dev in our READMEs and the organization profile. Public, so anyone can use them. +

+ Badges and tech icon rows for READMEs, in light and dark. Static badges from the URL, live npm, Packagist and GitHub badges, larger buttons for profile links, and one consistent icon set that also covers Hono, Caddy, Traefik, GoLand, Stripe, Strapi, Przelewy24 and InPost. Text is drawn as vector paths, so every badge looks the same with or without the fonts installed. Free to use, no sign-up. +

-## TODO +

+ Badges · Icons · Options · Run it yourself +

-- [ ] Visual style: MSCode blue `#1A5BB5`, Plus Jakarta Sans and JetBrains Mono, light and dark variants -- [ ] Static badges from a URL, e.g. `/badge/node/22+` -- [ ] Live badges: npm version and downloads, Packagist version and downloads, GitHub Actions status, GitHub stars, license -- [ ] Tech icons in one set, including the ones skillicons lacks (Hono, Caddy, Traefik, GoLand, Stripe, Strapi, Przelewy24, InPost) -- [ ] Text rendered as paths so badges look the same without the fonts installed -- [ ] Caching, so READMEs do not hit the npm and GitHub APIs on every view -- [ ] Hosting and domain, e.g. a Cloudflare Worker on `badges.mscode.pl` -- [ ] Swap the badges in email-lint, laravel-react-email and the `mscode-pl/.github` profile +## Badges -## License +The docs page at [badges.mscode.pl](https://badges.mscode.pl) lists every badge with Markdown to copy. -MIT +| Badge | URL | +|---|---| +| Static | `/badge/