1/** @jsxImportSource https://esm.sh/react@19 */
2import fcsdk from "https://esm.sh/@farcaster/frame-sdk";
3import { useEffect, useState } from "https://esm.sh/react@19";
4import { formatAddress, formatJSON, MonoButtonWithStatus, Section } from "./ui.tsx";
5
1/** @jsxImportSource https://esm.sh/react@19 */
2import { useState } from "https://esm.sh/react@19";
3
4export function Example() {
6 <div class="m-5 mb-8">
7 <h1 class="text-4xl font-semibold mb-2">Mini App Starter</h1>
8 <div class="opacity-50">Hono + React + Tailwind + Farcaster Mini App Starter Project on Val Town</div>
9 </div>
10 );
1/** @jsxImportSource npm:preact */
2import { render } from "npm:preact-render-to-string";
3
4export function it(name, fn) {
1/** @jsxImportSource https://esm.sh/preact **/
2
3import { modifyFetchHandler } from "https://esm.town/v/andreterron/codeOnValTown?v=50";
6import { gfm } from "https://esm.town/v/pomdtr/gfm";
7import { compile } from "npm:@mdx-js/mdx";
8import { render } from "npm:preact-render-to-string";
9import remarkFrontmatter from "npm:remark-frontmatter";
10import remarkMdxFrontmatter from "npm:remark-mdx-frontmatter";
30 const { readme } = await api(`/v1/alias/${author}/${name}`);
31 const vfile = await compile(readme, {
32 jsxImportSource: "https://esm.sh/preact",
33 remarkPlugins: [remarkFrontmatter, remarkMdxFrontmatter],
34 });
3 "specifiers": {
4 "npm:@libsql/client@*": "0.15.2",
5 "npm:@types/react@*": "19.1.0",
6 "npm:@valtown/sdk@*": "0.38.2",
7 "npm:react-dom@*": "19.1.0_react@19.1.0",
8 "npm:react@*": "19.1.0",
9 "npm:zod@*": "3.24.2"
10 },
88 ]
89 },
90 "@types/react@19.1.0": {
91 "integrity": "sha512-UaicktuQI+9UKyA4njtDOGBD/67t8YEBt2xdfqu8+gP9hqPUPsiXlNPcpS2gVdjmis5GKPG3fCxbQLVgxsQZ8w==",
92 "dependencies": [
317 "integrity": "sha512-7nJ6v5lnJsXwGprnGXga4wx6d1POjvi5Qmf1ivTRxTjH4Z/9Czja/UCMLVmB9N93GeWOU93XaFaEt6jbuoagNw=="
318 },
319 "react-dom@19.1.0_react@19.1.0": {
320 "integrity": "sha512-Xs1hdnE+DyKgeHJeJznQmYMIBG3TKIHJJT95Q58nHLSrElKlGQqDTR2HQ9fx5CN/Gk6Vh/kupBTDLU11/nDk/g==",
321 "dependencies": [
322 "react",
323 "scheduler"
324 ]
325 },
326 "react@19.1.0": {
327 "integrity": "sha512-FS+XFBNvn3GTAWq26joslQgWNoFu08F4kl0J4CgdNKADkdSGXQyTCnKteIAJy96Br6YbpEU1LSzV5dYtjMkMDg=="
328 },
1/** @jsxImportSource npm:react */
2/** @jsxImportSourceTypes npm:@types/react */
3import { JSX } from "npm:react";
4import {
5 EnhancedSearchResult,
1216 <a href="?q=discord" className="example-link">discord</a>
1217 <a href="?q=openai" className="example-link">openai</a>
1218 <a href="?q=react" className="example-link">react</a>
1219 </div>
1220 </div>
1361 <a href="?q=discord" className="example-link">discord</a>
1362 <a href="?q=openai" className="example-link">openai</a>
1363 <a href="?q=react" className="example-link">react</a>
1364 </div>
1365 </div>
1/** @jsxImportSource npm:react */
2/** @jsxImportSourceTypes npm:@types/react */
3import { renderToString } from "npm:react-dom/server";
4import {
5 SearchResponse as _SearchResponse
1/** @jsxImportSource npm:react */
2/** @jsxImportSourceTypes npm:@types/react */
3// I'm just testing PRs
4import { renderToString } from "npm:react-dom/server";
5import { SearchPage } from "./components.tsx";
6import { getSearchStats, searchFileContentWithContext, searchTypeahead } from "./db.ts";
3 "specifiers": {
4 "npm:@libsql/client@*": "0.15.2",
5 "npm:@types/react@*": "19.1.0",
6 "npm:@valtown/sdk@*": "0.38.2",
7 "npm:react-dom@*": "19.1.0_react@19.1.0",
8 "npm:react@*": "19.1.0",
9 "npm:zod@*": "3.24.2"
10 },
88 ]
89 },
90 "@types/react@19.1.0": {
91 "integrity": "sha512-UaicktuQI+9UKyA4njtDOGBD/67t8YEBt2xdfqu8+gP9hqPUPsiXlNPcpS2gVdjmis5GKPG3fCxbQLVgxsQZ8w==",
92 "dependencies": [
317 "integrity": "sha512-7nJ6v5lnJsXwGprnGXga4wx6d1POjvi5Qmf1ivTRxTjH4Z/9Czja/UCMLVmB9N93GeWOU93XaFaEt6jbuoagNw=="
318 },
319 "react-dom@19.1.0_react@19.1.0": {
320 "integrity": "sha512-Xs1hdnE+DyKgeHJeJznQmYMIBG3TKIHJJT95Q58nHLSrElKlGQqDTR2HQ9fx5CN/Gk6Vh/kupBTDLU11/nDk/g==",
321 "dependencies": [
322 "react",
323 "scheduler"
324 ]
325 },
326 "react@19.1.0": {
327 "integrity": "sha512-FS+XFBNvn3GTAWq26joslQgWNoFu08F4kl0J4CgdNKADkdSGXQyTCnKteIAJy96Br6YbpEU1LSzV5dYtjMkMDg=="
328 },
1/** @jsxImportSource npm:react */
2/** @jsxImportSourceTypes npm:@types/react */
3import { JSX } from "npm:react";
4import {
5 EnhancedSearchResult,
1216 <a href="?q=discord" className="example-link">discord</a>
1217 <a href="?q=openai" className="example-link">openai</a>
1218 <a href="?q=react" className="example-link">react</a>
1219 </div>
1220 </div>
1361 <a href="?q=discord" className="example-link">discord</a>
1362 <a href="?q=openai" className="example-link">openai</a>
1363 <a href="?q=react" className="example-link">react</a>
1364 </div>
1365 </div>