
Research
/Security News
Popular Go Decimal Library Targeted by Long-Running Typosquat with DNS Backdoor
A long-running Go typosquat impersonated the popular shopspring/decimal library and used DNS TXT records to execute commands.
@site-index/vite-runtime
Advanced tools
Vite-backed runtime for executing site-index pipelines through Vite SSR module loading.
npm install @site-index/vite-runtime
Requirements:
>=22vite ^8.0.10Use this package when building adapters or integrations that need direct Vite-backed pipeline execution.
site-index or @site-index/vite-plugin directly.export { createRuntimeService } from "./domains/runtime/factory.js";
export { RuntimeServiceBuilder } from "./domains/runtime/builder.js";
export { RuntimeService } from "./domains/runtime/service.js";
export type { Options, RuntimeViteConfig } from "./types.js";
Factory:
createRuntimeService(): RuntimeServiceBuilder
Builder:
class RuntimeServiceBuilder {
withOptions(options: Options): this;
withViteConfig(config: RuntimeViteConfig): this;
withViteServer(server: Vite.ViteDevServer): this;
build(): RuntimeService;
}
Runtime service:
class RuntimeService {
buildArtifacts(): Promise<SiteIndex.Result<SiteIndex.Artifact[]>>;
getArtifacts(): readonly SiteIndex.Artifact[];
getWatchedFiles(): ReadonlySet<string>;
close(): Promise<void>;
}
Options:
type Options = Pick<SiteIndex.Options, "siteUrl" | "extensions">;
Runtime Vite config:
type RuntimeViteConfig = {
root: Vite.ResolvedConfig["root"];
mode: Vite.ResolvedConfig["mode"];
configFile?: Vite.ResolvedConfig["configFile"];
};
buildArtifacts() calls through an internal queueclose()import { createRuntimeService } from "@site-index/vite-runtime";
const runtime = createRuntimeService()
.withOptions({
siteUrl: "https://example.com",
})
.withViteConfig({
root: process.cwd(),
mode: "production",
})
.build();
try {
const result = await runtime.buildArtifacts();
// use result.data and result.warnings
} finally {
await runtime.close();
}
FAQs
Vite-backed runtime for executing site-index pipelines.
The npm package @site-index/vite-runtime receives a total of 587 weekly downloads. As such, @site-index/vite-runtime popularity was classified as not popular.
We found that @site-index/vite-runtime demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
/Security News
A long-running Go typosquat impersonated the popular shopspring/decimal library and used DNS TXT records to execute commands.

Research
Active npm supply chain attack compromises @antv packages in a fast-moving malicious publish wave tied to Mini Shai-Hulud.

Security News
/Research
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.