Likes
121
steel
steel_puppeteer_starter
Script
Steel + Puppeteer Starter This template shows you how to use Steel with Puppeteer
to run browser automations in the cloud on Val Town.
It includes session management, error handling,
and a basic example you can customize. This starter
templated was ported from
this one on Github . Quick start The script shows you how to: Create and manage a Steel browser session Connect Puppeteer to the session Navigate to a website (Hacker News in this example) Extract data from the page (top 5 stories) Handle errors and cleanup properly View your live session in Steel's session viewer To run it: Get your free Steel API key at https://app.steel.dev/settings/api-keys Add it to your Val Town Environment Variables as STEEL_API_KEY Click Fork on this val Click Run on this val Writing your automation Find this section in the script: // ============================================================
// Your Automations Go Here!
// ============================================================
// Example automation (you can delete this)
await page.goto('https://news.ycombinator.com');
// ... rest of example code You can replace the code here with whatever automation scripts you want to run. Configuration The template includes common Steel configurations you can enable: const session = await client.sessions.create({
useProxy: true, // Use Steel's proxy network
solveCaptcha: true, // Enable CAPTCHA solving
sessionTimeout: 1800000, // 30 minute timeout (default: 15 mins)
userAgent: 'custom-ua', // Custom User-Agent
}); Error handling The template includes error handling and cleanup: try {
// Your automation code
} finally {
// Cleanup runs even if there's an error
if (browser) await browser.close();
if (session) await client.sessions.release(session.id);
} Support Steel Documentation API Reference Discord Community
1
rowdypow
neighborsolutions
HTTP
Neighbor Solutions At Neighbor Solutions , we are empowering communities to transform the lives of those in need. Contact Neighbor Solutions Visit our website Email us! Find us on LinkedIn While this is on rowdypow's ValTown, this code is owned and operated by Neighbor Solutions.
2
minhee
blob_kv
Script
BlobKvStore : Fedify KvStore implementation for Val Town This module provides the BlobVKvStore class, a KvStore implementation
built on top of Val Town's blob storage . Here's how to use: import { createFederation } from "jsr:@fedify/fedify@^1.4.3";
import { BlobKvStore } from "https://esm.town/v/minhee/blob_kv";
import { blob } from "https://esm.town/v/std/blob";
const federation = createFederation<void>({
kv: new BlobKvStore(blob),
});
1
melissanf
blogIdeaGeneratorApp
HTTP
AI-Powered Content Generator ๐ Overview This is an AI-powered tool that helps users generate blog post ideas and outlines based on a given topic. Users can easily copy or share their generated content. Features โ
User Input โ Enter a topic to get relevant blog ideas. โ
AI-Powered Suggestions โ Generates three blog post ideas or a detailed outline. โ
Copy & Share โ One-click copy button and a shareable link for easy sharing. How to Use 1๏ธโฃ Enter a topic in the input field (e.g., "Remote Work Productivity"). 2๏ธโฃ Generate blog ideas with AI. 3๏ธโฃ Copy the results or share the link with others. Tech Stack Townie AI โ AI-based automation OpenAI API โ For generating blog content Built-in Databases โ To store and retrieve topics (if needed) How to Deploy & Share Run the app on Townie AI Copy the generated link (Townie AI auto-deploys apps). Share it on social media or with your audience. Future Improvements ๐น Add categories (e.g., tech, marketing, health) for more tailored ideas. ๐น Allow users to refine the output (e.g., short, medium, or detailed outlines). ๐น Enable history storage so users can revisit past topics. ๐ก Contributions & Feedback Have suggestions? Feel free to reach out or improve this project! ๐
1