
Research
Supply Chain Attack on Axios Pulls Malicious Dependency from npm
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.
@g-1/example
Advanced tools
A complete example application demonstrating how to build production-ready APIs with the @g-1/core framework.the @g-1/core framework.
Install dependencies:
bun install
Set up environment variables:
cp .env.example .env
# Edit .env with your configuration
Generate authentication secret:
bun run auth:generate
Set up database:
bun run db:generate
bun run db:migrate
Start development server:
bun run dev
| Variable | Description | Required |
|---|---|---|
BETTER_AUTH_SECRET | Secret key for authentication (min 32 chars) | Yes |
BETTER_AUTH_URL | Base URL for auth callbacks | Yes |
RESEND_API_KEY | API key for email service | No |
FROM_EMAIL | Email address for outgoing emails | No |
bun run dev - Start development serverbun run build - Build for productionbun run deploy - Deploy to Cloudflare Workersbun run test - Run testsbun run lint - Lint codebun run db:generate - Generate database migrationsbun run db:migrate - Apply database migrationsThis boilerplate uses the @g-1/core framework which provides:
@g-1/core): Router, middleware, utilities@g-1/templates): Pre-built auth, database, and API routes@g-1/util): Shared utility functionsConfigure Cloudflare:
bun run cf:login
Set up D1 database:
wrangler d1 create g1-api-db
# Update wrangler.toml with database_id
Set up KV namespace:
wrangler kv:namespace create "MY_API_PROJECT_KV_AUTH"
# Update wrangler.toml with namespace id
Deploy:
bun run deploy
MIT
FAQs
Example application demonstrating the `@g-1/core` framework
We found that @g-1/example 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
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

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.