Public
Like
moiPosterImproved
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Viewing readonly version of main branch: v55View latest version
| title: | MoiPosterImproved | ||||
|---|---|---|---|---|---|
| description: | Tool to manage moi.md files for Val Town content | ||||
| imageUrl: | https://chatgpt.com/backend-api/public_content/enc/eyJpZCI6Im1fNjgwZmZhYzU5MDQwODE5MThiNTEyMWVkMGRhZGEzYWQ6ZmlsZV8wMDAwMDAwMDIwMzg2MjMwYThiZWNmM2ViZjQ4NzgwYSIsInRzIjoiNDg0OTY2IiwicCI6InB5aSIsInNpZyI6IjcwYTg4NTEwZTNhYTYxMzRmMWQzNmM0MWVmMmZiNzE2ZWZkZGNkNzI0OTk3MWY4ZjNiN2NmNzExMDU5ZGNkYmEiLCJ2IjoiMCIsImdpem1vX2lkIjpudWxsfQ== | ||||
| url: | https://moiposter.val.run/ | ||||
| author: | dcm312 | ||||
| tags: |
| ||||
| tabs: |
| ||||
| excludeFromPosts: | true |
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
// Import the processor for batch operations
import moiPoster from "https://esm.town/v/dcm31/moiPosterScript";
// Process only public vals
const results = await moiPoster({
filter: 'public',
overwrite: true // Overwrite existing moi.md files
});
console.log(`Created ${results.created} moi.md files`);
console.log(`Updated ${results.updated} moi.md files`);
MIT
Last updated: 2025-04-30