Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
fastapi-poe
Advanced tools
Create PoeAI server bot with JavaScript and Cloudflare Workers.
pnpm dlx fastapi-poe@latest init <project-name>
import { Hono } from 'hono'
import { poe } from 'fastapi-poe'
const app = new Hono()
interface Env {
API_KEY: string
}
export default {
async fetch(request: Request, env: Env, ctx: ExecutionContext) {
const bot = poe({
name: 'custom-bot-name',
key: env.API_KEY,
getSettings() {
return {
server_bot_dependencies: {
'Claude-3.5-Sonnet': 10,
},
allow_attachments: false,
suggested_replies: true,
enable_markdown: true,
}
},
async *getResponse(req) {
// Stream request to PoeAI server
for await (const response of bot.streamRequest(
req,
'Claude-3.5-Sonnet',
)) {
yield {
text: response.text,
}
}
},
})
app.post('/', bot.handler)
app.get('/', async (c) => c.text('Hello Hono!'))
return app.fetch(request, env, ctx)
},
}
FAQs
Create PoeAI server bot with JavaScript and Cloudflare Workers.
The npm package fastapi-poe receives a total of 10 weekly downloads. As such, fastapi-poe popularity was classified as not popular.
We found that fastapi-poe 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
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.