
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/core
Advanced tools
Deterministic site-index pipeline: config, discovery, loading, validation, and artifact generation.
Deterministic site-index pipeline for config resolution, discovery, loading, validation, deduplication, and artifact generation.
npm install @site-index/core
Requirements:
>=22Use @site-index/core when you need programmatic control and can provide module loading yourself.
site-index for CLI-driven workflows.@site-index/vite-plugin for Vite projects.export { Artifact } from "./domains/artifacts/artifact.js";
export type { LoadModule, Options } from "./domains/options/types.js";
export type * from "./domains/site-indexes/types.js";
export type { Warning, Result } from "./types.js";
export { main } from "./main.js";
main(options: Options): Promise<Result<Artifact[]>>
Options:
type Options = {
siteUrl: string;
rootPath: string;
extensions?: string[] | undefined;
loadModule: LoadModule;
};
LoadModule:
type LoadModule = (module: Module) => Promise<ModuleExports>;
Module:
type Module = {
filePath: string;
importId: string;
};
ModuleExports:
type ModuleExports = {
siteIndexes: SiteIndex[];
};
type SiteIndex = {
url: `/${string}`;
lastModified?: string | undefined;
sitemap?: string | undefined;
index?: boolean | undefined;
};
Validation rules:
url must start with /url cannot contain query strings or fragmentslastModified is optionallastModified must be an ISO date or an ISO datetime with offsetsitemap is optionalsitemap defaults to pagessitemap must be lowercase and can include hyphensindex is optionalindex defaults to trueindex: false excludes the URL from sitemap artifacts and adds Disallow: <path> to robots.txtGenerated:
sitemap.xmlsitemap-<name>.xmlrobots.txtArtifact content types:
.xml -> application/xml; charset=utf-8.txt -> text/plain; charset=utf-8main(...):
*.site-index.* modulesloadModuleWarning categories include:
Example with a runtime that can import the discovered module files:
import { main } from "@site-index/core";
import type { Module, ModuleExports } from "@site-index/core";
const result = await main({
siteUrl: "https://example.com",
rootPath: process.cwd(),
extensions: [".mjs"],
loadModule: async (module: Module): Promise<ModuleExports> => {
const loaded = await import(module.filePath);
return loaded.default as ModuleExports;
},
});
FAQs
Deterministic site-index pipeline: config, discovery, loading, validation, and artifact generation.
The npm package @site-index/core receives a total of 0 weekly downloads. As such, @site-index/core popularity was classified as not popular.
We found that @site-index/core 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.