FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
maxm
maxmexcalidrawPass
Remix of all/excalidrawPass
Public
Like
1
excalidrawPass
Home
Code
2
README.md
H
main.tsx
Branches
1
Pull requests
Remixes
History
Environment variables
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in miliseconds.
Sign up now
Code
/
Code
/
Search
Open in new tab
README.md

Excalidraw Document with Authentication

User Signup or just password.

original excalidraw code

import { extractValInfo } from "https://esm.town/v/pomdtr/extractValInfo?v=29";
import { blob } from "https://esm.town/v/std/blob?v=12";
import { createExcalidraw } from "https://jsr.io/@smallweb/excalidraw/0.3.0/mod.ts";
import { join } from "jsr:@std/path@0.225.2";

const { name } = extractValInfo(import.meta.url);
export default createExcalidraw({
  store: {
    get: async (key) => {
      try {
        const res = await blob.get(join(name, key));
        return new Uint8Array(await res.arrayBuffer());
      } catch (e) {
        return null;
      }
    },
    set: (key, value) => {
      return blob.set(join(name, key), value);
    },
  },
});
Code
README.md
H
main.tsx
Go to top
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Product
FeaturesPricing
Developers
DocsStatusAPI ExamplesNPM Package Examples
Explore
ShowcaseTemplatesNewest ValsTrending ValsNewsletter
Company
AboutBlogCareersBrandhi@val.town
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.