Link in Bio Card — a free, fast way to set up your own link-in-bio page and virtual business card.
LibCard is a tiny Astro static site you host on GitHub Pages for free. Think Linktree, but it's yours: a single page that collects all your links and doubles as a virtual business card you can share with people at conferences, in your social bios, or anywhere a QR code or short link fits.
| Portrait — your whole page | Landscape — rotate to flash a card |
![]() |
![]() |
- Free hosting — runs entirely on GitHub Pages, no server or subscription.
- Fast to set up — edit one config file, push. Your page is live.
- Tap to save contact — a "Save contact" button downloads a vCard, so anyone can add you to their phone's address book in one tap.
- QR business card — built-in QR codes for conferences: one points to your page, another saves your contact offline.
- Rotate to flash a card — turn your phone sideways and the page flips into a pretty, physical-looking business card beside a QR code; rotate back for the full page. Pure CSS, no JavaScript.
- Themes you can cycle — a gallery of built-in themes plus an optional live switcher, so visitors can try your card in each look. Add your own with a pull request.
- Three layouts, one config — choose the compact Classic card, an Editorial personal home, or Studio's profile sidebar and project gallery.
- Yours to own — no third-party platform between you and your audience; you control the content and the domain.
- Fast & private — zero client-side JavaScript by default; nothing to track you.
With a coding agent: Copy the setup prompt into Claude Code, Codex, or your preferred agent in a workspace connected to GitHub. It will ask for your content and style, build a preview, and help publish your page. The complete workflow is in the agent setup guide. You can also use the copy button on crs.land.
By hand:
- Use this template. Click “Use this template” → Create a new repository. Name it
your-links(a project site) oryour-username.github.io(a user site). - Make it yours. Edit
libcard.config.yaml— your name, tagline, links, socials, contact details, and theme. That's the only file you need to touch.- Prefer prompts? Clone the repo and run
pnpm install && pnpm run setupfor an interactive wizard that fills the config in for you (including the trickysite.url/site.base). - Replace or remove the demo
headerActionsupport link along with the other demo content so it points to your own destination.
- Prefer prompts? Clone the repo and run
- Turn on Pages. In your repo, go to Settings → Pages → Build and deployment and set Source: GitHub Actions.
- Push. Every push to
mainrebuilds and deploys automatically (via.github/workflows/deploy.yml). Your card goes live athttps://<username>.github.io/<repo>/.
Important
Set site.base correctly in libcard.config.yaml: use "/<repo-name>" for a project site (e.g. /your-links) or "/" for a username.github.io user site or a custom domain. A wrong base is the #1 cause of broken styling/links.
Everything lives in libcard.config.yaml. The # yaml-language-server: $schema=./libcard.schema.json line at the top gives you autocomplete and inline validation in editors like VS Code. A bad value (malformed email, unknown theme, typo'd field) fails the build with a readable error instead of shipping a broken card.
profile:
name: Ada Lovelace
tagline: Mathematician · first programmer
avatar: /avatar.svg
links:
- label: My website
url: https://example.com
icon: globe
socials:
- platform: github
url: https://github.com/ada
contact:
email: [email protected]
theme: midnight # default | midnight | sunset | mono | paper | terminalA links entry is just a label + URL, so you're not limited to web links — any
URL scheme works, which gives you tap-to-call, tap-to-text, and chat buttons for
free (and they open the right native app, not a new tab):
links:
- { label: Call me, url: "tel:+15551234567", icon: phone }
- { label: Text me, url: "sms:+15551234567?&body=Hi%20Chris", icon: message }
- { label: WhatsApp, url: "https://wa.me/15551234567?text=Hi", icon: whatsapp } # digits only, no +
- { label: Telegram, url: "https://t.me/yourhandle", icon: telegram }
- { label: Email me, url: "mailto:[email protected]?subject=Hi", icon: mail }
- { label: Book a call, url: "https://cal.com/you/30min", icon: calendar }
- { label: Tip jar, url: "https://paypal.me/you/5", icon: heart }Because a link is just a label + URL, the easiest way to help visitors spin up their own card is a plain link back to this template — no special feature required:
links:
- { label: Make your own LibCard, url: "https://github.com/crs48/LIBCard", icon: github }…or, if you'd rather phrase it inline, a one-line content block does the same job:
blocks:
- { type: text, markdown: "Like this page? **[Make your own LibCard](https://github.com/crs48/LIBCard)** — it's free." }The footer's "Powered by LibCard" credit already links home, so this is optional — but it makes the invitation explicit, and it's the same loop that lets LibCard spread from card to card.
For an invitation visitors can paste into their coding agent, add:
blocks:
- type: text
markdown: "Want your own site? Copy this prompt into your coding agent and make it yours."
- type: copy-promptThis displays a Copy setup prompt button and a “Read or copy the prompt”
disclosure. The default prompt follows the agent setup guide.
The same text is available at /setup-prompt.txt (under site.base on project
sites). To share a different prompt, set text and optionally label:
blocks:
- type: copy-prompt
label: Copy writing prompt
text: Help me write a short introduction for my personal website. Ask about my interests first.text is plain text, limited to 12,000 characters; label is limited to 80.
The button adds a small inline clipboard script only when the block is used.
It copies on a click, shows confirmation, and opens/selects the text for manual
copying if clipboard access fails. With JavaScript disabled, the readable text
remains available and the button is hidden.
Personal home's masthead pairs the site name with an inline action. A short
profile.role sits beside the location below your name; the longer tagline
and intro remain separate. These fields also render in Classic.
profile:
name: Ada Example
role: Engineer, writer & curious human
location: London
headerAction:
label: Support
url: https://your-tip-page.example
icon: heartOmit headerAction or set it to false to hide it. It uses the same destinations,
optional icon, label limits, and newTab behavior as the corner button below,
but scrolls with the page. The role is plain text, up to 160 characters.
Keep one action visible while visitors scroll: support your work, book a call, send an email, or open any other destination. The small pill follows the active theme and works without JavaScript.
cornerButton:
label: Support my work
url: https://your-tip-page.example
icon: heart # optional; uses the same icons as links
position: bottom-right # default; also bottom-left, top-left, top-right
newTab: false # default; true opens web links in a new tabOmit cornerButton or set cornerButton: false to hide it. The label is required
(1–48 characters) and stays visible on mobile. url accepts HTTP(S), mailto:,
tel:, sms:, a #fragment, or a /site-path such as /card (automatically
prefixed with site.base). Native app links always use their handler. Feedme
is not required; this is a normal link to your chosen destination.
The action appears on every page, with screen-edge spacing, a keyboard focus ring, and room to scroll content clear of it. It hides when printing or showing the landscape business-card overlay, and returns with the normal page.
For anything richer than a button, add a blocks: list — an ordered set of typed
content blocks rendered between your links and the social row. Blocks are
validated data, never raw HTML, so a config stays safe to share, and they
need no server. Most blocks ship zero of our JavaScript and come in four
tiers; copy-prompt is an optional clipboard enhancement with a no-JS fallback:
| Tier | Blocks | How it stays zero-JS / zero-server |
|---|---|---|
| Static | heading, text (Markdown), divider, faq, gallery, contact-buttons, tip-buttons, disclosure |
pure HTML/CSS |
| Forms | signup (newsletter), form (contact) |
a plain <form method="post"> to a third party |
| Live embeds | video, embed, booking, map |
a sandboxed <iframe> — we ship no JS |
| Build-time | tweet, rss, github |
fetched during the build, baked to static HTML |
| Optional enhancement | copy-prompt |
small clipboard script; readable/selectable text without JS |
blocks:
- { type: heading, text: "Featured" }
- { type: text, markdown: "I build **LibCard**. [Say hi](mailto:[email protected])." }
- type: contact-buttons # tap-to-call/text/chat in one row
call: true # true → reuse contact.phone; or a number string
whatsapp: "+1-555-123-4567"
email: true # true → reuse contact.email
- { type: booking, provider: calcom, url: "https://cal.com/you/30min", title: "Book a call" }
- { type: video, provider: youtube, id: "dQw4w9WgXcQ", title: "My talk" }
- { type: embed, provider: figma, url: "https://www.figma.com/design/KEY/Title" }
- { type: embed, provider: spotify, url: "https://open.spotify.com/track/ID" }
- { type: map, provider: gmaps, src: "https://www.google.com/maps/embed?pb=..." }
- type: faq
items:
- { q: "Is it free?", a: "Yes — hosted free on GitHub Pages." }
- { type: signup, provider: buttondown, username: "you", title: "Newsletter" }
- { type: tweet, url: "https://x.com/you/status/1750000000000000000" }
- { type: rss, url: "https://yourblog.com/feed.xml", title: "Latest posts" }Use a disclosure to keep longer notes or secondary actions behind a native
expandable row. It works in every layout and without JavaScript:
blocks:
- type: disclosure
title: Make a little home of your own
open: false # default; true starts expanded
blocks:
- { type: text, markdown: "A little more about this project." }
- { type: copy-prompt }Disclosures can contain any other block type, but cannot nest other disclosures.
They can also appear directly in sections. Collapsing content does not change
its embed privacy behavior or defer its build-time fetches.
A few things worth knowing:
- Privacy. Live embeds load third-party content inside their iframe.
videodefaults to a click-to-load facade — nothing loads (no cookies, no trackers) until a visitor clicks play. YouTube usesyoutube-nocookie, every iframe isloading="lazy"withreferrerpolicy="no-referrer", and the footer notes when a page carries live embeds. (Setfacade: falseon avideofor an eager player.) - Forms.
signup/formpost straight to your provider (Buttondown, Kit, Mailchimp, Formspree, Web3Forms…). With no JavaScript there's no inline "thanks!" — the browser navigates to the provider's confirmation page, or to your own page if you setredirect:(Formspree's_next, etc.). Spam is caught by a hidden honeypot field rather than a JS captcha. - Build-time blocks (
tweet,rss,github) are fetched while the site builds, so the live page ships static HTML and contacts no one. They refresh on the next build — a daily GitHub Actionscronis wired up so they stay current without a push. If a fetch fails, the block degrades to a plain link.
The full field list for every block type lives in
libcard.schema.json (so your editor autocompletes
them), and there's a worked example in
docs/explorations/0006_*_RICH_CONTENT_BLOCKS_AND_ZERO_JS_EMBEDS.md.
Choose a complete built-in design with design: personal-home (Editorial with
Monochrome), design: studio (a profile sidebar and project gallery with a warm,
light/dark appearance), or design: classic (the original centered card).
Omitting both design and layout retains Classic. Explicit layout: and
theme: override a design's defaults; remove an existing theme: setting to use
the design's appearance. The visitor theme switcher changes appearance only.
Classic follows the original card: profile, social icons, and a continuous stack of simple link buttons with outline icons and separate source or tip buttons. It omits project screenshots, favicons, descriptions, and extra headlines. Expanded section titles remain available to screen readers; collapsed groups keep their visible disclosure controls. Contact shortcuts sit below the content. Its profile uses your bio, falling back to the intro if no bio is set. The same rich content remains available in Personal home and Studio; changing designs does not edit your config or media.
design: personal-home
profile:
name: Your name
intro: I make useful things and follow my curiosity.
profileActions: [email, save-contact, show-card]
links:
- id: my-project
label: My project
url: https://example.com
description: A short explanation of what it does.
iconImage: /project-icon.svg
image:
src: /project-preview.webp
alt: My project's workspace
width: 1200
height: 750
sections:
- type: links
id: work
title: Selected work
purpose: work
items: [my-project]
- type: blocks # Place your existing root blocks here, if any.Add these fields to your config; keep its existing contact and site settings.
Studio uses the same content: purpose: work becomes an image-led grid with a
full-width first project, services becomes a coaching feature and resource rows,
and writing becomes compact thumbnail rows. Its profile sidebar stacks above
the content on mobile. Experiments are collapsed by default, with all links still
available without JavaScript. See Studio options
to customize the masthead, spacing, media treatment, and experiment disclosure.
Images are optional. Local paths refer to files in public/ and respect
site.base; remote HTTP(S) media is explicit and disclosed. iconImage takes
precedence over the existing icon. Image dimensions reserve space while loading.
Email actions require contact.email; the other actions use LibCard's existing
download and card routes.
For a service feature, add a headline, a short note, and an actionLabel
to the canonical link, then put its ID in a purpose: services section:
# A link in links:
- id: coaching
label: Coaching
headline: |-
A little space
to think together.
description: One-to-one conversations about what comes next.
note: 60 minutes · video
actionLabel: Explore coaching
url: https://example.com/coaching
image: { src: /portrait.jpg, alt: My portrait, width: 800, height: 800 }Editorial displays service images as square portraits alongside the copy;
service links without images become compact resource callouts. Work sections
place copy above their previews, with note and source links in the footer.
These fields also remain visible in Classic. Their text is plain text, with
intentional line breaks supported in headline. Image files keep their original
dimensions; the layout supplies the crop. Set
layoutOptions: { editorial: { mediaTone: original } } to preserve media colors.
Sections reference canonical link IDs. Each link must appear exactly once, and
IDs must be unique. A group can have collapsed: true to create a native archive
disclosure. The optional purpose is work, services, writing, experiments,
or general; titles and destinations remain yours. Existing block types can also
appear directly in sections. If root blocks contains content, place it exactly
once with type: blocks—this preserves compatibility with Feedme's about importer.
Without sections, links and blocks retain their original order.
Mix a layout with any installed appearance using layout: editorial and
theme: frost. Optional controls are:
layoutOptions:
editorial:
density: compact # compact | comfortable
mediaTone: grayscale # grayscale | originalThe same rich config works with layout: classic or an installed custom layout.
Browse /designs for complete designs and /themes for appearances.
Set footer.designGallery: true to add “Try a different design” at the bottom
of your card. Each click picks a different installed design and a random theme,
opening a separately rendered preview of your own content. The preview URL keeps
the selection on reload; “Back to …” returns to your configured default. The home
URL always keeps its configured design (design: personal-home on this site).
Without JavaScript, the link opens another design with its default theme.
This control is off by default. Enabling it builds preview pages for all installed
designs, including their layout code. The /designs gallery remains available
through the footer credits.
The footer names and links the complete design when its layout and theme match.
Mixing them shows the actual layout and theme instead; each name opens its gallery
entry. footer.designCredit controls optional design/layout credits, and
footer.themeCredit controls optional theme credits. Required author attribution
stays visible, including when a visitor changes the theme.
pnpm run design:new -- your-name/notebook
pnpm run design:check -- your-name/notebook
# Select design: your-name/notebook in your config.Share a self-contained Astro layout or a data-only preset. Install a published
release with pnpm run design:add -- HTTPS_REPOSITORY_URL --ref=v1.0.0, then select
its author/name ID. design:update, design:fork, and design:rollback manage
versions without replacing your content. Packages and their lockfiles are preserved
by engine updates. Themes remain shareable data-only YAML files.
See the design authoring and publishing guide for the stable
@libcard/layout API, options, assets, previews, licensing, and release workflow.
Themes can include both light and dark appearances. Monochrome follows the visitor's device setting automatically, including without JavaScript:
theme: monochromeTo let visitors choose a mode themselves, enable the light/dark icon toggle:
theme:
name: monochrome
mode: system # system (default) | light | dark
modeSwitcher: true # optional light/dark icon togglemode selects an appearance within the same theme. switcher below changes the
whole theme. The icon toggle sits beside the header action in built-in layouts.
With mode: system, each visit follows the device setting and updates immediately
when it changes. Clicking the icon temporarily overrides it until the next page
load or system appearance change; previously saved choices do not override
system mode. With a fixed light or dark default, the toggle remembers the
visitor's choice and restores it before paint. It adds a small script only when
enabled and hides for themes with just one palette. With JavaScript disabled,
the configured mode still works and the toggle is hidden.
Older themes keep their existing palette if they do not provide the requested
mode. Photos and screenshots retain their configured colors.
Pick one of the built-in themes (default, midnight, sunset, mono, paper, terminal):
theme: midnight…or turn on the live theme switcher and/or random mode so visitors can see the themes right on your card. These add a little JavaScript; pages stay zero-JS when no script-bearing features are enabled:
theme:
name: midnight # the default everyone sees first (crawlers/no-JS too)
switcher: true # show the "Try a theme" button (cycles through all themes)
random: true # pick a random theme on every page load (fun demo)
animate: true # animate the change with a circular reveal
# allow: [midnight, sunset, terminal] # optional subset; omit = all themesrandom also takes an array to curate the pool — only those themes can be
landed on at random, while the switcher button still cycles through everything:
theme:
name: default
switcher: true
random: [default, paper, mono] # only these show on a random reloadBrowse them all on the /themes gallery page. Theme-only cards credit the active
theme and author; complete designs use the design's name. Theme credits update
when a visitor cycles themes, and link directly to the active theme's gallery entry.
Themes are data, not code. Each theme is a single validated themes/*.yaml token file — no CSS, no JavaScript — so it's safe to accept from anyone. Add your own with pnpm run new-theme and open a pull request; see themes/README.md for the contribution guide. Community themes default to CC-BY-4.0 (your credit stays), while LibCard itself is MIT.
On a phone, turning the page sideways into landscape flips it into card
mode: a physical-looking business card — your name, role, and tagline beside a
QR code — that you can flash at someone, then rotate back upright for the full
link-in-bio page. It inherits your active theme (font, colors, radius), so a
terminal card looks like green-on-black and a paper card looks like warm
letterpress. The whole reveal is a CSS media query — zero JavaScript.
cardMode:
enabled: true # the landscape card overlay (on by default)
qr: page # what the QR encodes: page | contact | both
hint: true # a subtle "⟲ Rotate to show your card" nudge in portrait
wakeLock: false # opt-in: keep the screen lit while the card showsSome phones have auto-rotate locked, so rotating does nothing — for that case the
portrait hint links to the always-available /card page (the same business card,
stacked). Wake lock is the only JavaScript card mode can ship, and it's opt-in:
set wakeLock: true to keep the screen from dimming mid-scan (and tap the card to
go fullscreen). Left off, card mode stays zero-JS. Theme switching, copying
prompts, and script-based analytics are separate opt-ins.
When a link points at a GitHub repo, you can add a "★ Star" sub-button next to it. It opens the repo in a new tab — a logged-in visitor lands right on GitHub's own Star button. (A true one-click star isn't possible from another site; starring is an authenticated action only GitHub can perform.)
links:
- label: GitHub repo
url: https://github.com/ada/widget
icon: github
star: true # show the "★ Star" pill (opens the repo)
stars: build # off | build | badge — how to show the star countThe stars modes trade freshness against LibCard's "nothing to track you" promise:
stars |
What it does | JavaScript | Third-party request |
|---|---|---|---|
off (default) |
Pill only, no number | none | none |
build |
Count is baked in at build time and refreshed on each deploy (a weekly job keeps it current) | none | none at runtime |
badge |
Count via a shields.io <img> — fresher, but pings a third party on every visit |
none | yes, per visit |
star/stars are ignored for non-repo URLs (a profile like github.com/ada, or a deep path), so they're safe to leave on. The count always fails soft — if the GitHub API is unreachable or rate-limited at build time, the pill simply shows no number and the build still succeeds.
If a link is a live site that has a repo behind it, you don't need two buttons. Add github: and the row shows the site as the main button with a compact GitHub pill (the GitHub mark + star count) to its right that opens the repo:
links:
- label: My flocking simulation
url: https://ada.github.io/murmuration
icon: globe
github: https://github.com/ada/murmuration # a plain owner/repo URL
stars: build # same off | build | badge modesThe pill is always shown when github: is set (no star: true needed), and stars controls the count exactly as above. github must be a repo URL — the schema rejects profiles and deep paths.
Not everything you link to is "done". Add status: to a link and the button
gets a tiny badge perched on its top-right corner — a word plus a colored dot —
that tells visitors what state the thing is in. Pure CSS, zero JavaScript; links without
a status render exactly as before.
links:
- label: My app
url: https://ada.github.io/app
status: ready # ready | wip | experiment | exploration | writing | reading | dormantstatus |
Default chip text | Dot | Use it for |
|---|---|---|---|
ready |
Ready | green | it works; others can use it today |
wip |
In progress | amber | being built; not ready for use yet |
experiment |
Experiment | violet | a playful prototype that may never be "done" |
exploration |
Exploration | sky blue | research, a written deep-dive |
writing |
Writing | rose | an essay or blog post |
reading |
Reading | teal | a curated reading list, what you're consuming |
dormant |
Dormant | muted (theme) | not being worked on right now |
The vocabulary is fixed so chips stay consistent across cards (and each state
keeps its dot color), but the wording is yours. Rephrase any label with a
top-level statuses: map — every key is optional:
statuses:
wip: Building
exploration: InvestigatingThe chip's text and border follow the active theme; only the dot carries a hue, blended toward the theme's text color so it sits well on light and dark themes.
Want a live, always-fresh count? Drop in the official github-buttons widget — but note it ships third-party JavaScript and an iframe (a script from
buttons.github.ioand a request toghbtns.comon every visit), which opts your page out of LibCard's zero-JS, no-tracker default. It isn't built in for that reason; add it yourself only if you're comfortable with the tradeoff:<a class="github-button" href="https://github.com/ada/widget" data-icon="octicon-star" data-show-count="true">Star</a> <script async defer src="https://buttons.github.io/buttons.js"></script>
Let visitors tip you from your card — and say where they'd like you to spend
your energy — with Feedme, a self-hosted
tip jar. Off by default. Turn it on with a feedme: block and opt individual
links/socials in; everything else stays exactly as it is.
feedme:
enabled: true
origin: https://tips.yourdomain.com # YOUR deployed Feedme (bare https origin)
# give: false # hide the header "Give to <name>" button if a tip-buttons block has it
links:
- label: My open-source project
url: https://ada.github.io/widget
github: https://github.com/ada/widget
feedme:
id: widget # permanent id — keep it when you rename the link
blurb: More time maintaining this. # optional, ≤ 240 chars
aspiration: 3000 # optional, whole US dollars (Feedme shows it)
- label: Résumé
url: https://ada.github.io/resume.pdf
feedme: { skip: true } # keep this one off Feedme entirely
socials:
- platform: x
url: https://x.com/ada
feedme: { id: x }
blocks:
- type: tip-buttons
feedme: true # primary "Tip at tips.yourdomain.com" button
feedmeNote: Pick what you'd like more of — I get all of it either way. # optional; omit for the built-in copy, false for none
venmo: ada # the usual pay-me links stay as a second row| What appears | Opens |
|---|---|
Give to <name> under your header (give: false hides it) |
your Feedme checkout, unselected — the visitor chooses there |
| ♥ More of this beside each opted-in link | checkout with that link pre-selected |
| More of this: labeled chips under your social icons | checkout with that social pre-selected |
Tip at <host> as the primary button of a tip-buttons block (feedme: true), with a one-line explainer of why to tip here rather than via Venmo/PayPal |
checkout, unselected |
Every gift is an unconditional tip to you; the pick is a suggestion, and the
card says so ("They get all of it. Where you placed it is a suggestion."). At
build time LibCard fetches Feedme's public aggregate once and bakes in each
target's public pick share and tip count ("75% of public picks · 1 public tip") —
a daily snapshot, zero JavaScript, no third-party request at visit time. If the
endpoint is unreachable the card still builds, with tip links and no numbers.
Links without their own feedme: get no tip action on the card (Feedme lists
them anyway; feedme: { skip: true } keeps one off Feedme too), ids must be
unique across links and socials, and at most 99 items can opt in. Setup, the id lifecycle,
what the numbers mean, and why there's no funding bar (yet):
docs/FEEDME.md.
By default LibCard ships zero analytics. Add an analytics: block to enable a provider's snippet, or a list to use multiple providers. Omit it to disable analytics.
analytics:
provider: goatcounter # goatcounter | umami | plausible | cloudflare | metricool
code: yourname # -> yourname.goatcounter.com
mode: pixel # pixel (zero-JS) | scriptLike the stars modes, the choice trades insight against LibCard's "nothing to track you" promise:
| Provider | JavaScript | Outbound link clicks | Notes |
|---|---|---|---|
goatcounter · mode: pixel |
none (a 1×1 <img>) |
no | the zero-JS way to count visits + referrers |
goatcounter · mode: script |
~3 KB | no | richer dashboard, still cookieless |
umami |
~2 KB | yes (outboundClicks: true) |
generous free cloud tier; MIT, self-hostable |
plausible |
<1 KB | yes (built in) | polished; paid cloud or self-host |
cloudflare |
~1.5 KB | no | free + unlimited; needs a Web Analytics token |
metricool |
none (a 1×1 <img>) |
no | visits and geographic data; needs the pixel's hash |
To add Metricool alongside an existing provider:
analytics:
- provider: goatcounter
code: yourname
mode: pixel
- provider: metricool
hash: "0123456789abcdef0123456789abcdef" # replace with your pixel's hashCopy the 32-character hash from Metricool's tracking pixel URL. LibCard renders
the image once per page, loads it eagerly without occupying layout space, and
adds no Metricool script. Each provider can appear only once. Metricool's pixel
reports visits and geographic data, with fewer metrics than its JavaScript
integration (Metricool setup guide).
Provider identifiers are public and belong in libcard.config.yaml; no GitHub
secrets or CI changes are needed. The footer discloses analytics when enabled,
using a neutral visit-counting notice when Metricool is present. The original
provider comparison lives in docs/explorations/0009_*_COOKIELESS_ANALYTICS.md.
GitHub Pages supports custom domains for free. Add a public/CNAME file containing your domain, point your DNS at GitHub Pages, and set site.base: "/" (and site.url to your domain) in the config.
LibCard is designed to be configured by an AI coding agent (e.g. Claude Code). The whole contract is one file plus its JSON Schema:
Fill in
libcard.config.yamlfor me. The allowed fields, types, and the theme enum are defined inlibcard.schema.json— validate against it. Use my GitHub repo to setsite.url/site.base, then runpnpm buildto confirm it's valid.
Because libcard.schema.json is committed and generated from the same Zod schema the build uses, the agent knows exactly what's allowed and the build will reject anything invalid.
pnpm install # install dependencies (uses pnpm)
pnpm dev # local preview at http://localhost:4321
pnpm build # production build into dist/ (regenerates schemas + theme CSS)
pnpm run setup # interactive config wizard
pnpm run new-theme # scaffold a new theme into themes/
pnpm run gen:themes # regenerate theme CSS + registry from themes/*.yaml
pnpm run check-contrast # WCAG AA check for all themes
pnpm run update # pull the latest LibCard engine from upstream (keeps your content)
pnpm run update-themes # pull just the latest community themes from upstream
pnpm test # run the vCard unit tests
pnpm typecheck # astro checkTo build a card from a different config file — e.g. a test fixture — without
touching your own libcard.config.yaml:
LIBCARD_CONFIG=src/lib/fixtures/feedme/enabled.config.yaml pnpm build- Astro static output → fast, CDN-friendly HTML with no runtime JS.
- Tailwind CSS v4 for styling; themes are
themes/*.yamltoken files compiled to CSS-variable@themetokens at build time. - One Zod schema is the single source of truth: it validates the config at build time and generates
libcard.schema.jsonfor editors/agents. - The vCard (
/contact.vcf) and QR codes (page-URL QR + offline vCard-QR) are generated at build time — zero client JavaScript.
For designs, layouts, rich link metadata, or sections, update the engine before
adding the new fields. Existing configs keep Classic unless they explicitly opt
in. Updates preserve your chosen design and content in libcard.config.yaml.
Your card keeps working forever with zero upkeep — updating is optional, just
a way to pick up new themes, features, and fixes from upstream. The only files
that are yours are libcard.config.yaml, anything in public/ (your avatar,
CNAME, OG image), and any themes you wrote; everything else is the LibCard
engine and is safe to replace.
If you used "Use this template":
pnpm run update # pulls the latest engine, keeps your content
pnpm install && pnpm build # reinstalls deps + regenerates derived files;
# fails loudly if anything's off, so nothing broken deploys
git add -A && git commit -m "chore: update LibCard" && git pushIf you forked: click Sync fork on your repo's page, or from the CLI:
git remote add upstream https://github.com/crs48/LIBCard.git # one time
git fetch upstream && git merge upstream/main # keep your config if it conflicts
pnpm install && pnpm build && git pushJust want the new themes? pnpm run update-themes && pnpm run gen:themes
Adding Feedme tips? Update first — the feedme: fields need the current
schema — then follow docs/FEEDME.md.
Adding a persistent corner button? Update the engine first, then add
cornerButton with your own label and URL.
Use pnpm run update --ref=main while the feature is unreleased. Existing cards
remain unchanged until they opt in; the updater preserves your config.
Adding the setup prompt button? Update the engine first, then add
{ type: copy-prompt } to blocks. Older engines do not recognize this block.
If the feature is still unreleased, use pnpm run update --ref=main explicitly.
For ordinary content edits, ask your agent to edit your existing config; do not
repeat the fresh-install workflow. The current agent guide
is available upstream because engine updates leave your local docs untouched.
See docs/UPGRADING.md for the file-by-file breakdown, resolving a config conflict, rolling back, and what changed in each release (CHANGELOG.md).
MIT — free to use, fork, modify, and redistribute, including commercially. Just keep the copyright notice.
Forking to make your own card? That's the whole point — you can keep the "LibCard" name. Just leave the "Powered by LibCard" footer link in place and don't pass your fork off as the official LibCard or as your own creation. The MIT License covers the code; the name is covered by TRADEMARK.md.

