Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
@markprompt/core
Advanced tools
`@markprompt/core` is the core library for Markprompt, a conversational AI component for your website, trained on your data.
@markprompt/core
@markprompt/core
is the core library for Markprompt, a conversational AI component for your website, trained on your data.
It contains core functionality for Markprompt and allows you to build abstractions on top of it.
Currently,
npm install @markprompt/core
In browsers with esm.sh:
<script type="module">
import { submitPrompt } from 'https://esm.sh/@markprompt/core';
</script>
import { submitPrompt } from '@markprompt/core';
// user input
const prompt = 'Hello, Markprompt!';
// can be obtained in your project settings on markprompt.com
const projectKey = '<project-key>';
// called when a new answer chunk is available
// should be concatenated to previous chunks
function onAnswerChunk(chunk) {
// process an answer chunk
}
// called when references are available
function onReferences(references) {
// process references
}
// optional options, defaults displayed
const options = {
model: 'gpt-3.5-turbo', // supports all OpenAI models
iDontKnowMessage: 'Sorry, I am not sure how to answer that.',
completionsUrl: 'https://api.markprompt.com/v1/completions', // or your own completions API endpoint,
};
await submitPrompt(prompt, projectKey, onAnswerChunk, onReferences, options);
FAQs
`@markprompt/core` is the core library for Markprompt, a conversational AI component for your website, trained on your data.
The npm package @markprompt/core receives a total of 11,621 weekly downloads. As such, @markprompt/core popularity was classified as popular.
We found that @markprompt/core 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
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.