Val Town Code SearchReturn to Val Town

API Access

You can access search results via JSON API by adding format=json to your query:

https://codesearch.val.run/image-url.jpg?q=api&page=99&format=json

For typeahead suggestions, use the /typeahead endpoint:

https://codesearch.val.run/typeahead?q=api

Returns an array of strings in format "username" or "username/projectName"

Found 18993 results for "api"(3159ms)

xxxclearinghouse_orchestratorindex.ts13 matches

@toowiredโ€ขUpdated 1 week ago
14}
15
16interface ScrapingResult {
17 website: string;
18 status: 'success' | 'error';
28 query: string;
29 timestamp: string;
30 results: ScrapingResult[];
31 consolidatedProducts: any[];
32 summary: {
136 console.log(`Orchestrating scrape for "${query}" across ${websites.length} sites`);
137
138 // Parallel scraping with proper error handling
139 const scrapingPromises = websites.map(async (website: string): Promise<ScrapingResult> => {
140 try {
141 const startTime = Date.now();
142
143 // Call the URL scrape template
144 const scrapingResult = await scrapeWebsite(query, website);
145 const endTime = Date.now();
146
148 website,
149 status: 'success',
150 data: scrapingResult,
151 metadata: {
152 scrapedAt: new Date().toISOString(),
155 };
156 } catch (error) {
157 console.error(`Error scraping ${website}:`, error);
158 return {
159 website,
168 });
169
170 const scrapingResults = await Promise.all(scrapingPromises);
171
172 // Consolidate all successful results
173 const allProducts: any[] = [];
174 scrapingResults.forEach(result => {
175 if (result.status === 'success' && result.data?.products) {
176 allProducts.push(...result.data.products);
182
183 // Calculate summary statistics
184 const summary = calculateSummary(scrapingResults, consolidatedProducts);
185
186 // Prepare final response
188 query,
189 timestamp: new Date().toISOString(),
190 results: scrapingResults,
191 consolidatedProducts,
192 summary
267}
268
269// Simplified scraping function that calls our URL scrape template
270async function scrapeWebsite(query: string, website: string): Promise<any> {
271 // This would normally import and call the actual URL scrape template
365
366// Calculate summary statistics
367function calculateSummary(results: ScrapingResult[], products: any[]): any {
368 const successfulSites = results.filter(r => r.status === 'success').length;
369 const totalProducts = products.length;

registry-valszons1 match

@dinavinterโ€ขUpdated 1 week ago
31
32app.get("/", async (c: any) => {
33 // Fetch vals from ValTown API
34 const valtown = new ValTown();
35 const vals = await valtown.me.vals.list({ limit: 100, offset: 0 });

registry-valszon1 match

@dinavinterโ€ขUpdated 1 week ago
99
100app.get("/:zon", async (c) => {
101 // Fetch vals from ValTown API
102 const zon = c.req.param("zon");
103 const { files } = await getZon(zon);
Plantfo

Plantfoapp.js5 matches

@Lladโ€ขUpdated 1 week ago
1// Plant Information API Tester
2class PlantAPITester {
3 constructor() {
4 this.apiBaseUrl = window.location.origin;
5 this.initializeEventListeners();
6 }
42
43 try {
44 const response = await fetch(`${this.apiBaseUrl}/plant/${encodeURIComponent(plantName)}`);
45 const data = await response.json();
46
148// Initialize the app when DOM is loaded
149document.addEventListener('DOMContentLoaded', () => {
150 new PlantAPITester();
151});

puppeteer_testmain.tsx4 matches

@AIWBโ€ขUpdated 1 week ago
6});
7
8const STEEL_API_KEY = process.env.STEEP_API_KEY;
9// Initialize Steel client with the API key from environment variables
10const client = new Steel({
11 steelAPIKey: STEEL_API_KEY,
12});
13
36 // Connect Puppeteer to the Steel session
37 browser = await puppeteer.connect({
38 browserWSEndpoint: `wss://connect.steel.dev?apiKey=${STEEL_API_KEY}&sessionId=${session.id}`,
39 });
40
Plantfo

Plantfoindex.html2 matches

@Lladโ€ขUpdated 1 week ago
4 <meta charset="UTF-8">
5 <meta name="viewport" content="width=device-width, initial-scale=1.0">
6 <title>Plant Information API Tester</title>
7 <script src="https://cdn.twind.style" crossorigin></script>
8 <style>
32 <!-- Header -->
33 <div class="text-center mb-8">
34 <h1 class="text-4xl font-bold text-green-700 mb-2">๐ŸŒฑ Plant Information API Tester</h1>
35 <p class="text-gray-600">Enter a plant name to get detailed information powered by AI</p>
36 </div>

puppeteer_testREADME.md3 matches

@AIWBโ€ขUpdated 1 week ago
21To run it:
22
231. Get your free Steel API key at https://app.steel.dev/settings/api-keys
242. Add it to your [Val Town Environment Variables](https://www.val.town/settings/environment-variables) as `STEEL_API_KEY`
253. Click `Fork` on this val
264. Click `Run` on this val
72
73- [Steel Documentation](https://docs.steel.dev)
74- [API Reference](https://docs.steel.dev/api-reference)
75- [Discord Community](https://discord.gg/gPpvhNvc5R)

SON-GOKUREADME.md12 matches

@Itssongokuโ€ขUpdated 1 week ago
75### ๐Ÿ“Š Other Export Formats
76- **CSV**: Structured data with headers for spreadsheet applications
77- **JSON**: Machine-readable format for API integration
78- **Text**: Human-readable format with detailed card information
79
133โ”‚ โ””โ”€โ”€ utils.ts # Luhn algorithm, validation, bulk parsing
134โ””โ”€โ”€ backend/
135 โ””โ”€โ”€ index.ts # Static file server with API endpoints
136```
137
203 - **LIST**: Clean format `CCNUMBER|MM|YY|CVV` (perfect for direct use)
204 - **CSV**: Structured data with headers for spreadsheets
205 - **JSON**: Machine-readable format for API integration
206 - **TEXT**: Human-readable format with detailed information
2072. Use "Copy All" to copy to clipboard or "Export" to download as file
228- **Placeholders**: `xxx`, `xx`, `xxxx` for random
229
230## API Endpoints
231
232- `POST /api/generate` - Generate card (simple/custom/bulk)
233- `POST /api/validate` - Validate card number using Luhn
234- `POST /api/validate-bin` - Validate BIN format
235- `POST /api/validate-bulk` - Validate bulk format string
236- `GET /api/health` - Health check endpoint
237- `GET /api/marketplace/products` - Get all marketplace products
238- `GET /api/marketplace/products/:id` - Get specific product details
239- `POST /api/marketplace/contact` - Contact seller about a product
240
241## Note

SON-GOKUindex.ts16 matches

@Itssongokuโ€ขUpdated 1 week ago
33});
34
35// API endpoint to validate card numbers (for educational purposes)
36app.post("/api/validate", async c => {
37 try {
38 const { cardNumber } = await c.req.json();
55});
56
57// API endpoint to generate card data
58app.post("/api/generate", async c => {
59 try {
60 const { type, customBin, bulkFormat, quantity } = await c.req.json();
158});
159
160// API endpoint to validate bulk format
161app.post("/api/validate-bulk", async c => {
162 try {
163 const { bulkFormat } = await c.req.json();
182});
183
184// API endpoint to validate BIN
185app.post("/api/validate-bin", async c => {
186 try {
187 const { bin, cardType } = await c.req.json();
208
209// BIN lookup endpoint
210app.post("/api/bin-lookup", async c => {
211 try {
212 const { bin } = await c.req.json();
222 }
223
224 // Use BinList.net free API (no API key required)
225 const response = await fetch(`https://lookup.binlist.net/${cleanBin}`);
226
265
266// Health check endpoint
267app.get("/api/health", c => {
268 return c.json({
269 status: "healthy",
273});
274
275// Marketplace API endpoints
276app.get("/api/marketplace/products", async c => {
277 try {
278 // In a real application, this would fetch from a database
311 "Custom Dashboard Builder",
312 "Advanced Reporting",
313 "API Integration"
314 ],
315 inStock: true,
351});
352
353app.get("/api/marketplace/products/:id", async c => {
354 try {
355 const id = c.req.param("id");
404});
405
406app.post("/api/marketplace/contact", async c => {
407 try {
408 const { productId, message, contactInfo } = await c.req.json();

SON-GOKUApp.tsx1 match

@Itssongokuโ€ขUpdated 1 week ago
199 <div>
200 <label className="block text-sm text-blue-200 mb-2">Card Type</label>
201 <div className="input-icy rounded-lg p-3 capitalize">
202 {cardData.type}
203 </div>

readback-api

@tr3ntgโ€ขUpdated 6 hours ago
API for readback.
Plantfo

Plantfo8 file matches

@Lladโ€ขUpdated 12 hours ago
API for AI plant info
apiry
snartapi