| title: | MoiPosterImproved | |||||
|---|---|---|---|---|---|---|
| description: | Tool to manage moi.md files for Val Town content | |||||
| url: | https://moiposter.val.run/ | |||||
| imageUrl: | https://chatgpt.com/backend-api/public_content/enc/eyJpZCI6Im1fNjgwZmZhYzU5MDQwODE5MThiNTEyMWVkMGRhZGEzYWQ6ZmlsZV8wMDAwMDAwMDIwMzg2MjMwYThiZWNmM2ViZjQ4NzgwYSIsInRzIjoiNDg0OTY2IiwicCI6InB5aSIsInNpZyI6IjcwYTg4NTEwZTNhYTYxMzRmMWQzNmM0MWVmMmZiNzE2ZWZkZGNkNzI0OTk3MWY4ZjNiN2NmNzExMDU5ZGNkYmEiLCJ2IjoiMCIsImdpem1vX2lkIjpudWxsfQ== | |||||
| author: | dcm31 | |||||
| tags: |
| |||||
| tier: | 1 | |||||
| tabs: |
|
An improved tool for creating and managing moi.md files across Val Town vals. This project provides both a web interface and a script that can be imported and used programmatically.
This is a Val Town project. You can use it by importing the standalone script directly:
// Import the processor for batch operations
import moiPoster from "https://esm.town/v/dcm31/moiPosterScript";
// Process all public vals
const results = await moiPoster({ filter: 'public' });
This project includes the following components:
- Backend API with Hono for handling requests
- React-based frontend with moi.md editor and preview
- Shared utilities for generating appropriate moi.md content
- Batch processing functionality to update many vals at once
- Create and edit moi.md files with a user-friendly interface
- Preview markdown with live updates
- Filter vals by privacy settings
- Batch process multiple vals at once
- Automatic generation of appropriate frontmatter and content
- Support for priority tier and custom tabs for build.moi integration
- Field-by-field editing of moi.md frontmatter
- Preservation of existing content when updating
This version adds support for two new fields in the moi.md frontmatter:
The tier field allows you to set the display priority in build.moi:
tier: 1.5
- Lower values (e.g., 1) appear before higher values (e.g., 3)
- Decimal values are supported (e.g., 0.5, 1.3, 2.7)
- Items with the same tier value maintain their original order
The tabs field allows you to assign vals to custom tab categories:
tabs: ["Projects", "Tutorials", "Demos"]
- Vals can belong to multiple tabs by listing multiple tab names
- Tabs appear between the "Posts" and "Code" navigation items in build.moi
- Each tab contains only content explicitly assigned to it
// Import the processor for batch operations
import moiPoster from "https://esm.town/v/dcm31/moiPosterScript";
// Process only public vals with tier and tabs support
const results = await moiPoster({
filter: 'public',
overwrite: true, // Overwrite existing moi.md files
options: {
tier: 2, // Set priority tier for all vals
tabs: ["Projects"] // Add all vals to the Projects tab
}
});
console.log(`Created ${results.created} moi.md files`);
console.log(`Updated ${results.updated} moi.md files`);
This tool is designed to work seamlessly with the build.moi project, which provides a modern showcase for Val Town profiles.
When you create moi.md files with this tool, they'll automatically be displayed in the build.moi interface, organized according to your tier and tabs configuration.
MIT
Last updated: 2025-04-29