[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"navigation":3,"url-settings":80,"blog-\u002Fblog\u002Fintroducing-open-source-by-pieces":589,"blog-author-\u002Fblog\u002Fintroducing-open-source-by-pieces":1825},{"id":4,"extension":5,"footer":6,"header":66,"meta":77,"stem":78,"__hash__":79},"navigation\u002Fdata\u002Fshared\u002Fnavigation.yml","yml",{"brand":7,"columns":10,"legal":56},{"name":8,"tagline":9},"Pieces","The memory layer for modern work.",[11,26,41],{"title":12,"links":13},"Product",[14,17,21,24],{"label":15,"href":16},"Pieces Desktop","\u002Fdownloads",{"label":18,"href":19,"external":20},"Pieces MCP","url:docs.mcp.overview",true,{"label":22,"href":23,"external":20},"Pieces APIs","url:docs.api",{"label":25,"href":16},"Downloads",{"title":27,"links":28},"Resources",[29,32,35,38],{"label":30,"href":31,"external":20},"Documentation","url:docs.home",{"label":33,"href":34},"Blog","\u002Fblog",{"label":36,"href":37},"Changelog","\u002Fchangelog",{"label":39,"href":40,"external":20},"GitHub","url:github.org",{"title":42,"links":43},"Company",[44,47,50,53],{"label":45,"href":46},"About","\u002Fabout",{"label":48,"href":49},"Enterprise","\u002Fenterprise",{"label":51,"href":52,"external":20},"Discord","url:social.discord",{"label":54,"href":55,"external":20},"X \u002F Twitter","url:social.x",[57,60,63],{"label":58,"href":59,"external":20},"Privacy Policy","url:legal.privacyPolicy",{"label":61,"href":62,"external":20},"Refund Policy","url:legal.refundPolicy",{"label":64,"href":65,"external":20},"Terms of Service","url:legal.terms",{"links":67,"signIn":68,"contact":71,"cta":74},[],{"label":69,"href":70},"Sign in","url:portal.home",{"label":72,"href":73},"Contact sales","url:site.contact",{"label":75,"href":76},"Download","url:routes.downloads",{},"data\u002Fshared\u002Fnavigation","Ia8tCWWqcGvuaIro8jwZ3HH-MwI66yqJpWshASJdYQ0",{"id":81,"extension":5,"links":82,"meta":586,"stem":587,"__hash__":588},"urlSettings\u002Fdata\u002Fshared\u002Furls.yml",[83,87,91,95,99,103,107,111,115,119,123,127,131,135,139,143,147,151,155,159,163,167,171,175,179,183,187,191,195,199,203,207,211,215,219,223,227,231,235,238,242,246,249,253,257,261,265,269,273,277,281,285,289,293,297,301,305,309,313,317,321,325,329,333,337,341,345,349,353,357,361,365,369,373,377,381,385,389,393,396,400,404,408,412,416,420,423,426,429,432,436,440,444,448,452,456,460,464,468,472,476,480,484,488,492,495,499,503,507,511,515,519,523,527,531,534,538,542,546,550,553,557,561,565,568,571,575,579,582],{"key":84,"label":85,"href":86},"downloads.desktop","Desktop download page","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fdesktop\u002Fdownload",{"key":88,"label":89,"href":90},"downloads.macOS.dmgArm64","macOS DMG Apple Silicon","https:\u002F\u002Fbuilds.pieces.app\u002Fstages\u002Fproduction\u002Fpieces_for_x\u002Fdmg-arm64\u002Fdownload",{"key":92,"label":93,"href":94},"downloads.macOS.dmgIntel","macOS DMG Intel","https:\u002F\u002Fbuilds.pieces.app\u002Fstages\u002Fproduction\u002Fpieces_for_x\u002Fdmg\u002Fdownload",{"key":96,"label":97,"href":98},"downloads.macOS.pkg","macOS PKG","https:\u002F\u002Fbuilds.pieces.app\u002Fstages\u002Fproduction\u002Fmacos_packaging\u002Fpkg\u002Fdownload",{"key":100,"label":101,"href":102},"downloads.windows.appinstaller","Windows App Installer","https:\u002F\u002Fbuilds.pieces.app\u002Fstages\u002Fproduction\u002Fappinstaller\u002Fpieces_for_x.appinstaller",{"key":104,"label":105,"href":106},"downloads.windows.exe","Windows EXE","https:\u002F\u002Fbuilds.pieces.app\u002Fstages\u002Fproduction\u002Fpieces_for_x\u002Fwindows-exe\u002Fdownload",{"key":108,"label":109,"href":110},"downloads.windows.suiteManager","Windows Suite Manager","https:\u002F\u002Fbuilds.pieces.app\u002Fstages\u002Fproduction\u002Fpieces_suite_windows\u002Fappinstaller\u002Fdownload",{"key":112,"label":113,"href":114},"downloads.linux.flatpakRepo","Linux Flatpak repository","https:\u002F\u002Fbuilds.pieces.app\u002Fpieces-flatpak-repo\u002Fpieces-flatpak.flatpakrepo",{"key":116,"label":117,"href":118},"downloads.linux.snapDesktop","Linux Snap Desktop","https:\u002F\u002Fsnapcraft.io\u002Fpieces-for-developers",{"key":120,"label":121,"href":122},"downloads.linux.snapPiecesOS","Linux Snap PiecesOS","https:\u002F\u002Fsnapcraft.io\u002Fpieces-os",{"key":124,"label":125,"href":126},"downloads.piecesOS.macOS.dmgArm64","PiecesOS macOS DMG Apple Silicon","https:\u002F\u002Fbuilds.pieces.app\u002Fstages\u002Fproduction\u002Fos_server\u002Fdmg-arm64\u002Fdownload",{"key":128,"label":129,"href":130},"downloads.piecesOS.macOS.dmgIntel","PiecesOS macOS DMG Intel","https:\u002F\u002Fbuilds.pieces.app\u002Fstages\u002Fproduction\u002Fos_server\u002Fdmg\u002Fdownload",{"key":132,"label":133,"href":134},"downloads.piecesOS.windows.appinstaller","PiecesOS Windows App Installer","https:\u002F\u002Fbuilds.pieces.app\u002Fstages\u002Fproduction\u002Fappinstaller\u002Fos_server.appinstaller",{"key":136,"label":137,"href":138},"downloads.piecesOS.windows.exe","PiecesOS Windows EXE","https:\u002F\u002Fbuilds.pieces.app\u002Fstages\u002Fproduction\u002Fos_server\u002Fwindows-exe\u002Fdownload",{"key":140,"label":141,"href":142},"downloads.guides.macOS","macOS installation guide","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fmeet-pieces\u002Fmacos-installation-guide",{"key":144,"label":145,"href":146},"downloads.guides.windows","Windows installation guide","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fmeet-pieces\u002Fwindows-installation-guide",{"key":148,"label":149,"href":150},"downloads.guides.linux","Linux installation guide","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fmeet-pieces\u002Flinux-installation-guide",{"key":152,"label":153,"href":154},"downloads.guides.piecesOS","PiecesOS manual installation","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fcore-dependencies\u002Fpieces-os\u002Fmanual-installation",{"key":156,"label":157,"href":158},"extensions.chrome","Chrome extension","https:\u002F\u002Fchrome.google.com\u002Fwebstore\u002Fdetail\u002Fpieces-save-code-snippets\u002Figbgibhbfonhmjlechmeefimncpekepm",{"key":160,"label":161,"href":162},"extensions.firefox","Firefox add-on","https:\u002F\u002Faddons.mozilla.org\u002Fen-US\u002Ffirefox\u002Faddon\u002Fpieces-save-code-from-the-web\u002F",{"key":164,"label":165,"href":166},"extensions.edge","Edge add-on","https:\u002F\u002Fmicrosoftedge.microsoft.com\u002Faddons\u002Fdetail\u002Fpieces-save-code-snippet\u002Fhglfimcdgonaeeobjckfdabcldfidmim",{"key":168,"label":169,"href":170},"extensions.vscode","VS Code extension","https:\u002F\u002Fmarketplace.visualstudio.com\u002Fitems?itemName=MeshIntelligentTechnologiesInc.pieces-vscode",{"key":172,"label":173,"href":174},"extensions.visualStudio","Visual Studio extension","https:\u002F\u002Fmarketplace.visualstudio.com\u002Fitems?itemName=MeshIntelligentTechnologiesInc.PiecesVisualStudio",{"key":176,"label":177,"href":178},"extensions.jetbrains","JetBrains plugin","https:\u002F\u002Fplugins.jetbrains.com\u002Fplugin\u002F17328-pieces--save-search-share--reuse-code-snippets",{"key":180,"label":181,"href":182},"extensions.obsidian","Obsidian plugin","https:\u002F\u002Fobsidian.md\u002Fplugins?id=pieces-for-developers",{"key":184,"label":185,"href":186},"extensions.sublime","Sublime package","https:\u002F\u002Fpackagecontrol.io\u002Fpackages\u002FPieces",{"key":188,"label":189,"href":190},"extensions.neovim","Neovim plugin","https:\u002F\u002Fgithub.com\u002Fpieces-app\u002Fplugin_neo_vim",{"key":192,"label":193,"href":194},"extensions.jupyterlab","JupyterLab plugin","https:\u002F\u002Fgithub.com\u002Fpieces-app\u002Fjupyterlab-pieces",{"key":196,"label":197,"href":198},"extensions.cli","Pieces CLI","https:\u002F\u002Fpypi.org\u002Fproject\u002Fpieces-cli\u002F",{"key":200,"label":201,"href":202},"docs.home","Documentation home","https:\u002F\u002Fdocs.pieces.app",{"key":204,"label":205,"href":206},"docs.getStarted","Get started docs","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fmeet-pieces",{"key":208,"label":209,"href":210},"docs.api","API docs","https:\u002F\u002Fdocs.pieces.app\u002Fapi",{"key":212,"label":213,"href":214},"docs.desktop.overview","Desktop overview","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fdesktop",{"key":216,"label":217,"href":218},"docs.desktop.onboarding","Desktop onboarding","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fdesktop\u002Fonboarding",{"key":220,"label":221,"href":222},"docs.desktop.timeline","Desktop timeline docs","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fdesktop\u002Ftimeline",{"key":224,"label":225,"href":226},"docs.desktop.summaries","Desktop summaries docs","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fdesktop\u002Fsingle-click-summaries",{"key":228,"label":229,"href":230},"docs.desktop.search","Desktop conversational search docs","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fdesktop\u002Fconversational-search",{"key":232,"label":233,"href":234},"docs.desktop.drive","Desktop drive docs","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fdesktop\u002Fdrive",{"key":236,"label":237,"href":86},"docs.desktop.download","Desktop download docs",{"key":239,"label":240,"href":241},"docs.piecesOS.overview","PiecesOS overview docs","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fcore-dependencies",{"key":243,"label":244,"href":245},"docs.piecesOS.details","PiecesOS details docs","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fcore-dependencies\u002Fpieces-os",{"key":247,"label":248,"href":154},"docs.piecesOS.install","PiecesOS install docs",{"key":250,"label":251,"href":252},"docs.piecesOS.quickMenu","PiecesOS quick menu docs","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fcore-dependencies\u002Fpieces-os\u002Fquick-menu",{"key":254,"label":255,"href":256},"docs.piecesOS.storage","On-device storage docs","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fcore-dependencies\u002Fon-device-storage",{"key":258,"label":259,"href":260},"docs.piecesOS.troubleshooting","PiecesOS troubleshooting docs","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fcore-dependencies\u002Fpieces-os\u002Ftroubleshooting",{"key":262,"label":263,"href":264},"docs.mcp.overview","MCP overview docs","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fmcp",{"key":266,"label":267,"href":268},"docs.mcp.cursor","MCP Cursor docs","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fmcp\u002Fcursor",{"key":270,"label":271,"href":272},"docs.mcp.vscode","MCP VS Code docs","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fmcp\u002Fvs-code",{"key":274,"label":275,"href":276},"docs.mcp.claudeDesktop","MCP Claude Desktop docs","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fmcp\u002Fclaude-desktop",{"key":278,"label":279,"href":280},"docs.mcp.claudeCode","MCP Claude Code docs","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fmcp\u002Fclaude-code",{"key":282,"label":283,"href":284},"docs.mcp.claudeCowork","MCP Claude Cowork docs","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fmcp\u002Fclaude-cowork",{"key":286,"label":287,"href":288},"docs.mcp.githubCopilot","MCP GitHub Copilot docs","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fmcp\u002Fgithub-copilot",{"key":290,"label":291,"href":292},"docs.mcp.goose","MCP Goose docs","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fmcp\u002Fgoose",{"key":294,"label":295,"href":296},"docs.mcp.windsurf","MCP Windsurf docs","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fmcp\u002Fwindsurf",{"key":298,"label":299,"href":300},"docs.mcp.zed","MCP Zed docs","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fmcp\u002Fzed",{"key":302,"label":303,"href":304},"docs.mcp.jetbrains","MCP JetBrains docs","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fmcp\u002Fjetbrains-ides",{"key":306,"label":307,"href":308},"docs.mcp.continueDev","MCP Continue docs","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fmcp\u002Fcontinue-dev",{"key":310,"label":311,"href":312},"docs.mcp.cline","MCP Cline docs","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fmcp\u002Fcline",{"key":314,"label":315,"href":316},"docs.mcp.raycast","MCP Raycast docs","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fmcp\u002Fraycast",{"key":318,"label":319,"href":320},"docs.mcp.rovoDevCli","MCP Rovo Dev CLI docs","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fmcp\u002Frovo-dev-cli",{"key":322,"label":323,"href":324},"docs.mcp.openaiCodexCli","MCP OpenAI Codex CLI docs","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fmcp\u002Fopenai-codex-cli",{"key":326,"label":327,"href":328},"docs.mcp.googleGeminiCli","MCP Google Gemini CLI docs","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fmcp\u002Fgoogle-gemini-cli",{"key":330,"label":331,"href":332},"docs.mcp.amazonQ","MCP Amazon Q docs","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fmcp\u002Famazon-q-developer",{"key":334,"label":335,"href":336},"docs.mcp.chatgptDev","MCP ChatGPT Developer Mode docs","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fmcp\u002Fchatgpt-developer-mode",{"key":338,"label":339,"href":340},"docs.mcp.openclaw","MCP OpenClaw docs","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fmcp\u002Fopenclaw",{"key":342,"label":343,"href":344},"docs.mcp.mcpRemote","MCP Remote docs","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fmcp\u002Fmcp-remote",{"key":346,"label":347,"href":348},"docs.mcp.ngrok","MCP ngrok docs","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fmcp\u002Fngrok-setup",{"key":350,"label":351,"href":352},"docs.troubleshooting.macOS","macOS troubleshooting docs","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fmeet-pieces\u002Ftroubleshooting\u002Fmacos",{"key":354,"label":355,"href":356},"docs.troubleshooting.windows","Windows troubleshooting docs","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fmeet-pieces\u002Ftroubleshooting\u002Fwindows",{"key":358,"label":359,"href":360},"docs.troubleshooting.linux","Linux troubleshooting docs","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fmeet-pieces\u002Ftroubleshooting\u002Flinux",{"key":362,"label":363,"href":364},"docs.privacy","Privacy and security docs","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fprivacy-security-your-data",{"key":366,"label":367,"href":368},"docs.support","Support docs","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fsupport",{"key":370,"label":371,"href":372},"portal.home","Pieces portal","https:\u002F\u002Fportal.pieces.app",{"key":374,"label":375,"href":376},"site.home","Website home","https:\u002F\u002Fpieces.app",{"key":378,"label":379,"href":380},"site.about","About page","https:\u002F\u002Fpieces.app\u002Fabout",{"key":382,"label":383,"href":384},"site.features","Features page","https:\u002F\u002Fpieces.app\u002Ffeatures",{"key":386,"label":387,"href":388},"site.plugins","Plugins page","https:\u002F\u002Fpieces.app\u002Fplugins",{"key":390,"label":391,"href":392},"site.contact","Contact page","https:\u002F\u002Fpieces.app\u002Fcontact",{"key":394,"label":36,"href":395},"site.changelog","https:\u002F\u002Fpieces.app\u002Fchangelog",{"key":397,"label":398,"href":399},"site.news","News","https:\u002F\u002Fpieces.app\u002Fnews",{"key":401,"label":402,"href":403},"site.events","Community events","https:\u002F\u002Fpieces.app\u002Fcommunity\u002Fevents",{"key":405,"label":406,"href":407},"site.userStories","User stories","https:\u002F\u002Fpieces.app\u002Fuser-stories",{"key":409,"label":410,"href":411},"site.academy","Academy","https:\u002F\u002Fpieces.app\u002Flearn\u002Facademy",{"key":413,"label":414,"href":415},"site.support","Website support","https:\u002F\u002Fpieces.app\u002Fsupport",{"key":417,"label":418,"href":419},"site.standup","Standup","https:\u002F\u002Fpieces.app\u002Fstandup",{"key":421,"label":33,"href":422},"site.blog","https:\u002F\u002Fcode.pieces.app\u002Fblog",{"key":424,"label":51,"href":425},"social.discord","https:\u002F\u002Fdiscord.gg\u002Fgetpieces",{"key":427,"label":54,"href":428},"social.x","https:\u002F\u002Fx.com\u002Fgetpieces",{"key":430,"label":431,"href":428},"social.twitter","Twitter",{"key":433,"label":434,"href":435},"social.instagram","Instagram","https:\u002F\u002Fwww.instagram.com\u002Fgetpieces\u002F",{"key":437,"label":438,"href":439},"social.tiktok","TikTok","https:\u002F\u002Fwww.tiktok.com\u002F@getpieces",{"key":441,"label":442,"href":443},"social.linkedin","LinkedIn","https:\u002F\u002Fwww.linkedin.com\u002Fcompany\u002Fgetpieces\u002F",{"key":445,"label":446,"href":447},"social.youtube","YouTube","https:\u002F\u002Fyoutube.com\u002F@getpieces",{"key":449,"label":450,"href":451},"github.org","GitHub organization","https:\u002F\u002Fgithub.com\u002Fpieces-app",{"key":453,"label":454,"href":455},"github.support","GitHub support","https:\u002F\u002Fgithub.com\u002Fpieces-app\u002Fsupport",{"key":457,"label":458,"href":459},"github.issues","GitHub issues","https:\u002F\u002Fgithub.com\u002Fpieces-app\u002Fsupport\u002Fissues",{"key":461,"label":462,"href":463},"github.discussions","GitHub discussions","https:\u002F\u002Fgithub.com\u002Fpieces-app\u002Fsupport\u002Fdiscussions",{"key":465,"label":466,"href":467},"github.documentation","GitHub documentation","https:\u002F\u002Fgithub.com\u002Fpieces-app\u002Fdocumentation",{"key":469,"label":470,"href":471},"github.opensource","GitHub open source","https:\u002F\u002Fgithub.com\u002Fpieces-app\u002Fopensource",{"key":473,"label":474,"href":475},"github.sdks.python","Python SDK","https:\u002F\u002Fgithub.com\u002Fpieces-app\u002Fpieces-os-client-sdk-for-python",{"key":477,"label":478,"href":479},"github.sdks.typescript","TypeScript SDK","https:\u002F\u002Fgithub.com\u002Fpieces-app\u002Fpieces-os-client-sdk-for-typescript",{"key":481,"label":482,"href":483},"github.sdks.dart","Dart SDK","https:\u002F\u002Fgithub.com\u002Fpieces-app\u002Fpieces-os-client-sdk-for-dart",{"key":485,"label":486,"href":487},"github.sdks.kotlin","Kotlin SDK","https:\u002F\u002Fgithub.com\u002Fpieces-app\u002Fpieces-os-client-sdk-for-kotlin",{"key":489,"label":490,"href":491},"github.plugins.obsidian","Obsidian plugin repository","https:\u002F\u002Fgithub.com\u002Fpieces-app\u002Fobsidian-pieces",{"key":493,"label":494,"href":194},"github.plugins.jupyterlab","JupyterLab plugin repository",{"key":496,"label":497,"href":498},"github.plugins.sublime","Sublime plugin repository","https:\u002F\u002Fgithub.com\u002Fpieces-app\u002Fplugin_sublime",{"key":500,"label":501,"href":502},"github.plugins.neovim","Neovim plugin repository","https:\u002F\u002Fgithub.com\u002Fpieces-app\u002Fplugin_neovim",{"key":504,"label":505,"href":506},"github.cliAgent","CLI agent repository","https:\u002F\u002Fgithub.com\u002Fpieces-app\u002Fcli-agent",{"key":508,"label":509,"href":510},"github.mcpDart","MCP Dart repository","https:\u002F\u002Fgithub.com\u002Fpieces-app\u002Fmcp_dart",{"key":512,"label":513,"href":514},"github.awesomePieces","Awesome Pieces repository","https:\u002F\u002Fgithub.com\u002Fpieces-app\u002Fawesome-pieces",{"key":516,"label":517,"href":518},"legal.privacyPolicy","Privacy policy","https:\u002F\u002Fpieces.app\u002Flegal\u002Fprivacy-policy",{"key":520,"label":521,"href":522},"legal.refundPolicy","Refund policy","https:\u002F\u002Fpieces.app\u002Flegal\u002Frefund-policy",{"key":524,"label":525,"href":526},"legal.terms","Terms","https:\u002F\u002Fpieces.app\u002Flegal\u002Fterms",{"key":528,"label":529,"href":530},"legal.security","Legal security","https:\u002F\u002Fpieces.app\u002Flegal\u002Fsecurity",{"key":532,"label":533,"href":447},"videos.youtubeChannel","YouTube channel",{"key":535,"label":536,"href":537},"videos.gettingStartedDesktop","Getting started desktop video","https:\u002F\u002Fyoutu.be\u002FdUr1lRM_TYk",{"key":539,"label":540,"href":541},"videos.snippetDiscovery","Snippet discovery video","https:\u002F\u002Fyoutu.be\u002FG6vb1USw-30",{"key":543,"label":544,"href":545},"sales.bookACall","Book a sales call","https:\u002F\u002Fcalendar.app.google\u002FWVUDtUfNy5Vst3sH7",{"key":547,"label":548,"href":549},"sales.enterprise","Enterprise form","https:\u002F\u002Fgetpieces.typeform.com\u002Fto\u002FaVQFTvpE",{"key":551,"label":552,"href":463},"sales.feedback","Feedback discussions",{"key":554,"label":555,"href":556},"sales.earlyAccess","Early access form","https:\u002F\u002Fgetpieces.typeform.com\u002Fearlyaccess",{"key":558,"label":559,"href":560},"sales.supportEmail","Support email","mailto:support@pieces.app",{"key":562,"label":563,"href":564},"routes.home","Home route","\u002F",{"key":566,"label":567,"href":46},"routes.about","About route",{"key":569,"label":570,"href":16},"routes.downloads","Downloads route",{"key":572,"label":573,"href":574},"routes.pricing","Pricing route","\u002Fpricing",{"key":576,"label":577,"href":578},"routes.security","Security route","\u002Fsecurity",{"key":580,"label":581,"href":49},"routes.enterprise","Enterprise route",{"key":583,"label":584,"href":585},"routes.thankYou","Thank you \u002F download route","\u002Fthank-you",{},"data\u002Fshared\u002Furls","P27xKEauu8D-8sfyr0wR4giF0teFSaCuAQ8kgcICQdI",{"id":590,"title":591,"author":592,"authorPhoto":593,"authorPhotoAlt":594,"authorSlug":595,"body":596,"buttonText":594,"buttonUrl":594,"category":1814,"date":1815,"description":1816,"draft":1817,"editorsPick":1817,"extension":1818,"featured":1817,"image":1819,"imageAlt":594,"meta":1820,"navigation":20,"ogImage":594,"ogImageAlt":594,"path":1821,"seo":1822,"stem":1823,"tags":594,"__hash__":1824},"blog\u002Fblog\u002Fintroducing-open-source-by-pieces.md","Introducing Open Source by Pieces","The Pieces Team","https:\u002F\u002Fstorage.googleapis.com\u002Fpieces-marketing-website\u002Fimages\u002Fblog\u002Fannouncing-the-pieces-visual-studio-extension\u002Fauthor.png",null,"the-pieces-team",{"type":597,"value":598,"toc":1788},"minimark",[599,603,614,617,622,683,689,693,696,699,702,705,708,717,721,729,732,736,741,744,752,755,766,773,779,783,786,792,795,801,804,811,817,820,826,829,835,842,848,852,869,872,878,882,889,896,904,910,919,925,935,941,951,957,963,969,985,989,992,1006,1009,1015,1018,1025,1028,1032,1035,1042,1046,1053,1060,1091,1094,1109,1137,1140,1146,1179,1183,1192,1214,1220,1223,1226,1248,1252,1255,1261,1264,1281,1284,1290,1294,1297,1300,1306,1317,1323,1326,1333,1337,1343,1352,1369,1378,1383,1387,1390,1399,1403,1410,1418,1422,1427,1430,1461,1480,1490,1496,1500,1518,1523,1545,1551,1557,1564,1570,1576,1582,1588,1592,1595,1598,1604,1608,1615,1628,1632,1642,1645,1663,1669,1673,1676,1720,1726,1730,1733,1736,1745,1753,1761,1765,1768,1771,1774,1777,1785],[600,601,602],"p",{},"In our latest Ask Me Anything (AMA) session, we announced the launch of our open source initiative at Pieces. The panel, consisting of Tsavo Knott (CEO), Jordan Freeman (Head of Open Source), and Shivay Lamba (Lead Developer Advocate), shared their insights on the importance of open source contributions, the release of the Pieces TypeScript SDK, and answered questions from our community. The AMA also touched upon the future of Pieces' open-source projects and community involvement.",[600,604,605,606,613],{},"The main focus of this livestream was on the release of the ",[607,608,612],"a",{"href":609,"rel":610},"https:\u002F\u002Fgithub.com\u002Fpieces-app\u002Fexample-ts",[611],"nofollow","Pieces TypeScript SDK",", the importance of community involvement in open source projects, and the potential of Pieces OS. This session is a must-watch for anyone interested in understanding how these advanced features can augment their existing workflow and enhance productivity.",[600,615,616],{},"If you missed the live event, don't worry. We've summarized the key takeaways, highlighted some of the most thought-provoking questions and answers, and even shared video snippets of the discussion to get you up to speed!",[618,619,621],"h2",{"id":620},"topics-covered","Topics Covered",[623,624,625,635,643,651,659,667,675],"ul",{},[626,627,628,629,634],"li",{},"(",[607,630,633],{"href":631,"rel":632},"https:\u002F\u002Fwww.youtube.com\u002Fwatch?v=0AmuWaFoTdY&t=75s",[611],"1:15",") Introducing Open Source by Pieces",[626,636,628,637,642],{},[607,638,641],{"href":639,"rel":640},"https:\u002F\u002Fwww.youtube.com\u002Fwatch?v=0AmuWaFoTdY&t=377s",[611],"6:17",") Getting Started with @pieces.app\u002Fclient and testing the NPM package",[626,644,628,645,650],{},[607,646,649],{"href":647,"rel":648},"https:\u002F\u002Fwww.youtube.com\u002Fwatch?v=0AmuWaFoTdY&t=519s",[611],"8:39",") Language SDKs",[626,652,628,653,658],{},[607,654,657],{"href":655,"rel":656},"https:\u002F\u002Fwww.youtube.com\u002Fwatch?v=0AmuWaFoTdY&t=619s",[611],"10:19",") npm Documentation",[626,660,628,661,666],{},[607,662,665],{"href":663,"rel":664},"https:\u002F\u002Fwww.youtube.com\u002Fwatch?v=0AmuWaFoTdY&t=926s",[611],"15:26",") Starter Project Demo",[626,668,628,669,674],{},[607,670,673],{"href":671,"rel":672},"https:\u002F\u002Fwww.youtube.com\u002Fwatch?v=0AmuWaFoTdY&t=2858s",[611],"47:38",") How to join and contribute to the Pieces Open Source Community",[626,676,628,677,682],{},[607,678,681],{"href":679,"rel":680},"https:\u002F\u002Fwww.youtube.com\u002Fwatch?v=0AmuWaFoTdY&t=3346s",[611],"55:46",") Potential of building with Pieces OS + Open Source Community",[600,684,685],{},[607,686,687],{"href":687,"rel":688},"https:\u002F\u002Fwww.youtube.com\u002Fwatch?v=9BmGPGsB3n4",[611],[618,690,692],{"id":691},"our-history-and-vision-with-open-source","Our History and Vision with Open Source",[600,694,695],{},"Open Source has long since been the backbone of the internet, and here at Pieces we felt like it is finally our time to support, contribute, and help nurture the open source community. Knowing the powerful workflow tools that we have created - coupled with the responses by our users - let us know that we truly had something to offer developers just like ourselves working on other projects around the world.",[600,697,698],{},"The AMA discussion opened with Tsavo expressing the team’s excitement about discussing open source initiatives at Pieces. He highlighted their commitment to building products that enhance developer productivity and express their eagerness to work with the community.",[600,700,701],{},"Tsavo discussed how Pieces has been considering open source for a long time, starting with the use of the OpenAPI specification. He mentioned that most of the code inside Pieces is generated from OpenAPI and gRPC ProtoBuf specs, which allows for easy conversion into client-side SDKs and core packages.",[600,703,704],{},"Tsavo also announced the plan to open source some of our integrations and enable the community to integrate with Pieces directly. He acknowledged that the Pieces team can't build everything and since developers use a variety of tools, we aim to ease into the open source community and user base for building additional tooling\u002Fprojects around Pieces.",[600,706,707],{},"Tsavo also discussed the potential of client-side SDKs to pull out, access, organize, and format data from Pieces. Thus having two major pillars of using client-side SDKs with Pieces: the ability to save, access, search, and reuse data, and the ability to build co-pilots and workflow agents on top of Pieces OS using its AI capabilities.",[600,709,710,711,716],{},"While we currently only support a ",[607,712,715],{"href":713,"rel":714},"https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002F@pieces.app\u002Fclient",[611],"single NPM package",", we are looking forward to the coming weeks as we add to that list with languages like dart, kotlin, and many more. After reading this article you will have a clear picture of what we currently support, what’s coming in the future, how to get involved with the Open Source by Pieces community, along with a starter project you can build, along with details around our @pieces.app\u002Fclient package that we just released!",[618,718,720],{"id":719},"getting-started-with-piecesappclient-and-testing-the-npm-package","Getting Started with @pieces.app\u002Fclient and testing the NPM package",[600,722,723,724,728],{},"Hello there - this is a brief walkthrough of what was introduced during the AMA with some of our initial configurations. Our repo ",[607,725,727],{"href":609,"rel":726},[611],"here"," will continually be updated as the project progresses with the community.",[600,730,731],{},"Follow along with this initial walkthrough to start exploring some of the data you have access to use when interacting with the package.",[618,733,735],{"id":734},"configuration-setup-with-npm","Configuration & Setup with NPM",[737,738,740],"h3",{"id":739},"creating-the-base-of-your-project","Creating the base of your project",[600,742,743],{},"Let’s get started with the base of your new React project where we will learn about manipulating Pieces OS and creating our own assets locally on device.",[600,745,746,751],{},[607,747,750],{"href":748,"rel":749},"https:\u002F\u002Fdocs.npmjs.com\u002Fdownloading-and-installing-node-js-and-npm#checking-your-version-of-npm-and-nodejs",[611],"Follow this guide here"," to check your node and npm versions before getting started. Download the appropriate updates or install npm to have success with this walkthrough.",[600,753,754],{},"Run this command in the directory of your choice to initialize your react application:",[756,757,762],"pre",{"className":758,"code":760,"language":761},[759],"language-text","npm init react-app your-app\n","text",[763,764,760],"code",{"__ignoreMap":765},"",[600,767,768,769],{},"Navigate to your .tsconfig folder and insure you have the following settings:",[770,771,772],"strong",{},"How your .tsconfig should look when you are done:",[756,774,777],{"className":775,"code":776,"language":761},[759],"{\n  \"compilerOptions\": {\n    \"target\": \"es2020\",\n    \"module\": \"CommonJS\",\n     \"allowJs\": true,\n     \"checkJs\": true,\n    \"forceConsistentCasingInFileNames\": true,\n    \u002F* Type Checking *\u002F\n    \"strict\": false,\n    \"skipLibCheck\": true,\n    \u002F* Skip type checking all .d.ts files. *\u002F\n    \"jsx\": \"react\"\n  },\n  \"exclude\": [\"node_modules\"]\n}\n",[763,778,776],{"__ignoreMap":765},[737,780,782],{"id":781},"installing-with-npm","Installing with npm",[600,784,785],{},"First install both typescript and ts-node through npm to support some scripts, building the application and a few other things:",[756,787,790],{"className":788,"code":789,"language":761},[759],"npm install typescript && npm install ts-node\n",[763,791,789],{"__ignoreMap":765},[600,793,794],{},"Then getting the types package is super beneficial and in some cases needed to work in this environment:",[756,796,799],{"className":797,"code":798,"language":761},[759],"npm install -D tslib @types\u002Fnode\n",[763,800,798],{"__ignoreMap":765},[600,802,803],{},"Install a few react libraries to get a more visual experience while learning about the api itself and support the browser..",[600,805,806,807,810],{},"Here are those npm installations for ",[763,808,809],{},"@types",":",[756,812,815],{"className":813,"code":814,"language":761},[759],"npm install @types\u002Freact && npm install @types\u002Freact-dom\n",[763,816,814],{"__ignoreMap":765},[600,818,819],{},"Along with the typing, you will need to install the full packages for react, react-dom, and react scripts to properly get started in this project.",[756,821,824],{"className":822,"code":823,"language":761},[759],"npm install react && npm install react-dom && npm install react-scripts\n",[763,825,823],{"__ignoreMap":765},[600,827,828],{},"Don’t forget to install the @pieces.app\u002Fclient npm package:",[756,830,833],{"className":831,"code":832,"language":761},[759],"npm install @pieces.app\u002Fclient@0.0.6\n",[763,834,832],{"__ignoreMap":765},[600,836,837,838,841],{},"And last but not least its a good idea to add a few scripts into your ",[763,839,840],{},"package.json"," to help with development:",[756,843,846],{"className":844,"code":845,"language":761},[759],"scripts: {\n \u002F\u002F Helper scripts i recommend.\n \"dev\": \"ts-node index.tsx\",  \n \"clean\": \"rm -r node_modules && rm package-lock.json\",\n \u002F\u002F React scripts for testing.\n \"start\": \"react-scripts start\",\n \"build\": \"react-scripts build\",\n}\n",[763,847,845],{"__ignoreMap":765},[618,849,851],{"id":850},"setting-up-your-public-directory","Setting up your public Directory",[600,853,854,855,858,859,862,863,865,866,868],{},"Next you can go ahead and create a new directory called ",[763,856,857],{},"public"," (if it is not already created) that will hold your ",[770,860,861],{},"index.html"," file where your entry point exists. Create the file inside of your ",[770,864,857],{}," directory and save it there. You do not have to add anything to the ",[763,867,861],{}," file at this time, as we will come back to this later. If you would like, you can add the following as a placeholder for now.",[600,870,871],{},"If there are other elements here you can remove them and replace them with the following:",[756,873,876],{"className":874,"code":875,"language":761},[759],"\u003C!DOCTYPE html>\u003Chtml lang=\"en\">\u003C\u002Fhtml>\n",[763,877,875],{"__ignoreMap":765},[618,879,881],{"id":880},"setting-up-your-src-directory","Setting up your src Directory",[600,883,884,885,888],{},"Now that the initial ",[763,886,887],{},".html"," file has been created, you can start to work on your src directory and get the rest of your core files added to the project.",[600,890,891,892,895],{},"Inside of the ",[763,893,894],{},"src"," directory, add two files:",[623,897,898],{},[626,899,900,903],{},[763,901,902],{},"index.tsx","- where the core info is and where we are going to be spending most of the time during this project following the setup.",[600,905,906,907,909],{},"Once you open ",[763,908,902],{}," you should follow these steps to get your base Application window created:",[911,912,913],"ol",{},[626,914,915,916,810],{},"Import the full react library at the top of your file, along with a single import from ",[763,917,918],{},"react-dom",[756,920,923],{"className":921,"code":922,"language":761},[759],"import * as React from \"react\";import { render } from 'react-dom';\n",[763,924,922],{"__ignoreMap":765},[911,926,928],{"start":927},2,[626,929,930,931,934],{},"Follow that with the full ",[763,932,933],{},"App()"," function and main run of the application:",[756,936,939],{"className":937,"code":938,"language":761},[759],"function App(): React.JSX.Element {   return (  \u003Cdiv>\u003Ch1>Hello Pieces Dev Community :)\u003C\u002Fh1>\u003C\u002Fdiv>    )}\n",[763,940,938],{"__ignoreMap":765},[911,942,944],{"start":943},3,[626,945,946,947,950],{},"And then add these two lines to target the ",[763,948,949],{},"root"," element by using the ID that is on it:",[756,952,955],{"className":953,"code":954,"language":761},[759],"const rootElement = document.getElementById(\"root\");  const root = createRoot(rootElement);\n",[763,956,954],{"__ignoreMap":765},[911,958,960],{"start":959},4,[626,961,962],{},"Any finally get your render in to your file:",[756,964,967],{"className":965,"code":966,"language":761},[759],"root.render(\u003CReact.StrictMode>\u003CApp \u002F>\u003C\u002FReact.StrictMode>);\n",[763,968,966],{"__ignoreMap":765},[600,970,971,972,975,976,979,980,984],{},"When working in this environment I noticed some ",[763,973,974],{},"@babel"," errors during the build process (or running ",[763,977,978],{},"npm run start",") and found this workaround that you can install via npm as well ",[607,981,727],{"href":982,"rel":983},"https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002F@babel\u002Fplugin-transform-private-property-in-object",[611],".",[618,986,988],{"id":987},"running-your-project-for-the-first-time","Running your Project for the First Time",[600,990,991],{},"Everything has been added. We are nearly there and will need to perform a final few checks before starting our dev project.",[911,993,994,997,1003],{},[626,995,996],{},"Be sure that Pieces OS is running",[626,998,999,1000],{},"Double check that the port is ",[763,1001,1002],{},"localhost:1000",[626,1004,1005],{},"(optional) Run another npm install (because it never hurts)",[600,1007,1008],{},"Now that everything is ready to go, lets run this command here:",[756,1010,1013],{"className":1011,"code":1012,"language":761},[759],"# remember that we added this to the scripts as: \"start\": \"react-scripts start\"\n  npm run start\n",[763,1014,1012],{"__ignoreMap":765},[600,1016,1017],{},"And after a few seconds you should be able to see in your chrome browser (or your primary browser) a blank window that looks like this:",[600,1019,1020],{},[1021,1022],"img",{"alt":1023,"src":1024},"A correctly set up dev environment.","https:\u002F\u002Fstorage.googleapis.com\u002Fpieces-marketing-website\u002Fimages\u002Fblog\u002Fintroducing-open-source-by-pieces\u002Fimg-001.png",[600,1026,1027],{},"You have now successfully set up your dev environment, and will be ready to test different endpoints inside of Pieces OS.",[618,1029,1031],{"id":1030},"connecting-your-application","Connecting your Application",[600,1033,1034],{},"When Pieces OS is running in the background of your machine, it is communicating with other local applications that use Pieces software, and up until recently only supporting internally built tools.",[600,1036,1037,1038,1041],{},"As each plugin, extension, or application initializes they 'reach out' to Pieces OS and authenticate with the application themselves. There are a number of application formats that we support and provide for each of our applications. When developing on Pieces OS, you can use ",[770,1039,1040],{},"\"BRAVE\""," to avoid any issues with other applications.",[737,1043,1045],{"id":1044},"creating-application","Creating Application",[600,1047,1048,1049,1052],{},"The ",[763,1050,1051],{},"application"," model describes what application a format or analytics event originated from. This is passed along when initializing your dev environment and creates a connection to Pieces OS.",[600,1054,1055,1056,1059],{},"To create the ",[763,1057,1058],{},"Application"," object for your project, you will need to make sure that you have the following three things:",[911,1061,1062,1069,1080],{},[626,1063,1064,1065,1068],{},"Create a ",[763,1066,1067],{},"tracked_application"," json object to hold your post request data",[626,1070,1071,1072,1075,1076,1079],{},"Define your ",[763,1073,1074],{},"url"," for the ",[763,1077,1078],{},"\u002Fconnect"," function",[626,1081,1082,1083,1086,1087,1090],{},"Output using ",[763,1084,1085],{},"console.log()"," following your ",[763,1088,1089],{},"connect()"," method is complete",[1092,1093,1067],"h4",{"id":1067},[600,1095,1096,1097,1100,1101,1104,1105,1108],{},"Connecting your application here is as easy as a single ",[770,1098,1099],{},"POST"," request and can be done via the Response interface of the ",[770,1102,1103],{},"Fetch Api",". Remember that you can name this whatever you would like to, just be sure to include the updated variable name in the ",[763,1106,1107],{},"options"," down below.",[623,1110,1111,1120],{},[626,1112,1113,1114,1116,1117,984],{},"When creating the ",[770,1115,1067],{}," item, you will need to use a type that is not available inside of the current ",[770,1118,1119],{},"npm_deployment",[626,1121,1122,1123,1125,1126,1129,1130,1133,1134,984],{},"This structure is the same as the ",[770,1124,1067],{}," full example you see here below, and the only difference between the unavailable type ",[770,1127,1128],{},"SeededTrackedApplication"," and the available type ",[770,1131,1132],{},"TrackedApplication"," is ",[770,1135,1136],{},"id: number",[600,1138,1139],{},"First let’s take a look at the tracked_application object:",[756,1141,1144],{"className":1142,"code":1143,"language":761},[759],"const tracked_application = {  \n    name: Pieces.ApplicationNameEnum.Brave,  \n    version: '0.0.1',  \n    platform: Pieces.PlatformEnum.Macos,  \n}\n",[763,1145,1143],{"__ignoreMap":765},[623,1147,1148,1154,1170],{},[626,1149,1150,1153],{},[770,1151,1152],{},"name",": Brave",[626,1155,1156,1159,1160,1163,1164,1163,1167],{},[770,1157,1158],{},"platform",": Depending on your current environment, you need to set the platform parameter to match your current operating system. Select between ",[763,1161,1162],{},".Macos",", ",[763,1165,1166],{},".Windows",[763,1168,1169],{},".Linux",[626,1171,1172,1173,1175,1176],{},"Be sure to double check that you have the following import added to the first few lines of your ",[763,1174,902],{}," file if you have not already: ",[763,1177,1178],{},"import * as Pieces from \"@pieces-app\u002Fclient\";",[737,1180,1182],{"id":1181},"creating-connect-function","Creating connect() Function",[600,1184,1185,1186,1188,1189,1191],{},"When your program starts, it needs to connect to Pieces OS to gain access to any functional data and to exchange information on the ",[763,1187,1002],{}," route. Now that you have your ",[763,1190,1067],{}," - let’s get into the details.",[600,1193,1194,1195,1197,1198,1200,1201,1203,1204,1206,1207,1210,1211,1213],{},"Start by defining your connect function and add the initial ",[763,1196,1078],{}," route to your function as the ",[763,1199,1074],{}," variable and then attach the ",[763,1202,1107],{}," object. Include your ",[763,1205,1067],{}," object passed into a ",[763,1208,1209],{},"JSON.stringify()"," method under the ",[763,1212,1051],{}," parameter like so:",[756,1215,1218],{"className":1216,"code":1217,"language":761},[759],"async function connect(): Promise {\n const url: string = 'http:\u002F\u002Flocalhost:1000\u002Fconnect';\n const options: {method: string, body: string} = {  \n     method: 'POST',  \n     body: JSON.stringify({ application: tracked_application}  \n    ),\n  },\n}\n",[763,1219,1217],{"__ignoreMap":765},[600,1221,1222],{},"In the future we will be providing a cleaner API for connecting your application and registering it with Pieces OS. This POST request will suffice for now.",[600,1224,1225],{},"Now let’s add few more things to this file:",[623,1227,1228,1234,1239,1242,1245],{},[626,1229,1230,1233],{},[770,1231,1232],{},"_flag: Boolean"," - for marking the success or failure of the try catch",[626,1235,1236],{},[770,1237,1238],{},"try, catch",[626,1240,1241],{},"response - for capturing the fetch response back from OS Server",[626,1243,1244],{},"data - for storing the data and logging it",[626,1246,1247],{},"e - error that is coming back if the response fails",[1092,1249,1251],{"id":1250},"running-connectthen","Running connect().then():",[600,1253,1254],{},"This will just run the connect function and then log the response in your console, inside of your browser:",[756,1256,1259],{"className":1257,"code":1258,"language":761},[759],"connect().then( __ => console.log(\"Response back from \u002Fconnect:\", __ ));\n",[763,1260,1258],{"__ignoreMap":765},[600,1262,1263],{},"Below this final line should be:",[623,1265,1266,1271,1276],{},[626,1267,1268],{},[763,1269,1270],{},"function App() ...",[626,1272,1273],{},[763,1274,1275],{},"const rootElement ...",[626,1277,1278],{},[763,1279,1280],{},"root.render(...)",[600,1282,1283],{},"Here is the entire file for you to double check your work:",[756,1285,1288],{"className":1286,"code":1287,"language":761},[759],"import * as React from \"react\";  \nimport * as Pieces from \"@pieces-app\u002Fclient\";  \nimport {createRoot} from \"react-dom\u002Fclient\";  \nconst tracked_application = {  \n    name: Pieces.ApplicationNameEnum.Brave,  \n    version: '0.0.1',  \n    platform: Pieces.PlatformEnum.Macos,  \n}  \nasync function connect(): Promise {  \n const url: string = 'http:\u002F\u002Flocalhost:1000\u002Fconnect';  \n const options: {method: string, body: string} = {  \n        method: 'POST',  \n        body: JSON.stringify({ application: tracked_application}  \n        ),    }  \n let _flag: Boolean = false;  \n try {  \n const response: Response = await fetch(url, options);  \n const data: Promise = await response.json();  \n console.log(data);  \n        _flag = true;  \n    } catch (e) {  \n console.error(e);  \n    }  \n return _flag;  \n}  \nconnect().then( __=> console.log(\"Response back from \u002Fconnect:\", __));  \nfunction App(): React.JSX.Element {  \n return (  \n              Hello Pieces Dev Community :)          \n    )}  \nconst rootElement = document.getElementById(\"root\");  \nconst root = createRoot(rootElement);  \nroot.render(  \n);\n",[763,1289,1287],{"__ignoreMap":765},[618,1291,1293],{"id":1292},"view-console-output-in-your-browser","View Console Output in your Browser",[600,1295,1296],{},"Now that everything has been correctly configured (fingers crossed) you can run your sample application and connect to Pieces OS for the first time.",[600,1298,1299],{},"Inside of your terminal at the root directory of your project, use NPM to run one of the scripts that we added to the package.json file called \"start\":",[756,1301,1304],{"className":1302,"code":1303,"language":761},[759],"npm run start\n",[763,1305,1303],{"__ignoreMap":765},[600,1307,1308,1309,1312,1313,1316],{},"And you should have the same content in the main browser window as before once this completes. But if you open up your inspector using ",[763,1310,1311],{},"cmd+option+i"," or ",[763,1314,1315],{},"ctrl+shift+c"," you will see this inside of your console:",[600,1318,1319],{},[1021,1320],{"alt":1321,"src":1322},"Your console when you've correctly followed the steps above.","https:\u002F\u002Fstorage.googleapis.com\u002Fpieces-marketing-website\u002Fimages\u002Fblog\u002Fintroducing-open-source-by-pieces\u002Fimg-002.png",[600,1324,1325],{},"This includes both the full OS response object with all of the data that you will need to get going with other endpoints, and your application is now connected and ready to go for the rest of your exploration and discovery!",[600,1327,1328,1329,1332],{},"Follow along with these next steps to learn about ",[770,1330,1331],{},"assets and formats,"," two things that are very important for managing any form of data with Pieces OS.",[618,1334,1336],{"id":1335},"getting-started-with-asset-assets","Getting Started with Asset + \u002Fassets",[600,1338,1339,1342],{},[770,1340,1341],{},"Asset"," is a very important model whose primary purpose is to manage the seeded data that comes into the application, and is stored inside of Pieces OS. Each asset is a identifiable piece of saved data, or pre-seeded data.",[600,1344,1345,1348,1349,1351],{},[770,1346,1347],{},"\u002FAssets"," is equally important, but instead of containing a single asset with parameters storing data on it, Assets serves as the list of type: ",[763,1350,1341],{}," objects that are stored there. Also you will find the operations for adding, deleting, searching, and other functions that are related to referencing a number of different snippets to make a comparison. For instance:",[600,1353,1354,1355,1358,1359,1362,1363,1365,1366,1368],{},"If I want to create a snippet (lets call it ",[763,1356,1357],{},"var","), I need to send this to the master ",[763,1360,1361],{},"Assets"," list, you would first create ",[763,1364,1357],{}," itself with the proper formats and data added to the ",[763,1367,1357],{}," object, then send the newly created SeededAsset over to the Assets list (assets\u002Fcreate). Then you will receive the full asset back as the response from the server. Cool, right?",[600,1370,1371,1372,1374,1375,1377],{},"Traditionally, ",[763,1373,1361],{}," is a linear list of flat ",[770,1376,1341],{}," objects stored in an array or list.",[623,1379,1380],{},[626,1381,1382],{},"You can use identifiers to get a specific asset from the asset list called a UUID. But you'll learn more about that later on.",[737,1384,1386],{"id":1385},"asset","\u002Fasset",[600,1388,1389],{},"Initially when creating your application, you will have no snippets saved to your project, will not be signed in, and you will have not completed onboarding. These are properties that you may see during this creation.",[623,1391,1392],{},[626,1393,1394,1395,1398],{},"Check out ",[763,1396,1397],{},"localhost:1000\u002Fassets"," while Pieces OS is running to see the empty object that is there.",[1092,1400,1402],{"id":1401},"creating-your-first-asset","Creating your First Asset",[600,1404,1405,1406,1409],{},"While creating an asset, there are some required parameters that you will need to be sure to include the proper ",[770,1407,1408],{},"format"," data.",[623,1411,1412],{},[626,1413,1414,1415,1417],{},"For each ",[763,1416,1341],{}," object, each required parameter must be included, and the Asset must be seeded before it is sent to be created.",[1092,1419,1421],{"id":1420},"seededasset","SeededAsset",[600,1423,1424,1425,984],{},"This seed data will become an asset. You can use this structure to provide data to Pieces OS, and will include fewer parameters than what you will get back in your response. Let's get started with the seeded asset formatting before we pass this over to ",[763,1426,1347],{},[600,1428,1429],{},"At the top level of this object you will see:",[623,1431,1432,1437,1442,1447,1451,1456],{},[626,1433,1434],{},[763,1435,1436],{},"schema",[626,1438,1439],{},[763,1440,1441],{},"metadata",[626,1443,1444,1446],{},[763,1445,1051],{}," (required)",[626,1448,1449,1446],{},[763,1450,1408],{},[626,1452,1453],{},[763,1454,1455],{},"discovered",[626,1457,1458],{},[763,1459,1460],{},"available",[600,1462,1463,1163,1466,1163,1468,1470,1471,1473,1474,1476,1477,1479],{},[763,1464,1465],{},"Schema",[763,1467,1441],{},[763,1469,1455],{}," and ",[763,1472,1460],{}," are all parameters that have extensive use cases, but for now we are going to focus on ",[763,1475,1051],{}," & ",[763,1478,1408],{}," - the two required formats for this object.",[600,1481,1482,1483,1486,1487,1489],{},"With each call you need to include your application object that you created earlier - and we can do this inside of the ",[763,1484,1485],{},".then()"," following the return from ",[763,1488,1089],{}," which is defined here:",[756,1491,1494],{"className":1492,"code":1493,"language":761},[759],"connect().then(__ => {  \n    full_context = __;  \n let _t = JSON.parse(JSON.stringify(full_context));  \n    app = _t.application;  \n console.log(app);  \n});\n\u002F\u002F creating the seeded asset in its simplest form.\nlet seed: SeededAsset = {  \n    application: app,  \n    format: {  \n        fragment: {  \n string: { raw: 'Testing the string param' }    \n   }\n  }\n}\n",[763,1495,1493],{"__ignoreMap":765},[737,1497,1499],{"id":1498},"assetscreate","\u002Fassets\u002Fcreate",[600,1501,1502,1503,1506,1507,1509,1510,1513,1514,1516],{},"Now before continuing forward, we will need to prepare the ",[763,1504,1505],{},"create()"," function to connect to the proper ",[763,1508,1499],{}," endpoint. Create slightly differs from connect, since previously our json object did not require any new data that was returned back from the server. In this case ",[770,1511,1512],{},"we will need to include the application data that was returned back from our initial call to"," ",[763,1515,1078],{},[770,1517,984],{},[600,1519,1048,1520,1522],{},[763,1521,1505],{}," function needs to accomplish a few things:",[911,1524,1525,1535,1542],{},[626,1526,1527,1528,1530,1531,1534],{},"Create a new asset using our simple ",[763,1529,1421],{}," configuration that we just created as the ",[763,1532,1533],{},"seed"," object",[626,1536,1537,1538,1541],{},"Send a POST request to the new ",[763,1539,1540],{},"http:\u002F\u002Flocalhost:1000\u002Fassets\u002Fcreate"," without data",[626,1543,1544],{},"Return the response back after this is completed",[600,1546,1547,1548,1550],{},"Here is what the ",[763,1549,1505],{}," function looks like in its entirety:",[756,1552,1555],{"className":1553,"code":1554,"language":761},[759],"async function create(_seed: SeededAsset): Promise {  \n const _url: string = 'http:\u002F\u002Flocalhost:1000\u002Fassets\u002Fcreate';  \n const options: {method: string, body: string} = {  \n        method: 'POST',  \n        body: JSON.stringify({asset: _seed, type: 'SEEDED_ASSET'}),  \n    }  \n try {  \n const response: Response = await fetch(_url, options);  \n const data: Promise = await response.json();  \n return data;  \n    } catch (e) {  \n console.error(e);  \n    }}\n",[763,1556,1554],{"__ignoreMap":765},[600,1558,1559,1560,1563],{},"To give you more of a true API experience with what is to come, here is what the create API endpoint loops like if you were to pass the ",[763,1561,1562],{},"_seed"," into it like so:",[756,1565,1568],{"className":1566,"code":1567,"language":761},[759],"new Pieces.AssetsApi().assetsCreateNewAsset({seed: _seed}).then(_a => {\n console.log(\"well howdy\", _a);\n    })\n",[763,1569,1567],{"__ignoreMap":765},[600,1571,1572,1573,1575],{},"Now that we have the create function created, all that is left is to call ",[763,1574,1505],{}," and log our new asset to the console!",[600,1577,1578,1579,810],{},"You can add this final call to the end of the ",[763,1580,1581],{},"connect.then()",[756,1583,1586],{"className":1584,"code":1585,"language":761},[759],"create(seed).then(__ => {  \n console.log('Asset Created! Here is it\\'s data: ', __);  \n})\n",[763,1587,1585],{"__ignoreMap":765},[1092,1589,1591],{"id":1590},"response","Response",[600,1593,1594],{},"Once you receive your response back from Pieces OS, you will notice the drastic difference in the response back here. There is quite a long list of parameters that you can store alongside your assets to make them more powerful.",[600,1596,1597],{},"The response back will look similar to the following snippet that you can see on a sharable link created from Pieces for Developers Desktop Application:",[600,1599,1600],{},[607,1601,1602],{"href":1602,"rel":1603},"https:\u002F\u002Fjwaf.pieces.cloud\u002F?p=f0114f8b8e",[611],[618,1605,1607],{"id":1606},"view-your-data","View Your Data",[600,1609,1610,1611,1614],{},"Now when you follow this guide, you will be receiving this data back from inside of your console in the browser. But if you would like to view your data incrementally through the full browser window, you can navigate to ",[763,1612,1613],{},"http:\u002F\u002Flocalhost:1000\u002Fassets"," to view a full list of snippets that have been saved.",[600,1616,1617,1618,1623,1624,1627],{},"We use ",[607,1619,1622],{"href":1620,"rel":1621},"https:\u002F\u002Fchrome.google.com\u002Fwebstore\u002Fdetail\u002Fjson-viewer\u002Fgbmdgpbipfallnflgajpaliibnhdgobh",[611],"JSON Viewer"," internally when developing and ",[770,1625,1626],{},"recommend"," using some form of web based extension that assists with reading JSON Data.",[618,1629,1631],{"id":1630},"concluding-our-sdk-first-look","Concluding our SDK First-Look",[600,1633,1634,1635,1641],{},"This is a very simple guide on how to get up and running using the @pieces.app\u002Fclient npm package and create a web environment that you can build on top of. ",[607,1636,1638],{"href":609,"rel":1637},[611],[770,1639,1640],{},"Fork this repo"," to get started and learn about the depth of possibilities you have with Pieces OS.",[600,1643,1644],{},"More guides will be coming soon around:",[623,1646,1647,1650,1653,1660],{},[626,1648,1649],{},"Using Pieces OS as a database",[626,1651,1652],{},"Creating a personal Copilot that understands your context",[626,1654,1655,1656,1659],{},"Learning about ",[763,1657,1658],{},"\u002Fsearch"," endpoints",[626,1661,1662],{},"...more!",[600,1664,1665],{},[607,1666,1667],{"href":1667,"rel":1668},"https:\u002F\u002Fyoutu.be\u002F1rU_rwUfdMw",[611],[618,1670,1672],{"id":1671},"how-to-join-and-contribute-to-the-pieces-open-source-community","How to join and contribute to the Pieces Open Source Community",[600,1674,1675],{},"Next Shivay, lead developer advocate at Pieces, emphasized the importance of community involvement for driving open source adoption for Pieces and how can the folks from the community be involved:",[623,1677,1678,1684,1690,1696,1702,1708,1714],{},[626,1679,1680,1683],{},[770,1681,1682],{},"Open-Source Channel on Discord",": We now have a dedicated open-source channel within the Pieces Discord server. This channel will serve as a platform for discussions around open-source projects, upcoming plugins, and SDKs for Pieces.",[626,1685,1686,1689],{},[770,1687,1688],{},"Community Managers",": We have users like Sophyia (.sophyia), Mason and Shivay on the Discord server who will assist with onboarding and answer questions about open-source initiatives.",[626,1691,1692,1695],{},[770,1693,1694],{},"Contributions to Open-Source Projects",": We encourage community members to contribute to the open-source projects, such as the newly announced TypeScript SDK. The Pieces team will be present to guide community members in working on open issues and accepting their suggestions about various open source projects, SDKs etc.",[626,1697,1698,1701],{},[770,1699,1700],{},"Regular Community Meetings",": We will conduct regular community meetings on Discord to introduce new members, discuss ongoing projects and issues, and answer questions. These meetings will also serve as a platform for community members to interact directly with the Pieces staff.",[626,1703,1704,1707],{},[770,1705,1706],{},"Release of SDKs",": We are planning to release a lot of SDKs soon for use by the community.",[626,1709,1710,1713],{},[770,1711,1712],{},"Open-Sourcing Plugins",": We have some plans to open-source several Pieces plugins that developers love to use, and we welcome contributions to these open-source plugins.",[626,1715,1716,1719],{},[770,1717,1718],{},"Sponsorship of Open-Source Projects",": We will in future alo explore the possibility of sponsoring certain open-source projects around Pieces being built and driven by the community.",[600,1721,1722],{},[607,1723,1724],{"href":1724,"rel":1725},"https:\u002F\u002Fyoutu.be\u002Ffj6BYv8eoxc\u002F\u002Fyoutu.be\u002F1rU_rwUfdMw",[611],[618,1727,1729],{"id":1728},"potential-of-building-with-pieces-os-open-source-community","Potential of building with Pieces OS + Open Source Community",[600,1731,1732],{},"As we approached the end of our session, we wanted to discuss the potential applications of Pieces OS and its built-in functionality. Jordan highlighted how developers can make interesting abstractions with just a small part of Pieces OS and integrate it into their projects, potentially enhancing their workflow and application tenfold.",[600,1734,1735],{},"Tsavo discussed the possibility of building web applications like extensions etc powered by Pieces OS. How, with a simple HTTP or WebSocket request, developers can call Pieces OS to run large language models on various platforms, including MacOS, Linux, and Windows.",[600,1737,1738,1739,1744],{},"Jordan also touched on the topic of starter projects, which will evolve from being just example projects to fully configured web environments. These environments will allow developers to immediately start interacting with the ",[607,1740,1743],{"href":1741,"rel":1742},"https:\u002F\u002Fcode.pieces.app\u002Fblog\u002Fintroducing-pieces-copilot",[611],"Pieces Copilot"," or save some code from somewhere and learn more about it.",[600,1746,1747,1748,1752],{},"We again emphasized the importance of community involvement in open source development. We encourage developers to ",[607,1749,1751],{"href":425,"rel":1750},[611],"join community meetings",", follow updates, and build relationships within the community.",[600,1754,1755,1756,1760],{},"Finally, we expressed our excitement about the progress made so far, including the generation of the TypeScript SDK in just 24 hours including plans to open source more SDKs in the near future and encourage everyone to ",[607,1757,1759],{"href":425,"rel":1758},[611],"join the Discord",", be active in the community, and start building cool stuff together.",[618,1762,1764],{"id":1763},"conclusion","Conclusion",[600,1766,1767],{},"We'd like to extend our heartfelt thanks to everyone who participated in our discussion about the open source initiatives at Pieces.",[600,1769,1770],{},"Our team at Pieces is committed to fostering a vibrant open source community and creating powerful tools that can assist developers worldwide.",[600,1772,1773],{},"We're particularly excited about the potential of our open source projects, including the newly announced TypeScript SDK, to enhance the functionality of Pieces and provide a platform for developers to contribute and learn. The ability to collaborate and build on these projects is a significant step forward, and we're thrilled to be part of this journey.",[600,1775,1776],{},"We're also eagerly anticipating the release of more SDKs and the growth of our open source community. The discussions and plans we've shared today are just the beginning, and we hope you share our enthusiasm. Keep an eye out for announcements about our next AMA; we're excited to delve deeper into some additional features in Pieces and expand our open source initiatives.",[600,1778,1779,1780,1784],{},"Whether you're a current user with feedback, a developer interested in contributing to our open source projects, or someone just curious about the technology, we invite you to join our next session and become part of ",[607,1781,1783],{"href":425,"rel":1782},[611],"our vibrant community on Discord","!",[600,1786,1787],{},"Once again, thank you for your invaluable participation and for being a part of our community. Your feedback and engagement are what drive us to continue innovating. Until the next AMA, happy coding!",{"title":765,"searchDepth":927,"depth":927,"links":1789},[1790,1791,1792,1793,1797,1798,1799,1800,1804,1805,1809,1810,1811,1812,1813],{"id":620,"depth":927,"text":621},{"id":691,"depth":927,"text":692},{"id":719,"depth":927,"text":720},{"id":734,"depth":927,"text":735,"children":1794},[1795,1796],{"id":739,"depth":943,"text":740},{"id":781,"depth":943,"text":782},{"id":850,"depth":927,"text":851},{"id":880,"depth":927,"text":881},{"id":987,"depth":927,"text":988},{"id":1030,"depth":927,"text":1031,"children":1801},[1802,1803],{"id":1044,"depth":943,"text":1045},{"id":1181,"depth":943,"text":1182},{"id":1292,"depth":927,"text":1293},{"id":1335,"depth":927,"text":1336,"children":1806},[1807,1808],{"id":1385,"depth":943,"text":1386},{"id":1498,"depth":943,"text":1499},{"id":1606,"depth":927,"text":1607},{"id":1630,"depth":927,"text":1631},{"id":1671,"depth":927,"text":1672},{"id":1728,"depth":927,"text":1729},{"id":1763,"depth":927,"text":1764},"AI & LLM","2023-11-01T00:00:00.000Z","Recap our latest live stream covering our initial Open Source by Pieces initiative, how you can get involved, and steps to contribute to our first SDK.",false,"md","https:\u002F\u002Fstorage.googleapis.com\u002Fpieces-marketing-website\u002Fimages\u002Fblog\u002Fintroducing-open-source-by-pieces\u002Fhero.jpeg",{},"\u002Fblog\u002Fintroducing-open-source-by-pieces",{"title":591,"description":1816},"blog\u002Fintroducing-open-source-by-pieces","m9PAmqgfiYtWZSNzEOwHZ61F_sPKs30tw3mJxV52JvU",{"id":1826,"title":592,"body":1827,"description":765,"draft":1817,"extension":1818,"meta":1831,"navigation":20,"path":1832,"photo":1833,"photoAlt":594,"seo":1834,"stem":1835,"__hash__":1836},"authors\u002Fauthors\u002Fthe-pieces-team.md",{"type":597,"value":1828,"toc":1829},[],{"title":765,"searchDepth":927,"depth":927,"links":1830},[],{},"\u002Fauthors\u002Fthe-pieces-team","https:\u002F\u002Fstorage.googleapis.com\u002Fpieces-marketing-website\u002Fimages\u002Fauthors\u002Fthe-pieces-team.png",{"title":592,"description":765},"authors\u002Fthe-pieces-team","_2O_QA8d8RjXlBp0ck4PWDG6iA74zW1kN0R0gkn2Lls"]