
Research
TeamPCP Compromises Telnyx Python SDK to Deliver Credential-Stealing Malware
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.
@opengov/psp-contract
Advanced tools
Shared contract (types, constants, helpers) for PSP micro-frontend modules
Shared contract for PSP micro-frontend modules — types, constants, and helpers.
This package is the single source of truth for the interfaces that define how remote micro-frontend modules integrate with the Public Service Platform (PSP) shell. Instead of copy-pasting type definitions, remote teams import them directly from this package.
bun add @opengov/psp-contract
import type { MountableApp, ModuleMountOptions } from '@opengov/psp-contract';
export default {
mount(container: HTMLElement, options: ModuleMountOptions) {
// options includes: baseRouterPath, auth0Config, activeEntity,
// hostingEnvironment, registryConfig
},
unmount() {
// Clean up
},
} satisfies MountableApp;
| Type | Description |
|---|---|
MountableApp | Interface remote modules must implement (mount/unmount) |
ModuleMountOptions | Options passed to mount() by the PSP shell |
Auth0Config | Auth0 configuration passed to remote modules |
EntityBase | Base entity fields (id, friendlyId, name, etc.) |
HostingEnvironment | Enum: DEVELOPMENT, INTEGRATION, STAGING, PRODUCTION |
| Type | Description |
|---|---|
PspUserInfo | User info (email, sub, name) passed to modules |
AppRegistryCallbackContext | Context provided to module URL resolvers |
ModuleUrlResolver | Function type for resolving module URLs |
This package lives in the PSP monorepo at packages/psp-contract/.
# Build the package
bun run build:types
# Or from within the package directory
cd packages/psp-contract && bun run build
The PSP shell re-exports these types via src/types.ts, so existing internal imports (from '@/types') continue to work unchanged.
FAQs
Shared contract (types, constants, helpers) for PSP micro-frontend modules
The npm package @opengov/psp-contract receives a total of 0 weekly downloads. As such, @opengov/psp-contract popularity was classified as not popular.
We found that @opengov/psp-contract demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 393 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.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.

Security News
/Research
Widespread GitHub phishing campaign uses fake Visual Studio Code security alerts in Discussions to trick developers into visiting malicious website.