A free, open-source platform that helps developers create engaging visual content - from images and videos to dynamic assets that make developer processes more engaging.
Basely transforms the way developers create and share content by providing tools to generate various media formats directly from React components. Whether you need to create badges, charts, status indicators, or any visual element, Basely makes it simple and efficient.
- Create visual content - Generate high-quality images, videos, and dynamic assets directly from components
- Build engaging experiences - Create badges, charts, status indicators, and visual elements
- Enhance developer workflows - Make documentation, dashboards, and reports more engaging
- Use anywhere - Works in Node.js, browsers, and serverless environments
Basely consists of three main packages:
The main JavaScript library that provides a simple API for generating images and videos.
npm install baselyA powerful API server that renders React components using Puppeteer in a headless browser environment.
A collection of pre-built React components for common use cases like baseline images, badges, and charts.
npm install baselyimport basely from 'basely';
// Generate a baseline image
const response = await basely.img.baseline(
"Node.js Support",
[
[
{ "tool": "bun", "supported": true },
{ "tool": "pnpm", "supported": true },
{ "tool": "npm", "supported": true }
]
]
)
--
// Render a custom component
const response = await basely.img(
"@basely/components",
{
import: "Baseline",
props: {
title: "Node.js Support",
toolGroups: [
[
{ tool: "bun", supported: true },
{ tool: "pnpm", supported: true },
{ tool: "npm", supported: false }
]
]
}
}
);The Basely server can be configured using environment variables:
SERVER_URL: The server URL (default:http://localhost:3000)IMPORT_URL: The import URL for packages (default:http://localhost:3344)
This project is licensed under the MIT License - see the LICENSE file for details.
Made with ❤️ by the LiveSession team