
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
A simple proxy service for Mux, TicketSource, Vimeo, Acast, and Cloudflare R2 APIs that securely stores credentials and forwards API requests. Also provides TypeScript types for TicketSource events and a **fully generated, type-safe R2 API client**.
A simple proxy service for Mux, TicketSource, Vimeo, Acast, and Cloudflare R2 APIs that securely stores credentials and forwards API requests. Also provides TypeScript types for TicketSource events and a fully generated, type-safe R2 API client.
This project uses OpenAPI as the single source of truth for the R2 API. Everything is generated from static/r2_openapi.yaml:
Interactive API documentation is available at:
http://localhost:5173/api/docshttps://moxy.uilo.co/api/docsThe documentation is automatically generated from the OpenAPI spec and includes interactive endpoint testing, request/response examples, and authentication setup.
# 1. Edit the OpenAPI spec
vim static/r2_openapi.yaml
# 2. Validate and generate everything
bun run ci:validate
# 3. Commit (pre-commit hooks run automatically)
git commit -m "Add new endpoint"
# Validate OpenAPI spec
bun run validate:openapi
# Generate everything from spec
bun run generate:all
# Run full CI validation locally
bun run ci:validate
# Run tests
bun run test:run
# Run client tests
bun run test:client
# Generate individual components
bun run generate:types # TypeScript types
bun run generate:client # API client
bun run generate:postman # Postman collection
The generated client is available as an npm package:
import { R2 } from 'moxyloco/r2'
const client = new R2({
token: 'your-token',
})
// List assets in a bucket (fully type-safe, no need to type the response)
const assets = await client.get_bucket('my-bucket')
console.log('Assets:', assets.data)
console.log('Folders:', assets.included)
// Upload an asset
const file = new File(['test content'], 'test.txt', { type: 'text/plain' })
const upload_result = await client.upload_asset('my-bucket', file)
console.log('Uploaded:', upload_result.data)
moxyloco/r2 - Full client with methods and typesstatic/r2_openapi.yamlbun run ci:validateBenefits:
This service acts as a proxy for Mux, TicketSource, Vimeo, Acast, and Cloudflare R2 APIs, storing your credentials securely and allowing you to make API calls without exposing your tokens directly.
API access is restricted to the following domains only:
storyblok.com*.storyblok.com (all subdomains)localhost (for development)The service checks the Origin and Referer headers to validate domain access. Server-to-server calls (without these headers) are allowed by default.
/mux and enter your MUX_TOKEN_ID and MUX_TOKEN_SECRET/ticketsource and enter your TICKETSOURCE_TOKEN/vimeo and enter your VIMEO_ACCESS_TOKEN/r2 and enter your R2_ACCOUNT_ID, R2_ACCESS_KEY_ID, and R2_SECRET_ACCESS_KEYGET /api/mux/your/mux/endpoint
Authorization: Bearer YOUR_SECRET_ID
GET /api/ticketsource/your/ticketsource/endpoint
Authorization: Bearer YOUR_SECRET_ID
GET /api/vimeo/your/vimeo/endpoint
Authorization: Bearer YOUR_SECRET_ID
The R2 API provides a database-backed folder structure for Cloudflare R2 storage. See the API Documentation for complete endpoint details and examples.
Key Features:
GET /api/acastaway/{show_id}?page=1&limit=10
Note: Acast endpoints don't require authentication - they use public RSS feeds with smart caching and pagination.
This package exports TypeScript types for multiple services:
import { R2 } from 'moxyloco/r2'
// Use the generated client
const client = new R2({ token: 'your-token' })
const assets = await client.get_bucket('my-bucket')
import type { TicketsauceEvent } from 'moxyloco/ticketsauce-types'
import type { AcastawayShow } from 'moxyloco/acastaway-types'
Note: This package requires storyloco as a peer dependency for the underlying types. Make sure you have it installed:
npm install storyloco
GET /api/mux/* - Proxy to Mux API
POST /api/mux/* - Proxy to Mux API
PUT /api/mux/* - Proxy to Mux API
DELETE /api/mux/* - Proxy to Mux API
PATCH /api/mux/* - Proxy to Mux API
GET /api/ticketsource/* - Proxy to TicketSource API
POST /api/ticketsource/* - Proxy to TicketSource API
PUT /api/ticketsource/* - Proxy to TicketSource API
DELETE /api/ticketsource/* - Proxy to TicketSource API
PATCH /api/ticketsource/* - Proxy to TicketSource API
GET /api/vimeo/* - Proxy to Vimeo API
POST /api/vimeo/* - Proxy to Vimeo API
PUT /api/vimeo/* - Proxy to Vimeo API
DELETE /api/vimeo/* - Proxy to Vimeo API
PATCH /api/vimeo/* - Proxy to Vimeo API
GET /api/r2/* - R2 Asset Management API (see API Documentation)
GET /api/acastaway/{show_id} - Fetch Acast podcast show data with pagination
POST /api/acastaway/{show_id} - Invalidate cache for specific show
POST /api/acastaway - Webhook endpoint for cache invalidation
# Start development server
bun dev
# Run full validation (recommended before committing)
bun run ci:validate
# View API documentation
open http://localhost:5173/api/docs
This is a Cloudflare Worker. Deploy to your Cloudflare account:
bun run deploy
FAQs
A simple proxy service for Mux, TicketSource, Vimeo, Acast, and Cloudflare R2 APIs that securely stores credentials and forwards API requests. Also provides TypeScript types for TicketSource events and a **fully generated, type-safe R2 API client**.
The npm package moxyloco receives a total of 7 weekly downloads. As such, moxyloco popularity was classified as not popular.
We found that moxyloco 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.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.