1/** @jsxImportSource https://esm.sh/hono@3.9.2/jsx **/
2
3import { Homepage } from "https://esm.town/v/nbbaier/dbToAPI_backup/frontend.tsx";
4import {
5 checkResource,
7 type Options,
8 validate,
9} from "https://esm.town/v/nbbaier/dbToAPI_backup/helpers.tsx";
10import { Hono } from "npm:hono";
11
1// https://www.val.town/v/nbbaier/dbToAPIFrontend
2
3/** @jsxImportSource https://esm.sh/hono@3.9.2/jsx **/
25
26 <div class="space-y-2">
27 <p>You've set up an API for your Val Town lowdb instance</p>
28 <p>
29 ✧*。٩(ˊᗜˋ*)و✧*。
38function MiniApps() {
39 const { data: miniapps } = useQuery(["miniapps"], async () => {
40 // return await fetch(`/api/miniapps`).then(r => r.json()).then(r => r);
41 // return await fetchNeynarGet(`frame/catalog?limit=100`).then(r => r.frames);
42 return await fetchNeynarGetPages(`frame/catalog?limit=100`, 4, "frames").then(r => r.frames);
98 onChange={e => setSearch(e.target.value)}
99 placeholder="Search..."
100 autoCapitalize="on"
101 autoCorrect="on"
102 type="text"
1import { PplxRequest, PplxResponse } from "https://esm.town/v/nbbaier/perplexityAPI/pplxTypes.ts";
2import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON";
3
4export const pplx = async (options: PplxRequest & { apiKey?: string }): Promise<PplxResponse> => {
5 const token = options.apiKey ? options.apiKey : Deno.env.get("PERPLEXITY_API_KEY");
6 return await fetchJSON("https://api.perplexity.ai/chat/completions", {
7 method: "POST",
8 headers: {
94 <head>
95 <meta charset="UTF-8">
96 <link href="https://fonts.googleapis.com/css2?family=Fredoka+One&display=swap" rel="stylesheet">
97 <meta name="viewport" content="width=device-width, initial-scale=1.0">
98 <title>Hello World Val</title>
10 <meta name="viewport" content="width=device-width, initial-scale=1.0">
11 <title>Hello, World!</title>
12 <link href="https://fonts.googleapis.com/css2?family=Fredoka+One&display=swap" rel="stylesheet">
13 <style>
14 body {
29 <head>
30 <title>Hello, Juicy!</title>
31 <link href="https://fonts.googleapis.com/css2?family=Fredoka+One&display=swap" rel="stylesheet">
32 <style>
33 body {
124 <head>
125 <title>Hello World</title>
126 <link href="https://fonts.googleapis.com/css2?family=Fredoka+One&display=swap" rel="stylesheet" />
127 <style>{css}</style>
128 </head>
94 }
95 </style>
96 <link href="https://fonts.googleapis.com/css2?family=Bangers&display=swap" rel="stylesheet">
97 </head>
98 <body>
33 <meta name="viewport" content="width=device-width, initial-scale=1.0">
34 <title>Bubbly Hello World Val</title>
35 <link href="https://fonts.googleapis.com/css2?family=Fredoka+One&display=swap" rel="stylesheet">
36 <style>${css}</style>
37 </head>