Repository navigation
docs: add a "Used by" company showcase with a submission form - #20
Merged
Merged
Conversation
Companies submit their name, website, logo and an optional one-line
description with the new issue form. A maintainer approves with the
showcase-approved label (or asks for a removal with showcase-remove).
- .github/scripts/showcase.mjs (dependency-free, same file in every plugin
repository) validates the issue as untrusted data: exact form headings,
plain-text name and description, public https website without
credentials, IP literals or internal hosts, all three consent boxes, and
exactly one github.com/user-attachments logo URL. The logo is downloaded
without a token, following redirects only to GitHub's asset hosts, with a
500 KB cap and a timeout, checked by magic bytes (PNG, JPEG or WebP, no
SVG) and pixel size, then re-encoded by sharp 0.35.5 to a WebP of at most
320 x 160 without metadata.
- .github/workflows/showcase.yml: a read-only prepare job (labeller must
have write, maintain or admin access) and a publish job that validates
the result again, pushes showcase/<add|remove>-<slug>, opens a docs: pull
request and comments on the issue; rejections comment the reason and
remove the label.
- pages.yml renders docs/site/showcase.json before deploying; CI runs
the showcase unit tests (synthetic fixtures, hostile input included).
Docs read (2026-11-20): GitHub issue forms syntax and form schema
(docs.github.com), GET /repos/{owner}/{repo}/collaborators/{username}/permission
(permission maps maintain to write), workflow syntax jobs.<id>.outputs
(1 MB per job), sharp v0.35.5 constructor, resize, webp and toBuffer
(context7 /lovell/sharp/v0.35.5), Google "Qualify your outbound links"
(rel=ugc), schema.org/mentions.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- New #used-by section with an empty state that links to the showcase form; once companies are listed it shows a logo grid (alt text, width, height, lazy loading, rel="ugc noopener") rendered at build time. - docs/site/showcase.json starts empty; llms.txt gains a "Used by" section; the FAQPage JSON-LD node gets schema.org mentions when entries exist; the moderation workflow updates the sitemap lastmod. - Showcase styles live in site-extra.css (site.css stays byte-identical): light neutral logo tiles in both colour schemes, 2 columns from 320 px. - README: "Showcase your company". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a "Used by" company showcase to the Magic Mark documentation site. Companies submit themselves with a new issue form; a maintainer approves with a label; a workflow validates the issue and opens a
docs:pull request that adds the logo and the entry. The site renders the list as static HTML at build time, so search engines and AI crawlers see it without JavaScript.Same mechanism in all seven Schero94 plugin repositories:
showcase.mjs, its tests andshowcase.yml(workflow) are byte-identical; the form and the site differ only in the plugin name and URLs.What changes
.github/ISSUE_TEMPLATE/showcase.yml: title "Showcase: ", labelshowcase; company name, https website, logo (image dropped into the field, so agithub.com/user-attachmentsURL), optional one-line description (max 140 characters), three required permission checkboxes..github/ISSUE_TEMPLATE/config.yml: contact link to the Used by section; blank-issue setting unchanged..github/scripts/showcase.mjs(dependency-free) andshowcase.test.mjs(node:test, synthetic fixtures only)..github/workflows/showcase.yml, triggered byissues: labeled:prepare(read-only token): ignores the label unless the person who added it has admin, maintain or write permission (GET /collaborators/{user}/permission). Reads the issue from$GITHUB_EVENT_PATHas untrusted data; nothing from the issue is interpolated into arun:script.@,#, square brackets or backticks); website https only, no credentials, port, IP literal or internal/reserved host; description plain text, no links; all three checkboxes ticked; exactly onehttps://github.com/user-attachments/assets/<uuid>URL.--ignore-scripts) to a WebP of at most 320 x 160 without metadata; stored asdocs/site/showcase/<slug>.webp.publish(contents,pull-requests,issues: write): validates the prepare result again, adds the entry todocs/site/showcase.jsonsorted by name ({ name, url, logo, description, issue, addedAt }), sets the sitemaplastmod, pushesshowcase/add-<slug>, opens a pull request titleddocs: add <company> to the showcase(no npm release) and comments the link on the issue. A rejection comments the reason (never the submitted text) and removes the label.showcase-removeon an issue that names a listed company (or on its original showcase issue) opens a removal pull request the same way..github/workflows/pages.yml: rendersshowcase.jsonintoindex.htmlandllms.txtbefore the version stamp..github/workflows/test.yml: runs the showcase unit tests.docs/site: new#used-bysection and nav link,showcase.json=[](empty-state call to action linking toissues/new?template=showcase.yml), "Used by" section inllms.txt, styles appended tosite-extra.css(site.cssstays byte-identical).README.md: "Showcase your company".Rendering
alt= company name,width/heightfrom the stored file,loading="lazy", link to the company site withrel="ugc noopener"and no forcedtarget. Google asks forrel="ugc"(ornofollow) on user-submitted links;noopenercosts nothing.FAQPagenode (the page itself) getsmentionswithOrganizationitems (name,url,logo) when the list is not empty;mentionsis a schema.org CreativeWork property, so nothing is invented.Verification
npm run lint,npm run format:check, the repository tests andnode --test .github/scripts/showcase.test.mjspass locally;actionlintpasses on all workflows.javascript:anddata:URLs, credentials, IPv4/IPv6/decimal IP hosts, internal hosts, SVG, an animated PNG, a 50000 x 50000 header, a 600 KB download, a redirect to a foreign host, a non-attachment logo host, a missing checkbox, smuggled form headings and tampered prepare results.showcase.jsonships as[].user-attachmentsredirect togithub-production-user-asset-6210df.s3.amazonaws.com(data discarded).Notes
GITHUB_TOKENdo not start CI; merging still deploys Pages.ci:anddocs:; semantic-release publishes nothing for them.🤖 Generated with Claude Code