
Security News
OWASP 2025 Top 10 Adds Software Supply Chain Failures, Ranked Top Community Concern
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.
@agentica/prompt-jsx
Advanced tools
Prompt-JSX is a library that allows you to structure and write AI prompts using JSX syntax. By using a React-like syntax to compose prompts as components, it significantly improves the readability and reusability of prompts.
npm install @wrtnlabs/prompt-jsx
// tsconfig.json
{
"compilerOptions": {
"jsx": "react-jsx",
"jsxImportSource": "@wrtnlabs/prompt-jsx"
}
}
import { jsx } from "@wrtnlabs/prompt-jsx";
const prompt = (
<prompt>
<instruction>
You are a friendly AI assistant. Please provide clear and accurate
responses to user questions.
</instruction>
<examples>
<input>What is Python?</input>
<output>
Python is a simple and easy-to-learn programming language. It is known
for its high readability and extensive library ecosystem.
</output>
</examples>
<context>
This conversation is for educational purposes, aimed at programming
beginners.
</context>
<persona>
You are a senior developer and educator with 10 years of experience. You
enjoy explaining complex concepts in simple terms.
</persona>
</prompt>
);
<prompt>: Root element for the prompt<instruction>: Main instructions for the AI<examples>: Contains example inputs and outputs<context>: Background information or context for the prompt<input>: Example input<output>: Example output<persona>: Defines the AI's role or personality<role>: Specifies the AI's expertise or role<br/>: Line break<strong>: Bold text<code lang="javascript">: Code block (with optional language specification)Structured Prompts
Type Safety
Reusability
Maintainability
MIT
FAQs
A library that supports configuring AI prompts using JSX syntax.
We found that @agentica/prompt-jsx demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 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.

Security News
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.