Avatar

nbbaier

Valin' up a storm
Joined January 12, 2023
Public vals
48
projectTree
nbbaier
projectTree
Project File Tree Generator (endpoint) This simple hono app wraps nbbaier/createFileTree in an endpoint. There's a single route, https://nbbaier-projecttree.web.val.run/:id where, id is any public project's UUID. To get a project's UUID, navigating to any of it's files and use the copy id option in the context menu:
HTTP
profoundScarletCoyote
nbbaier
profoundScarletCoyote
An interactive, runnable TypeScript val by nbbaier
Script
createFileTree
nbbaier
createFileTree
Project File Tree Generator A utility for generating a visual file tree representation for Val Town Projects. Usage import createFileTree from "https://esm.town/v/nbbaier/createFileTree"; const treeOutput = await createFileTree("https://esm.town/v/std/reactHonoStarter@34-main"); console.log(treeOutput); Example Output The following is the output for @stevekrouse's reactHonoStarter project . ├── backend │ └── index.ts ├── frontend │ ├── components │ │ └── App.tsx │ ├── index.html │ └── index.tsx └── README.md
Script
sqliteRowsToObject
nbbaier
sqliteRowsToObject
// import type { ResultSet } from "https://esm.town/v/std/sqlite?v=6";
Script
hono_openapi
nbbaier
hono_openapi
An interactive, runnable TypeScript val by nbbaier
HTTP
logicalTealPelican
nbbaier
logicalTealPelican
An interactive, runnable TypeScript val by nbbaier
HTTP
fiberplane
nbbaier
fiberplane
An interactive, runnable TypeScript val by nbbaier
HTTP
getEmptyTables
nbbaier
getEmptyTables
An interactive, runnable TypeScript val by nbbaier
Script
getSiteMetadata
nbbaier
getSiteMetadata
An interactive, runnable TypeScript val by nbbaier
HTTP
sentryTunnel
nbbaier
sentryTunnel
An interactive, runnable TypeScript val by nbbaier
Script
simpletext
nbbaier
simpletext
An implementation of simpletext blog by jonfraser . Installation info coming later.
HTTP
trackingParams
nbbaier
trackingParams
// re-export from val in utilities project
Script
cronLogger
nbbaier
cronLogger
Log your cron evaluations to sqlite import { cronEvalLogger as logger } from "https://esm.town/v/nbbaier/cronLogger"; const run = async (interval: Interval) => { console.log("your code goes here"); }; export default logger(run);
Script
mdConvert
nbbaier
mdConvert
mdConvert Inspired by markdown.rest . Converts markdown (plain text or base64 encoded) to HTML (plain text or base64 encoded)
HTTP
declarativeMigrations
nbbaier
declarativeMigrations
The beginnings of a val town implementation of the approach to declarative sqlite migrations laid out in this post: Simple declarative schema migration for SQLite
Script
shadcnButton
nbbaier
shadcnButton
@jsxImportSource https://esm.sh/react
Script