Skip to content
Public template

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

Repository files navigation

Sights example library

Use this repository as a GitHub template to create a Sights component library. Author, test, and preview without access to the private Sights engine. Public kit: sights-library-kit. Agent entrypoint: AGENTS.md. Full workflow: authoring guide.

Exactly one component (example--message), purpose (example--confirm-installation), and template (example--landing). MIT licensed.

Author locally

Requires Node 22.12+ and pnpm 10.33.0. No tokens or private registry setup:

pnpm install --frozen-lockfile
pnpm check
pnpm dev
pnpm pack

The standalone Astro gallery renders component examples, template output, and an escaping fixture using reference theme tokens. pnpm check typechecks, validates contracts/data, builds the gallery, and asserts escaped HTML and zero page scripts. Manually review responsive layout, zoom, keyboard and screen reader behavior. This is not a full Sights site or a production theme compiler. The package tarball includes source, example page, README and license—not preview output, tests, credentials or dependencies. Source TypeScript is supported by Astro and tsx hosts; this is not a plain-Node compiled JavaScript package.

Install in a compatible Sights host

For maintainers with Sights >=0.32.0 <0.33.0 and Astro ^7.2.9:

pnpm add '@firstandthird/sights-example-library@github:firstandthird/sights-example-library#v0.2.0'

Keep existing site settings and add this trusted registration:

import { exampleLibrary } from '@firstandthird/sights-example-library';
// Inside your existing defineSite({ ... }):
// libraries: [exampleLibrary],

Copy examples/page.json to content/pages/example-library.json and run sights sync-docs, sights validate, and astro build. Confirm catalogs include all three contributions and the template renders at /example-library/. A compatible engine release is a host prerequisite, not an author prerequisite. No npm release of this example or kit is required for tagged Git installation. Installation never automatically registers code, creates pages, or changes themes. Templates are linked: updates can change every page using the template. The host supplies its page heading; the message uses h2 and escaped plain text.

For a composed page use component: "example--message" and props: { "heading": "Library installed", "body": "Example message." }.

Compatibility and upgrades

Version 0.2 removes the private foundation peer and uses public kit 0.1. Existing version 0.1 remains an immutable historical installation fixture. Do not follow its local-foundation symlink instructions for new libraries.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages