
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@photon-ai/rapid
Advanced tools
Toolkit for rapid AI and agent prototyping with reusable building blocks for terminal-first development
Toolkit for rapid AI and agent prototyping. Rapid gives you reusable building blocks so you can validate new agent architectures, memory systems, and workflows without rebuilding the interface layer every time.
Install the package with your preferred manager (Node.js 18+):
npm install @photon-ai/rapid
# or
pnpm add @photon-ai/rapid
# or
bun add @photon-ai/rapid
Rapid expects a TypeScript toolchain (typescript@^5.9.3 as a peer dependency). If you are running in CommonJS, bundle or load with a compatible transpiler such as ts-node/register.
This section will expand as new building blocks ship. Each module lives under an explicit export path so you can import only what you need.
| Category | Module | Description | Status |
|---|---|---|---|
| Chat TUI | @photon-ai/rapid/cli-chat | Ink-powered terminal chat UI with message panel, input bar, and controller API. | Available |
Render the chat surface inside your CLI and connect it to your agent logic.
// demo.ts
import { renderChatUI } from "@photon-ai/rapid/cli-chat";
const delay = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms));
const chat = renderChatUI();
chat.sendMessage("Welcome to Rapid! Type anything and I'll echo it back.");
chat.onInput(async (prompt) => {
chat.sendMessage("Thinking...");
await delay(500);
chat.sendMessage(`Echo: ${prompt.toUpperCase()}`);
});
// Keep the Ink app alive. Press Ctrl+C to exit.
await new Promise(() => {});
Run the example with your preferred TypeScript runner:
ts-node demo.ts
renderChatUI() mounts the Ink application and returns an imperative controller.chat.onInput(handler) registers listeners for user-submitted prompts (supports async handlers).chat.sendMessage(content) streams assistant messages back into the UI in real time.src/<module-name> and export them via package.json.Rapid uses Bun for scripts and dependency management:
bun install # install dependencies
bun run src/index.ts
Contributions, bug reports, and ideas are welcome—open an issue or PR when you build something others can reuse.
FAQs
Toolkit for rapid AI and agent prototyping with reusable building blocks for terminal-first development
We found that @photon-ai/rapid 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.