Search
breakdown
@yawnxyz
This project is an argument summarizer that leverages AI to analyze and extract key arguments from a given text. Goals: Provide a user-friendly interface for inputting text Process the input using a large language model (LLama3 via Groq) Extract and structure key arguments, explanations, and relevant quotes Present the summarized arguments in a clear, organized format The main pipeline: User inputs text through a web interface The input is sent to an AI model for processing The AI extracts and structures the arguments The results are validated against a predefined schema The structured arguments are displayed to the user This tool aims to help users quickly understand the main points and supporting evidence in complex texts or discussions, making it valuable for research, debate preparation, or general comprehension of argumentative content.
HTTP
@apply bg-app-bg text-primary px-0 py-0 rounded-md transition-colors hover:text-button-hover;
ul li {
@apply list-disc list-outside ml-5;
.input-textarea {
@apply min-h-[60px] max-h-[20svh];
Multiply
@efoley
@jsxImportSource https://esm.sh/react
HTTP
/** @jsxImportSource https://esm.sh/react */
import React, { useState, useEffect } from "https://esm.sh/react";
import { createRoot } from "https://esm.sh/react-dom/client";
function App() {
</div>
function client() {
createRoot(document.getElementById("root")).render(<App />);
if (typeof document !== "undefined") { client(); }
export default async function server(request: Request): Promise<Response> {
blog_mdx
@pomdtr
@jsxImportSource https://esm.sh/preact
HTTP
/** @jsxImportSource https://esm.sh/preact **/
import { blob } from "https://esm.town/v/std/blob?v=12";
import { Hono } from "npm:hono";
import { render } from "npm:preact-render-to-string";
import remarkFrontmatter from "npm:remark-frontmatter";
jsx: true,
jsxImportSource: "https://esm.sh/preact",
remarkPlugins: [remarkFrontmatter, remarkMdxFrontmatter],
const vfile = await compile(await resp.text(), {
jsxImportSource: "https://esm.sh/preact",
remarkPlugins: [remarkFrontmatter, remarkMdxFrontmatter],
us_election_color_scheme
@metart43
@jsxImportSource https://esm.sh/react
HTTP
/** @jsxImportSource https://esm.sh/react */
import { renderToString } from "npm:react-dom/server";
// Original color data with full names
</main>
// Server-side rendering function with DOCTYPE, viewport meta tag, and rendered HTML
export const reactExample = (request: Request) =>
new Response(
linkInBioTemplate
@rasputinkaiser
@jsxImportSource https://esm.sh/react
HTTP
/** @jsxImportSource https://esm.sh/react */
import React, { useState, useEffect, createContext, useContext } from "https://esm.sh/react";
import { createRoot } from "https://esm.sh/react-dom/client";
// ... (previous AuthContext, AuthProvider, and useAuth remain the same)
fontStyle: 'italic',
// ... (client and server functions remain the same)
valle_tmp_1369396001916440808441248753827946
@janpaul123
@jsxImportSource https://esm.sh/react
HTTP
/** @jsxImportSource https://esm.sh/react */
import valleGetValsContextWindow from "https://esm.town/v/janpaul123/valleGetValsContextWindow";
import archiveVal from "https://esm.town/v/nbbaier/archiveVal?v=10";
import _ from "npm:lodash@4";
import OpenAI from "npm:openai";
import { renderToString } from "npm:react-dom/server";
// Set these to your own
const username = "janpaul123";
codemirrorTsBrowser
@maxm
codemirror-ts You can import this a val like this in browser to run codemirror-ts. Bundling done with esm.sh. Working demo: preview / source Run an editor like so: /** @jsxImportSource https://esm.sh/react */
import { renderToString } from "npm:react-dom/server";
export default async function(req: Request): Promise<Response> {
return new Response(
renderToString(
<>
<script type="module" src="https://esm.town/v/maxm/codemirrorTsBrowser" />
<form>
<textarea id="editorSource" className="for-codemirror" name="editorSource">
{`let hasAnError: string = 10;
function increment(num: number) {
return num + 1;
}
increment('not a number');`}
</textarea>
<button id="submit" type="submit">Submit</button>
</form>
</>,
),
{ headers: { "content-type": "text/html" } },
);
}
Script
```tsx
/** @jsxImportSource https://esm.sh/react */
import { renderToString } from "npm:react-dom/server";
export default async function(req: Request): Promise<Response> {
module: ts.ModuleKind.ESNext,
jsx: ts.JsxEmit.React,
lib: ["esnext", "dom"],
spotify
@niek
// Uncomment this line for one run of the Val to create the DB lol
HTTP
export let spotifyRequestToken = ({ client_id, client_secret, code, redirect_uri }) =>
"Authorization": "Basic " + (new Buffer(client_id + ":" + client_secret).toString("base64")),
export let spotifyRefreshToken = async ({ refresh_token, client_id, client_secret }) =>
"Authorization": "Basic " + (new Buffer(client_id + ":" + client_secret).toString("base64")),
`https://accounts.spotify.com/authorize?response_type=code&client_id=${
encodeURIComponent(Deno.env.get("SPOTIFY_CLIENT_ID"))
client_id: Deno.env.get("SPOTIFY_CLIENT_ID"),
client_secret: Deno.env.get("SPOTIFY_CLIENT_SECRET"),
client_id: Deno.env.get("SPOTIFY_CLIENT_ID"),
client_secret: Deno.env.get("SPOTIFY_CLIENT_SECRET"),
valTownChatGPT2
@janpaul123
https://x.com/JanPaul123/status/1811801305066651997 Fork it and authenticate with your Val Town API token as the password.
HTTP
/** @jsxImportSource https://esm.sh/react */
import getValsContextWindow from "https://esm.town/v/janpaul123/getValsContextWindow";
import { updateValByName } from "https://esm.town/v/nbbaier/updateValByName?v=14";
import { Hono } from "npm:hono@3";
import OpenAI from "npm:openai";
import { renderToString } from "npm:react-dom/server";
const vt = new ValTown({ bearerToken: Deno.env.get("valtown") });
const username = "janpaul123";
dateme_routes
@stevekrouse
Important that this code run on the server & client both!
Script
Important that this code run on the server & client both!
/** @jsxImportSource https://esm.sh/react@18.2.0 */
import { Browse, loader } from "https://esm.town/v/stevekrouse/dateme_browse_react";
import FAQ from "https://esm.town/v/stevekrouse/dateme_faq_react";
import Submit, { action } from "https://esm.town/v/stevekrouse/dateme_form_react";
import Home from "https://esm.town/v/stevekrouse/dateme_home_react";
import Root from "https://esm.town/v/stevekrouse/dateme_layout_react";
export const routes = [
homepage
@willthereader
@jsxImportSource https://esm.sh/hono@latest/jsx
HTTP
change my understanding. I really like{" "}
<a className="text-blue-500 hover:underline" href="https://www.readtangle.com">Tangle</a>{" "}
because it offers perspectives from all sides. I dislike when people assume the worst of their opponents and
when I can't tell who's right because no one addresses the best arguments from their opponents.
</p>
pleasantSilverDuck
@raaj1v
@jsxImportSource https://esm.sh/react@18.2.0
HTTP
/** @jsxImportSource https://esm.sh/react@18.2.0 **/
import { renderToString } from "https://esm.sh/react-dom@18.2.0/server";
export default (req: Request) => {
return new Response(
valle_tmp_202239440460780356420276977660784
@janpaul123
@jsxImportSource https://esm.sh/react
HTTP
/** @jsxImportSource https://esm.sh/react */
import valleGetValsContextWindow from "https://esm.town/v/janpaul123/valleGetValsContextWindow";
import archiveVal from "https://esm.town/v/nbbaier/archiveVal?v=10";
import _ from "npm:lodash@4";
import OpenAI from "npm:openai";
import { renderToString } from "npm:react-dom/server";
// Set these to your own
const username = "janpaul123";
faviconGenerator
@iamseeley
// This approach will use the fal.ai API to generate a custom favicon based on a user-provided prompt.
HTTP
// The favicon will be displayed on the page for the user to download.
/** @jsxImportSource https://esm.sh/react */
import React, { useState } from "https://esm.sh/react";
import { createRoot } from "https://esm.sh/react-dom/client";
function App() {
const [loading, setLoading] = useState(false);
const handleSubmit = async (e: React.FormEvent) => {
e.preventDefault();
</div>
function client() {
createRoot(document.getElementById("root")).render(<App />);
if (typeof document !== "undefined") {
client();
async function generateImage(prompt: string) {
examplePreactWebApp
@easrng
@easrng.preactWebApp example
Express (deprecated)
# @easrng.preactWebApp example
[![Open](https://easrng-button.express.val.run/Open)](https://easrng-examplepreactwebapp.express.val.run/)
import { preactWebApp } from "https://esm.town/v/easrng/preactWebApp";
export const examplePreactWebApp = preactWebApp(
function App(
{ html, req, ...rest }: typeof preactWebApp.props,
const KeyList = ({ obj, maxDepth = 3 }) =>
return html`
<title>@easrng.preactWebApp example</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<style>html{font-family:sans-serif;color-scheme:dark light;padding:1rem}h1{font-size:2.5rem;font-weight:300;margin:1rem 0}</style>
<h1><a href="https://www.val.town/v/easrng.preactWebApp">@easrng.preactWebApp</a> example</h1>
<p>available props:</p>