Search

Results include substring matches and semantically similar vals. Learn more
dhvanil avatar
web_0NANERhZE0
@dhvanil
An interactive, runnable TypeScript val by dhvanil
HTTP
export async function web_0NANERhZE0(req) {
return new Response(`<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Retro Space Interface</title>
<style>
body {
margin: 0;
postpostscript avatar
readmeManager
@postpostscript
@postpostscript/readmeManager: Edit Val Readmes With Persistent Drafts edit this readme Todo: [ ] Upload images [ ] Autosave/save without reloading page [ ] Ctrl+S [ ] Multiple draft versions [ ] Switch to dark codemirror theme which has markdown styling [ ] Allow for checking checkboxes in preview [ ] View with just the preview [ ] Ability to favorite vals on the Home page
HTTP
# @postpostscript/readmeManager: Edit Val Readmes With Persistent Drafts
[edit this readme](https://postpostscript-readmemanager.web.val.run/postpostscript/readmeManager)
![image.png](https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/bd8f6038-e02f-451a-a9d1-38703835a900/public)
![image.png](https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/b31ab6d8-ebd6-4072-dea1-eeb8c42cf400/public)
Todo:
- [ ] Upload images
/** @jsxImportSource https://esm.sh/hono/jsx */
const app = new Hono<HonoEnv>();
app.use(
authMiddlewareCookie({
dhvanil avatar
val_K1OL6VfLJs
@dhvanil
An interactive, runnable TypeScript val by dhvanil
HTTP
export async function val_K1OL6VfLJs(req) {
try {
// Execute the code directly and capture its result
const result = await (async () => {
const visualizeData = (data) => { const canvas = document.createElement('canvas'); const ctx = canvas.getContext(
// Return the result in a properly formatted response
return new Response(JSON.stringify({
result: result,
type: typeof result
headers: { 'Content-Type': 'application/json' }
nbbaier avatar
codemirror_demo
@nbbaier
An interactive, runnable TypeScript val by nbbaier
HTTP
const body = `<html>
<head>
<script
type="module"
src="https://raw.esm.sh/code-mirror-web-component@0.0.20/dist/code-mirror.js"
></script>
<style>
.cm-editor {
height: 300px;
border: 1px solid #ddd;
iamseeley avatar
Server2
@iamseeley
🚧 hono + htmx web app 🚧 idea: linktree-esque profile page w/ widgets powered by vals setup: fork the val and uncomment the /signup and /login routes create a jwt secret token environment variable go to the db setup val and run it to create the tables (as the site is right now, you can only add/edit users and add/edit/delete user links) to do: [ ] create some val town apis for the profile widgets (add vals people have already made) [ ] add profile image (will probably point to val town profile pic) [ ] add delete profile handler [ ] finish public profile page [ ] 🎨🎨🎨🎨🎨
HTTP
# 🚧 hono + htmx web app 🚧
### idea: linktree-esque profile page w/ widgets powered by vals
### setup:
- *fork the val and uncomment the /signup and /login routes*
- *create a jwt secret token environment variable*
- *go to the db setup val and run it to create the tables* (as the site is right now, you can only add/edit users and add/edi
/** @jsxImportSource https://esm.sh/hono@latest/jsx **/
const app = new Hono();
app.use(logger());
const SECRET_KEY = Deno.env.get("JWT_SECRET_TOKEN");
dhvanil avatar
val_XVD3rKaITU
@dhvanil
An interactive, runnable TypeScript val by dhvanil
HTTP
export async function val_XVD3rKaITU(req) {
try {
// Execute the code directly and capture its result
const result = await (async () => {
const visualizeData = (data) => { const canvas = document.createElement('canvas'); const ctx = canvas.getContext(
// Return the result in a properly formatted response
return new Response(JSON.stringify({
result: result,
type: typeof result
headers: { 'Content-Type': 'application/json' }
janpaul123 avatar
valle_tmp_3735050494903109427870190455998034
@janpaul123
// This val will serve an HTML page emulating a Hacker News clone.
HTTP
// This val will serve an HTML page emulating a Hacker News clone.
// It uses plain HTML and CSS to create the frontend. Eventually,
// we can make it interactive with additional scripts.
export default async function(req: Request): Promise<Response> {
const htmlContent = `
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
tfayyaz avatar
honoJsPyodide
@tfayyaz
@jsxImportSource npm:hono/jsx
HTTP
/** @jsxImportSource npm:hono/jsx **/
const app = new Hono();
const title = "Click Button Demo";
const View = () => {
return (
<html>
<head>
<script src="https://cdn.jsdelivr.net/pyodide/v0.26.1/full/pyodide.js"></script>
</head>
<body>
dhvanil avatar
web_qUw9pGGCvn
@dhvanil
An interactive, runnable TypeScript val by dhvanil
HTTP
export async function web_qUw9pGGCvn(req) {
return new Response(`<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ULTIMATE POP-TASTIC WEBSITE!</title>
<style>
body {
background: linear-gradient(45deg, #ff00ff, #00ffff, #ffff00);
tempdev avatar
rabbitstreamUtils
@tempdev
An interactive, runnable TypeScript val by tempdev
Script
const cryptoJs = CryptoJS;
function _kv(a) {
return [(a & 4278190080) >> 24, (a & 16711680) >> 16, (a & 65280) >> 8, a & 255];
const _xor = (a, X) => {
try {
for (let r0 = 0; r0 < a.length; r0++) {
a[r0] = a[r0] ^ X[r0 % X.length];
} catch (r1) {
return null;
export async function decryptURL(a, X) {
stevekrouse avatar
browserbase
@stevekrouse
@jsxImportSource npm:hono@3/jsx
HTTP
/** @jsxImportSource npm:hono@3/jsx */
const app = new Hono();
const browserbase = new Browserbase();
function duration(session) {
const startedAt = new Date(session.startedAt).getTime();
if (session.status === "RUNNING") {
return (Date.now() - startedAt) / 1000;
const endedAt = new Date(session.endedAt).getTime();
return (endedAt - startedAt) / 1000;
// Route to list all sessions
janpaul123 avatar
valle_tmp_63310026100017965110952142769065
@janpaul123
// This val will serve an HTML page emulating a Hacker News clone.
HTTP
// This val will serve an HTML page emulating a Hacker News clone.
// It uses plain HTML and CSS to create the frontend. Eventually,
// we can make it interactive with additional scripts.
export default async function(req: Request): Promise<Response> {
const htmlContent = `
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
pomdtr avatar
smallwebDashboard
@pomdtr
smallweb.json { "permissions": { "env": true, "read": true, "run": [ "smallweb" ] } } .env EMAIL=<your-email>
Script
## smallweb.json
```json
"permissions": {
"env": true,
"read": true,
"run": [
/** @jsxImportSource jsr:@hono/hono@4.4.8/jsx */
const auth = lastlogin({
verifyEmail: (email) => email === Deno.env.get("EMAIL"),
const app = new Hono();
yieldray avatar
notebook
@yieldray
https://yieldray-notebook.web.val.run/
HTTP
<https://yieldray-notebook.web.val.run/>
const html = htm.bind(vhtml);
const markdown = (md) =>
micromark(md, {
extensions: [gfm()],
htmlExtensions: [gfmHtml()],
// components
const layout_html = ({ head, body }) =>
`<!DOCTYPE html>`
+ html`<html lang="en">
dhvanil avatar
web_O5apQ7aQOz
@dhvanil
An interactive, runnable TypeScript val by dhvanil
HTTP
export async function web_O5apQ7aQOz(req) {
return new Response(`<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Simulation Reality Explorer</title>
<style>
body {
margin: 0;