
Security News
Risky Biz Podcast: Making Reachability Analysis Work in Real-World Codebases
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
bridge-compile
Advanced tools
Compile a completely typed sdk of your Bridge project with one command.
Run the compiler in your Bridge project:
npx bridge-compile
This will automatically generate:
./sdk/
directory./sdk.swift
file./openapi.json
You'll only be prompted for your server URL if no configuration file exists.
You can create a bridge.config.json
file to avoid the server URL prompt:
{
"serverUrl": "http://localhost:8080"
}
You can also pass the server URL as a command line argument:
npx bridge-compile http://localhost:8080
The Swift SDK generates a single sdk.swift
file that includes:
APIError
type// Base networking layer
struct APIError: Error { ... }
struct Result<T: Decodable> { ... }
func fetch<R: Decodable>(...) async -> Result<R> { ... }
// Generated API classes
class User {
struct CreateBody: Encodable { ... }
struct CreateResponse: Decodable { ... }
func create(body: CreateBody) async -> Result<CreateResponse> { ... }
}
// Main API entry point
public class API {
let user = User()
}
let api = API()
// Create a user
let result = await api.user.create(body: User.CreateBody(
name: User.CreateBody.Name(first: "John", last: "Doe"),
email: "john@example.com"
))
switch result {
case let (data?, nil):
print("User created: \(data.user.name)")
case let (nil, error?):
print("Error: \(error.name) - \(error.status)")
default:
print("Unknown error")
}
FAQs
Compile the sdk of your Bridge project with one command locally
The npm package bridge-compile receives a total of 2 weekly downloads. As such, bridge-compile popularity was classified as not popular.
We found that bridge-compile 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
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.