
Security News
PolinRider: North Korea-Linked Supply Chain Campaign Expands Across Open Source Ecosystems
PolinRider expands across npm, Packagist, Go modules, and Chrome extensions, using hidden loaders to target developer environments.
@taylorvance/tv-shared-runtime
Advanced tools
Shared React runtime primitives for Taylor Vance portfolio projects.
@taylorvance/tv-shared-runtimeShared React runtime primitives for Taylor Vance portfolio projects.
The canonical TV Programs logo files live in the repo-level assets/ directory and are copied into this package during build so the package can continue to expose raw asset subpaths.
Root exports:
BrandBadgeTvProgramsMarkTVPROGRAMS_URLTVPROGRAMS_HOSTNAMETVPROGRAMS_DEFAULT_LABELbrandBadgeClassNamescreateProjectStorageExplicit subpaths:
@taylorvance/tv-shared-runtime/BrandBadge@taylorvance/tv-shared-runtime/assets@taylorvance/tv-shared-runtime/storage@taylorvance/tv-shared-runtime/storage-devBrandBadgeQuick default usage:
import { BrandBadge } from '@taylorvance/tv-shared-runtime';
export function Footer() {
return <BrandBadge />;
}
Explicit component-only entry:
import { BrandBadge } from '@taylorvance/tv-shared-runtime/BrandBadge';
Consumer-owned styling:
import { BrandBadge } from '@taylorvance/tv-shared-runtime';
export function Footer() {
return (
<BrandBadge
className="brand-badge"
iconClassName="brand-badge-icon"
labelClassName="brand-badge-label"
unstyled
/>
);
}
React component:
import { TvProgramsMark } from '@taylorvance/tv-shared-runtime';
URL exports:
import { TVPROGRAMS_MARK_SVG_URL } from '@taylorvance/tv-shared-runtime/assets';
Raw asset subpaths:
import tvMarkUrl from '@taylorvance/tv-shared-runtime/tv.svg';
Use createProjectStorage when a consumer needs browser localStorage keys that stay unique per project on shared origins such as localhost.
import { createProjectStorage } from '@taylorvance/tv-shared-runtime/storage';
const storage = createProjectStorage('wordlink', { version: 1 });
const themePreference = storage.readString('theme-preference') ?? 'system';
storage.writeString('dark', 'theme-preference');
storage.writeJson({ expanded: true }, 'panels', 'complexity');
const entries = storage.list();
When version is provided, keys follow the pattern <projectKey>:v<version>:<key parts...>, for example wordlink:v1:theme-preference.
The helper is SSR-safe and treats storage-access failures as soft failures by returning null or doing nothing.
It also provides namespace-level maintenance helpers:
list() returns the current keys and raw string values for the active project/version namespace.clear() removes only the current project/version namespace.For dev-only inspection, manual edits, and namespace JSON import/export, use the explicit storage-dev entry:
import { ProjectStorageInspector } from '@taylorvance/tv-shared-runtime/storage-dev';
export function StorageDebugPanel() {
return (
<ProjectStorageInspector
projectKey="mcts-web"
versions={[
{ label: 'Version 1', value: 1 },
{ label: 'Version 2', value: 2 },
]}
/>
);
}
This inspector is meant for local tooling and debug screens, not default production UI.
FAQs
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
PolinRider expands across npm, Packagist, Go modules, and Chrome extensions, using hidden loaders to target developer environments.

Security News
Open source attacks are accelerating as AI coding agents pull in dependencies faster, with less human review.

Research
/Security News
Malicious Chrome and Firefox extensions posed as free VPNs while stealing clipboard data through later extension updates.