
Product
Socket MCP Adds Org Alerts, Threat Feed Review, and Package Inspection
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.
react-ascii-play
Advanced tools
A powerful React library for creating ASCII art animations and interactive ASCII-based applications. Built with TypeScript and modern React practices. This is a React port of [play.core](https://github.com/ertdfgcvb/play.core) by [Andreas Gysin](https://
A powerful React library for creating ASCII art animations and interactive ASCII-based applications. Built with TypeScript and modern React practices. This is a React port of play.core by Andreas Gysin.
npm install react-ascii-play
# or
yarn add react-ascii-play
# or
pnpm add react-ascii-play
import { AsciiRendererSettings, ReactAsciiPlay } from 'react-ascii-play';
function MyAsciiApp() {
const program = {
// Your ASCII art program logic here
pre: (context, cursor, buffer, userData) => {
// Pre logic
},
main: (context, cursor, buffer, userData) => {
// Main logic
},
post: (context, cursor, buffer, userData) => {
// Post logic
},
pointerMove: (context, cursor, buffer, userData, eventData) => {
// Pointer move logic
},
pointerDown: (context, cursor, buffer, userData, eventData) => {
// Pointer down logic
},
pointerUp: (context, cursor, buffer, userData, eventData) => {
// Pointer up logic
},
keyDown: (context, cursor, buffer, userData, eventData) => {
// Key down logic
},
};
const settings: AsciiRendererSettings = {
width: 80,
height: 24,
renderer: 'text', // or 'canvas'
fps: 60
};
return (
<ReactAsciiPlay
program={program}
settings={settings}
/>
);
}
ReactAsciiPlayThe main component for rendering ASCII art.
interface ReactAsciiPlayProps {
program: AsciiRendererProgram;
settings: AsciiRendererSettings;
className?: string;
loop?: (callback: AnimationCallback) => void;
}
The library exports several modules for different functionalities:
buffer: Buffer manipulation utilitiescamera: Camera and viewport managementcanvas: Canvas rendering utilitiescolor: Color manipulation and conversiondrawInfo: Drawing information utilitiesexportframe: Frame export functionalityfiledownload: File download utilitiesimage: Image processing and conversionload: Asset loading utilitiesnum: Numerical utilitiessort: Sorting utilitiesvec2: 2D vector operationsvec3: 3D vector operationssdf: Signed Distance Field utilitiesCheck out the examples directory for more detailed usage examples.
Contributions are welcome! Please feel free to submit a Pull Request.
Apache License 2.0 © @ignmandagaran
This project is a port of play.core which is also licensed under Apache License 2.0.
FAQs
A powerful React library for creating ASCII art animations and interactive ASCII-based applications. Built with TypeScript and modern React practices. This is a React port of [play.core](https://github.com/ertdfgcvb/play.core) by [Andreas Gysin](https://
The npm package react-ascii-play receives a total of 25 weekly downloads. As such, react-ascii-play popularity was classified as not popular.
We found that react-ascii-play demonstrated a not healthy version release cadence and project activity because the last version was released 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.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.

Product
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.

Research
More than 140 Mastra npm packages were compromised in a supply chain attack that used a typosquatted dependency to deliver a cross-platform infostealer during installation.