
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.
@mastra/admin
Advanced tools
npx @mastra init
or pnpx @mastra init
Update nextConfig with esmExternals: 'loose'
const nextConfig = {
experimental: {
esmExternals: 'loose',
}
}
export default nextConfig;
import { createFramework } from ‘@mastra/core’
import { config } from ‘mastra.config.ts // update path accordingly
export const framework = createFramework(config)
import { framework } from ‘./framework-utils’; // update path accordingly
const GoogleConnectButton = () => {
const router = framework.createRouter()
const OAuthConnectionRoute = router?.makeConnectURI({
name: 'Google' // Integration name
connectionId: ‘user-1’, // This is most likely your userID
clientRedirectPath: "/", // Where you want to redirect to after successful connection.
});
return (
<a href={OAuthConnectionRoute}>Connect with Google</a>
)
}
import { framework } from ‘./framework-utils’; // update path accordingly
const recordData = await framework.getIntegration('GOOGLE)?.query({
connectionId: `1`,
entityType: 'CONTACTS',
filters: {
'data.email': {
contains: 'mail',
},
},
sort: ['asc(createdAt)', 'desc(updatedAt)'],
});
const res = await framework.executeAction({
integrationName: 'GOOGLE',
action: 'SEND_EMAIL',
payload: {
data: {
to: emails,
subject,
body,
},
ctx: {
connectionId: 'user-1',
},
},
});
FAQs
## Initialize CLI
We found that @mastra/admin demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
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.