
Security News
US Government Forces Anthropic to Pull Claude Fable Days After Launch
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.
@pie-players/pie-context
Advanced tools
Framework-agnostic Context Protocol helpers for PIE web components
Framework-agnostic Context Protocol helpers for PIE web components.
This package implements the Web Components community context-request protocol
so orchestration/runtime dependencies can be shared without prop drilling.
createContext<T>(key) for typed context keysContextRequestEvent and ContextProviderEventContextProvider and provideContext(...)ContextConsumer, consumeContext(...), and requestContext(...)ContextRoot for late-provider replay of pending subscribing requestsbubbles: true and composed: true.===).ContextRequestEvent.subscribe defaults to false (one-shot request).stopPropagation() when they satisfy a matching request.subscribe: true) and include unsubscribe callbacks.ContextRoot only tracks subscribing requests to avoid unnecessary retention.ContextRoot dedupes pending replay by (requestor, callback) pair.See LIT_PARITY_CHECKLIST.md for the parity checklist used to align semantics
with ../lit/packages/context core APIs.
Keep Svelte reactivity for internal state and use this package for ambient runtime dependencies between components:
import { onMount } from "svelte";
import { ContextConsumer, createContext } from "@pie-players/pie-context";
const toolkitContext = createContext<{ assessmentId: string }>(
Symbol("toolkit-runtime"),
);
let host: HTMLElement;
let assessmentId = "";
let consumer: ContextConsumer<typeof toolkitContext>;
onMount(() => {
consumer = new ContextConsumer(host, {
context: toolkitContext,
subscribe: true,
onValue: (value) => {
assessmentId = value.assessmentId;
},
});
consumer.connect();
return () => consumer.disconnect();
});
FAQs
Framework-agnostic Context Protocol helpers for PIE web components
We found that @pie-players/pie-context demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
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
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.

Security News
A network of 152 Chrome live wallpaper extensions hid ad tracking and made extension-driven traffic look like Google search clicks.

Company News
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.