prototypey.org - atproto lexicon typescript toolkit - mirror https://github.com/tylersayshi/prototypey
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

rename prototypekit back to prototypey

Tyler 0e12fa9c 00b8f306

+36 -22
+3 -3
package.json
··· 15 15 "scripts": { 16 16 "build": "pnpm -r build", 17 17 "codegen:samples": "node packages/cli/src/index.ts gen-inferred ./generated/inferred './samples/*.json'", 18 - "dev:site": "pnpm -F @prototypekit/site dev", 19 - "build:site": "pnpm -F @prototypekit/site build", 20 - "preview:site": "pnpm -F @prototypekit/site preview", 18 + "dev:site": "pnpm -F @prototypey/site dev", 19 + "build:site": "pnpm -F @prototypey/site build", 20 + "preview:site": "pnpm -F @prototypey/site preview", 21 21 "format": "prettier . --list-different", 22 22 "format:fix": "prettier . --write", 23 23 "lint": "pnpm -r lint",
+1 -1
packages/site/index.html
··· 3 3 <head> 4 4 <meta charset="UTF-8" /> 5 5 <meta name="viewport" content="width=device-width, initial-scale=1.0" /> 6 - <title>prototypekit - Type-safe lexicon inference for ATProto</title> 6 + <title>prototypey - Type-safe lexicon inference for ATProto</title> 7 7 </head> 8 8 <body> 9 9 <div id="root"></div>
+2 -2
packages/site/package.json
··· 1 1 { 2 - "name": "@prototypekit/site", 2 + "name": "@prototypey/site", 3 3 "version": "0.0.0", 4 4 "private": true, 5 5 "type": "module", ··· 12 12 "dependencies": { 13 13 "@monaco-editor/react": "^4.6.0", 14 14 "monaco-editor": "^0.52.2", 15 - "prototypekit": "workspace:*", 15 + "prototypey": "workspace:*", 16 16 "react": "^18.3.1", 17 17 "react-dom": "^18.3.1" 18 18 },
+2 -2
packages/site/src/components/Editor.tsx
··· 50 50 ${stripImportsExports(libDts)} 51 51 `; 52 52 53 - const moduleDeclaration = `declare module "prototypekit" { 53 + const moduleDeclaration = `declare module "prototypey" { 54 54 ${combinedTypes} 55 55 }`; 56 56 57 57 monaco.languages.typescript.typescriptDefaults.addExtraLib( 58 58 moduleDeclaration, 59 - "prototypekit.d.ts", 59 + "prototypey.d.ts", 60 60 ); 61 61 62 62 setIsReady(true);
+1 -1
packages/site/src/components/Header.tsx
··· 14 14 marginBottom: "0.5rem", 15 15 }} 16 16 > 17 - <span style={{ color: "#6b7280" }}>at://</span>prototypekit 17 + <span style={{ color: "#6b7280" }}>at://</span>prototypey 18 18 </h1> 19 19 <p 20 20 style={{
+2 -2
packages/site/src/components/Playground.tsx
··· 1 1 import { useState, useEffect } from "react"; 2 2 import { Editor } from "./Editor"; 3 3 import { OutputPanel } from "./OutputPanel"; 4 - import { lx } from "prototypekit"; 4 + import { lx } from "prototypey"; 5 5 6 6 export function Playground() { 7 7 const [code, setCode] = useState(DEFAULT_CODE); ··· 79 79 ); 80 80 } 81 81 82 - const DEFAULT_CODE = `import { lx } from "prototypekit"; 82 + const DEFAULT_CODE = `import { lx } from "prototypey"; 83 83 84 84 const profileNamespace = lx.namespace("app.bsky.actor.profile", { 85 85 main: lx.record({
+1 -1
packages/site/tests/components/Header.test.tsx
··· 5 5 describe("Header", () => { 6 6 it("renders the title", () => { 7 7 render(<Header />); 8 - expect(screen.getByText("prototypekit")).toBeInTheDocument(); 8 + expect(screen.getByText("prototypey")).toBeInTheDocument(); 9 9 expect(screen.getByText("at://")).toBeInTheDocument(); 10 10 }); 11 11
+4 -8
packages/site/vite.config.ts
··· 3 3 import { readFileSync } from "fs"; 4 4 import { resolve } from "path"; 5 5 6 - function servePrototypeKitTypes() { 6 + function servePrototypeyTypes() { 7 7 return { 8 - name: "serve-prototypekit-types", 8 + name: "serve-prototypey-types", 9 9 configureServer(server) { 10 10 server.middlewares.use((req, res, next) => { 11 11 if (req.url?.startsWith("/types/") && req.url.endsWith(".d.ts")) { 12 12 const fileName = req.url.slice(7); 13 13 try { 14 - const filePath = resolve( 15 - __dirname, 16 - "../prototypekit/lib", 17 - fileName, 18 - ); 14 + const filePath = resolve(__dirname, "../prototypey/lib", fileName); 19 15 const content = readFileSync(filePath, "utf-8"); 20 16 res.setHeader("Content-Type", "application/typescript"); 21 17 res.end(content); ··· 33 29 } 34 30 35 31 export default defineConfig({ 36 - plugins: [react(), servePrototypeKitTypes()], 32 + plugins: [react(), servePrototypeyTypes()], 37 33 });
+20 -2
pnpm-lock.yaml
··· 49 49 specifier: ^3.2.4 50 50 version: 3.2.4(@types/node@24.0.4)(esbuild@0.25.10)(jiti@2.6.1)(jsdom@25.0.1) 51 51 52 + packages/prototypekit: 53 + devDependencies: 54 + '@ark/attest': 55 + specifier: ^0.49.0 56 + version: 0.49.0(typescript@5.8.3) 57 + '@types/node': 58 + specifier: 24.0.4 59 + version: 24.0.4 60 + tsdown: 61 + specifier: 0.12.7 62 + version: 0.12.7(typescript@5.8.3) 63 + typescript: 64 + specifier: 5.8.3 65 + version: 5.8.3 66 + vitest: 67 + specifier: ^3.2.4 68 + version: 3.2.4(@types/node@24.0.4)(esbuild@0.25.10)(jiti@2.6.1)(jsdom@25.0.1) 69 + 52 70 packages/prototypey: 53 71 devDependencies: 54 72 '@ark/attest': ··· 75 93 monaco-editor: 76 94 specifier: ^0.52.2 77 95 version: 0.52.2 78 - prototypekit: 96 + prototypey: 79 97 specifier: workspace:* 80 - version: link:../prototypekit 98 + version: link:../prototypey 81 99 react: 82 100 specifier: ^18.3.1 83 101 version: 18.3.1