{"id":24328504,"url":"https://github.com/vhscom/metaform","last_synced_at":"2025-09-27T14:30:40.709Z","repository":{"id":201746088,"uuid":"495275933","full_name":"vhscom/metaform","owner":"vhscom","description":":wood: Experimental web front-end for @logseq deployed to the @cloudflare Pages Functions. Mirror of metaform on Codeberg. :point_down:","archived":false,"fork":false,"pushed_at":"2024-01-28T19:27:45.000Z","size":138,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"trunk","last_synced_at":"2024-01-28T20:36:39.528Z","etag":null,"topics":["bun","cloudflare-workers","postgresql","supabase","sveltekit","typescript","vite"],"latest_commit_sha":null,"homepage":"https://codeberg.org/vhs/metaform/","language":"TypeScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vhscom.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2022-05-23T05:54:16.000Z","updated_at":"2024-01-28T20:00:04.000Z","dependencies_parsed_at":"2024-01-28T20:34:22.187Z","dependency_job_id":null,"html_url":"https://github.com/vhscom/metaform","commit_stats":null,"previous_names":["vhscom/metaform"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vhscom%2Fmetaform","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vhscom%2Fmetaform/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vhscom%2Fmetaform/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vhscom%2Fmetaform/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vhscom","download_url":"https://codeload.github.com/vhscom/metaform/tar.gz/refs/heads/trunk","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234443159,"owners_count":18833475,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bun","cloudflare-workers","postgresql","supabase","sveltekit","typescript","vite"],"created_at":"2025-01-17T23:29:31.034Z","updated_at":"2025-09-27T14:30:40.392Z","avatar_url":"https://github.com/vhscom.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Metaform\n\nExperimental web front-end for Logseq.\n\n## Features\n\n- Display Logseq data on the open web.\n- Edge-side page and block embeds.\n- Web form to upload Logseq JSON exports.\n- REST endpoints for page and block data.\n- Works with JavaScript disabled.\n\n## Demo\n\n[View pre-recorded live demo](https://twitter.com/vhsdev/status/1530160309112954881) on Twitter.\n\n## How it works\n\n1. Upload [triggers data extraction](https://vhs.codeberg.page/post/creating-json-extract-supabase/) to Postgres database hosted on Supabase.\n1. Page assembled on-the-fly inside Cloudflare edge function using Web Workers.\n1. Functions perform server-side transclusion using recursive async reducer functions.\n1. API endpoints called whenever a reducer needs more data.\n1. Svelte components used to assemble display.\n1. Display logic searches content for embed tags and injects available data.\n\n## Performance\n\nLighthouse tests on Cloudflare have shown depth 6 page embeds with 300ms first paint.\n\n## Requirements\n\n- [Supabase](https://supabase.com/) instance with fresh project.\n- [Cloudflare Pages](https://pages.cloudflare.com/) account.\n- GitHub for simple Pages deployment\n\n## Online use\n\n1. Copy source to your own GitHub repo\n1. Create accounts on Supabase and Cloudflare Pages\n1. Run `setup.sql` in Supabase SQL editor\n1. Add [Supabase environment variables](https://github.com/vhscom/metaform/blob/trunk/src/lib/core/services/supabase.ts#L16-L17)\n1. Push commit to GitHub to deploy to Cloudflare\n1. Navigate to Pages site\n1. Upload Logseq JSON export from upload page\n\n## Development\n\nYou must have [Bun] and a recent Node.js LTS. Using [fnm] a Node.js LTS will be installed automatically.\n\n1. Copy source code into a working directory\n1. Create `.env.local` by copying `.env.example` (See [Online use](#online-use) for settings.)\n1. Run command `bun install` to install dependencies\n1. Run `setup.sql` in the Supabase SQL editor\n1. Start dev server with `bunx vite dev` use `h` for help\n\n### Justfile\n\n[Just] is like `make` only a little more forgiving. [Installation instructions](https://github.com/casey/just#installation).\n\n- `just` list recipes\n- `just supabase` run supabase cli commands with bunx\n- `just dev` start a vite dev server with bun\n- `just test` run api tests with curl\n- `just build` build for production with vite\n- `just preview` preview build with vite\n- `just clean` spic and span edition\n- List recipes to view more\n\n[bun]: https://bun.sh/\n[just]: https://github.com/casey/just\n[fnm]: https://github.com/Schniz/fnm\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvhscom%2Fmetaform","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvhscom%2Fmetaform","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvhscom%2Fmetaform/lists"}