Skip to content

Instantly share code, notes, and snippets.

Re-Thinking Smallweb Routing

Smallweb v0.8.0 was released yesterday, and it included the first smallweb breaking change.

The ~/www convention was dropped, the defaut folder is now ~/smallweb

In addition to this change, the folder should now be named after the hostname:

  • example.smallweb.run => ~/smallweb/example.smallweb.run/
package worker
type WebAppManifest struct {
BackgroundColor string `json:"background_color"`
Categories []string `json:"categories"`
Description string `json:"description"`
Display string `json:"display"`
DisplayOverride string `json:"display_override"`
FileHandlers []FileHandler `json:"file_handlers"`
Icons []Icon `json:"icons"`
export interface Email {
from: string,
to: string,
cc: string,
bcc: string,
subject: string | undefined,
text: string | undefined,
html: string | undefined,
}
@pomdtr
pomdtr / test.tsx
Created April 19, 2024 10:30
desc
console.log("test.tsx");
@pomdtr
pomdtr / test.ts
Created April 19, 2024 10:30
test.ts
console.log("Hello, world!");
@pomdtr
pomdtr / notes.ipynb
Last active December 26, 2023 00:04
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pomdtr
pomdtr / benji.md
Created December 15, 2023 21:13
yoooooo!

Hi

  • yo
@pomdtr
pomdtr / gist.md
Created December 14, 2023 12:23
Gist Description

test test

export default function(req: Request) {
return new Response("Hello from Github!")
}
@pomdtr
pomdtr / export.excalidraw
Last active December 16, 2023 16:23
export.excalidraw
{
"type": "excalidraw",
"version": 2,
"source": "https://marketplace.visualstudio.com/items?itemName=pomdtr.excalidraw-editor",
"elements": [
{
"id": "VZyeHtbl43ZLGgTi7z48w",
"type": "rectangle",
"x": 398.999267578125,
"y": 307.12464904785156,