feat(web): add og image

This commit is contained in:
Aman Varshney
2025-08-29 23:48:43 +05:30
parent 9f309a8db3
commit f37412f076
17 changed files with 159 additions and 46 deletions

View File

@@ -1,11 +1,11 @@
---
title: Programmatic API
description: Use Better-T Stack programmatically in your Node.js applications
description: Use Better-T-Stack programmatically in your Node.js applications
---
## Overview
The Better-T Stack CLI can be used programmatically in your Node.js applications, allowing you to create projects, add features, and manage configurations through JavaScript/TypeScript code instead of shell commands.
The Better-T-Stack CLI can be used programmatically in your Node.js applications, allowing you to create projects, add features, and manage configurations through JavaScript/TypeScript code instead of shell commands.
## Installation
@@ -78,13 +78,13 @@ const result = await init("my-private-project", {
});
```
> **Note:** Analytics help improve Better-T Stack by providing insights into usage patterns. When disabled, no data is collected or transmitted.
> **Note:** Analytics help improve Better-T-Stack by providing insights into usage patterns. When disabled, no data is collected or transmitted.
## API Reference
### `init(projectName?, options?)`
Creates a new Better-T Stack project.
Creates a new Better-T-Stack project.
**Parameters:**
- `projectName` (string, optional): Project name or directory path
@@ -104,7 +104,7 @@ const result = await init("my-project", {
### `sponsors()`
Display Better-T Stack sponsors (same as CLI).
Display Better-T-Stack sponsors (same as CLI).
**Returns:** `Promise<void>`