
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
whatsnew-embed
Advanced tools
Easily manage and showcase "What's New" updates in your application.
whatsnew-embed
lets you display release notes, feature announcements, and updates beautifully, with ready-to-use components for featured embeds and update cards.
classes
propnpm install whatsnew-embed
Usage Example
import { useEffect, useState, useMemo } from "react"
import { Sparkles } from "lucide-react"
import { WhatsNewCard, WhatsNewEmbed } from "whatsnew-embed"
import type { WhatsNewItem } from "../types"
const API_URL = (username: string) => `http://localhost:8000/api/v1/public/whatsnew/${username}`
export default function WhatsNewApp() {
const [entries, setEntries] = useState<WhatsNewItem[]>([])
const [selected, setSelected] = useState<WhatsNewItem | null>(null)
useEffect(() => {
fetch(API_URL(username))
.then((res) => res.json())
.then((data) => {
const sorted = data.message.entries
.sort((a: any, b: any) => new Date(b.date).getTime() - new Date(a.date).getTime())
.map((entry: any) => ({ ...entry, id: entry._id }))
setEntries(sorted)
})
.catch((err) => {
console.error("Failed to fetch What's New entries:", err)
})
}, [username])
const featured = selected ?? entries[0]
const others = useMemo(() => entries.filter((e) => e.id !== featured?.id), [entries, featured])
return (
<div className="max-w-6xl mx-auto py-12 px-4">
{/* Header */}
<div className="text-center mb-12">
<div className="flex justify-center items-center gap-2 text-blue-600">
<Sparkles className="h-6 w-6" />
<h1 className="text-4xl font-bold">What's New</h1>
</div>
<p className="text-muted-foreground mt-2">Explore the latest updates and features.</p>
</div>
{/* Featured Update */}
{featured && (
<div className="mb-12">
<WhatsNewEmbed
key={featured.id}
update={featured}
showBackButton={!!selected}
onBack={() => setSelected(null)}
classes={{
wrapper: "bg-gradient-to-br from-white to-gray-100 shadow-2xl p-10",
content: "prose prose-indigo",
}}
/>
</div>
)}
{/* Other Updates */}
{others.length > 0 && (
<div className="grid grid-cols-1 md:grid-cols-2 gap-6">
{others.map((entry) => (
<WhatsNewCard key={entry.id} update={entry} onClick={() => setSelected(entry)} />
))}
</div>
)}
</div>
)
}
WhatsNewEmbed Props
| Prop | Type | Description |
| ---------------- | ---------------------------------------- | ------------------------------------ |
| `update` | `WhatsNewItem` | Update object to display |
| `showBackButton` | `boolean` | Whether to show a back button |
| `onBack` | `() => void` | Callback when back button is clicked |
| `classes` | `{ wrapper?: string; content?: string }` | Custom CSS classes |
WhatsNewCard Props
| Prop | Type | Description |
| --------- | -------------- | ---------------------------------- |
| `update` | `WhatsNewItem` | Update object for card view |
| `onClick` | `() => void` | Click handler for selecting update |
šÆ Customization
You can fully style the embed and cards using Tailwind CSS (or your own CSS classes) via the classes prop.
FAQs
Reusable React component to embed 'What's New' updates via API
The npm package whatsnew-embed receives a total of 6 weekly downloads. As such, whatsnew-embed popularity was classified as not popular.
We found that whatsnew-embed 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
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.