@agenticweb-md/generator
v1.0.0
Published
Interactive CLI generator for agenticweb.md files
Readme
@agenticweb-md/generator
Interactive CLI generator for agenticweb.md discovery files.
Installation
npm install -g @agenticweb-md/generatorOr use directly with npx:
npx @agenticweb-md/generatorCLI Usage
# Interactive mode (recommended)
npx @agenticweb-md/generator
# Specify output file
npx @agenticweb-md/generator -o ./my-project/agenticweb.md
# Show help
npx @agenticweb-md/generator --helpThe interactive wizard will guide you through:
- Basics - Description and update date
- Organization - Name, legal details, address, certifications
- Contacts - Support, security, DPO, sales
- Links - Documentation, privacy, terms, GitHub
- Capabilities - APIs, MCP servers, Skills, Models, etc.
Programmatic Usage
import { generateAgenticWeb, today } from '@agenticweb-md/generator';
const content = generateAgenticWeb({
description: 'My organization description',
updated: today(),
organization: {
name: 'My Company',
website: 'https://example.com',
},
contacts: {
support: 'mailto:[email protected]',
},
capabilities: [
{
kind: 'api',
id: 'my-api',
description: 'My REST API',
url: 'https://api.example.com',
status: 'active',
pricing_model: 'free',
},
],
});
console.log(content);API
generateAgenticWeb(options: GeneratorOptions): string
Generate a complete agenticweb.md file content.
generateMinimal(description: string): string
Generate a minimal agenticweb.md with just the description.
today(): string
Returns today's date in YYYY-MM-DD format.
After Generation
- Review and edit the generated file
- Validate it:
npx @agenticweb-md/validator ./agenticweb.md - Deploy to your domain root:
https://yourdomain.com/agenticweb.md
License
MIT
