Skip to content

armgit / hypit

Public Imported from GitHub
0

Clone any viral video with AI agents. Not just a script, the whole workflow: swap the face, the words, the B-roll, ship 100 variants in one command, and get your 100M views.

1.8 KB
Raw Blame
import { mediaDependency, mediaTypes } from "@hypit/media";
import type { ModuleManifest } from "@hypit/hypit/protocol";

export const fontsourceModuleRef = { name: "@hypit/fontsource", version: "1" } as const;

export const fontsourceMarkupSurfaces = [{
  name: "face",
  tag: "Face",
  mode: "structured",
  outputs: [mediaTypes.fontArtifact],
  vocabulary: {
    summary: "Materializes one exact face from an installed Fontsource npm package.",
    attributes: [
      { name: "id", kind: "identifier", required: true,
        summary: "Names the FontArtifact Record this element publishes." },
      { name: "package", kind: "literal", required: true,
        summary: "Names one installed @fontsource or @fontsource-variable package selected by the project lockfile." },
      { name: "weight", kind: "literal", required: true,
        summary: "Chooses an exact integer weight supported by the installed package." },
      { name: "style", kind: "literal", required: true, values: ["normal", "italic"],
        summary: "Chooses an exact style supported by the installed package." },
    ],
    example: `<fontsource:Face id="headline" package="@fontsource-variable/inter" weight="700" style="normal"/>`,
    notes: [
      "The active Distribution or project selects the adapter version; the project package.json and lockfile own the selected font package version.",
      "This adapter reads package metadata and CSS as data. It does not import or execute upstream package code.",
      "Changing package selects a dependency; it is not a family dropdown backed by a Hypit-maintained catalog.",
    ],
  },
}] as const;

export const fontsourceManifest: ModuleManifest = {
  format: "hypit.module@1",
  name: fontsourceModuleRef.name,
  version: fontsourceModuleRef.version,
  dependencies: [mediaDependency],
  types: [],
  capabilities: [],
  producers: [],
};