From 8a59f92d031963e23ecc84b75feecf43eb4dd146 Mon Sep 17 00:00:00 2001 From: "netop://ウィビ" Date: Fri, 24 Apr 2026 11:33:25 -0700 Subject: Initial commit: @eol/graphiql v0.3 Svelte 5 GraphiQL alternative for JSR. Covers: - HTTP fetcher with injectable fetch; SSE/WS stubs - Session store with tabs, auto-titling, persistence, rename - Operation detection via graphql parse(); Toolbar picker - CodeMirror 6 editor via cm6-graphql with theme prop - Light theme preset (hand-rolled EditorView.theme) - Doc explorer with breadcrumb nav and type guards - History panel with 100-entry cap, favorite pinning - Deno tests for operations, storage, and history eviction --- PLAN.md | 138 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 138 insertions(+) create mode 100644 PLAN.md (limited to 'PLAN.md') diff --git a/PLAN.md b/PLAN.md new file mode 100644 index 0000000..25f806e --- /dev/null +++ b/PLAN.md @@ -0,0 +1,138 @@ +# PLAN.md — @eol/graphiql + +A Svelte 5 GraphiQL alternative. JSR-published under the EOL scope. + +## Current state (v0.2 complete) + +Shipped: + +- HTTP fetcher with injectable `fetch` impl +- Schema introspection and SDL caching +- Session store with tabs, persistence, and rename +- TabBar with double-click inline rename (Enter commits, Escape cancels, blur commits) +- Toolbar with Cmd/Ctrl+Enter run shortcut +- Variables + Headers panes (switchable in bottom-left) +- Debounced localStorage persistence (300ms) with `beforeunload` flush +- Memory storage fallback for SSR +- CodeMirror 6 editor wrapper via `cm6-graphql` with dynamic import (SSR-safe) +- `readOnly` prop on Editor, used by ResultViewer +- Reactive schema updates via `$effect` calling `updateSchema()` +- Public API surface in `src/lib/index.ts` + +Stub files needing implementation: `src/lib/fetcher/sse.ts`, `src/lib/fetcher/websocket.ts`. + +## Coding conventions + +Non-negotiable. Match existing files exactly: + +- Double quotes, semicolons, two-space indent +- No trailing spaces, no unnecessary whitespace +- Svelte component structure: `