
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
snapcrawl-netlify-ssr
Advanced tools
Netlify integration for SnapCrawl. Serve pre-rendered HTML to crawlers in Edge Functions for static SPAs and Express apps.
HTML prerendering for Netlify projects powered by SnapCrawl.
This package provides simple helpers for:
netlify.toml
configSearch and social crawlers often struggle with client-side apps (React, Vue, Angular, etc.). SnapCrawl renders your pages server-side and returns fully-formed HTML to bots — improving SEO, social previews, and crawl reliability.
This package makes SnapCrawl plug-and-play on Netlify's Edge Runtime (Deno).
npm install snapcrawl-netlify-ssr
# or
yarn add snapcrawl-netlify-ssr
Set your secret in Netlify → Site settings → Environment variables:
SNAPCRAWL_SECRET
= your-secret-value
Create or edit middleware.{js,ts}
at the project root:
// middleware.js
import { withSnapCrawl } from "snapcrawl-netlify-ssr/next";
// Optional: your existing logic
function otherMiddleware() {
// ...
}
export default withSnapCrawl({ secret: process.env.SNAPCRAWL_SECRET })(
otherMiddleware
);
next/server
import keeps non-Next projects safe.success:false
, the middleware falls back to your normal app.Add an Edge Function and attach it in netlify.toml
.
netlify.toml
[build]
# ...
[[edge_functions]]
path = "/*"
function = "snapcrawl"
netlify/edge-functions/snapcrawl.js
import { createEdgeHandler } from "snapcrawl-netlify-ssr";
const handler = createEdgeHandler({
secret: Deno.env.get("SNAPCRAWL_SECRET"),
});
export default (req, ctx) =>
handler(req).then((res) => (res.status === 204 ? ctx.next() : res));
How it works
ctx.next()
when SnapCrawl returns 204).204
so Netlify serves the normal app.User-Agent
(Next.js middleware also uses a heuristic).js
, .css
, images, fonts, etc.withSnapCrawl({ secret })
Wraps (or acts as) your Next.js middleware default export.
secret
(string, required): your SnapCrawl API secret.NextResponse.next()
or your existing middleware.createEdgeHandler({ secret })
Edge Function handler for SPA/Express projects on Netlify.
secret
(string, required): your SnapCrawl API secret.204
to let Netlify serve your app.FAQs
Netlify integration for SnapCrawl. Serve pre-rendered HTML to crawlers in Edge Functions for static SPAs and Express apps.
The npm package snapcrawl-netlify-ssr receives a total of 108 weekly downloads. As such, snapcrawl-netlify-ssr popularity was classified as not popular.
We found that snapcrawl-netlify-ssr 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.