
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

The Fly CDN is an edge application built to route HTTP traffic, cache content, and add "edge features" (like auth) to any application. It's written in TypeScript and runs on the Fly Edge Application runtime. It's built for developers — means runs locally, has a test suite, and integrate into a CI/release pipeline.
The code targets the Service Worker API and uses the Fly runtime API where necessary. You can deploy it to fly.io hosting or run it on any platform with an Edge Service Worker implementation (with reduced features).
npm install -g yarn)git clone https://gist.github.com/ebc48856b74fde392a6d62a032b59a97.git forking-cdn
cd forking-cdn
yarn install
yarn start # visit http://localhost:3000
Once you have that running, try swapping in a different origin. Edit index.ts and and replace backends.origin("https://getting-started.edgeapp.net") with backends.githubPages("superfly/landing").
You can deploy CDN based applications to the Fly hosting service using the CLI. Sign up at fly.io, then run:
yarn fly login
yarn fly app create <name-of-your-app>
yarn fly deploy
You can also run on CloudFlare or StackPath, though not all features will work.
You can do a lot with a single index.ts file. This example redirects all requests to https and caches content when possible:
import { backends, middleware, pipeline } from "@fly/cdn";
// user middleware for https redirect and caching
const mw = pipeline(
middleware.httpsUpgrader,
middleware.httpCache
)
// point it at the origin
const app = mw(
backends.origin("https://getting-started.edgeapp.net")
);
// respond to http requests
fly.http.respondWith(app);
Backends are origin services you can route requests to. The project includes a backend type any HTTP service, and more specialized types for proxying to third party services.
Want to help out? Write a new backend type and open a pull request!
Middleware applies logic to requests before they're sent to the backend, and responses before they're sent to users.
See CONTRIBUTING.
The Fly CDN can be run standalone with a yaml based configuration schema. If you prefer to run with a config file, check out the config README.
FAQs
Fly's TypeScript CDN
We found that @fly/cdn demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.