Tilekit is the personal software toolkit that powers Tiles notebook. This work is exploratory in nature and not meant for external use.
This project demonstrates how to integrate with mcp.run serverlets. It includes:
- Session management with MCP
- Calling MCP tools with proper error handling
- Fallback to mock implementations for demonstration purposes
- On-device execution of gemma-3-4b-it-GGUF as the model provider for MCP servlets (WIP)
- ElectricSQL integration for CRDTs and client side SQLite
- Node.js (v18 or higher)
- npm (comes with Node.js)
-
Clone the repository:
git clone https://github.com/yourusername/tiles.git cd tiles
-
Install dependencies:
npm install
To run the development server:
npm run start
This will start the server at http://localhost:3000.
To build the project:
npm run build
This will:
- Build the JavaScript bundle
- Extract the HTML, JavaScript, and manifest from the source code
- Save them to the
build
directory
To serve the built files:
npm run serve
This will start a server at http://localhost:3000 that serves the files from the build
directory.
The project includes a WASM runner demo in the packages/wasm-runner
directory. To run the demo:
-
Navigate to the wasm-runner directory:
cd packages/wasm-runner
-
Install dependencies:
npm install
-
Start the development server:
npm run dev
This will start the WASM runner demo at http://localhost:3000. The demo showcases:
- WASM module execution in the browser
- Integration with MCP serverlets
- Real-time code execution and visualization
index.ts
: Main entry point for the applicationbuild.js
: Build script to extract HTML and JavaScript from index.tsserver.js
: Server script to serve the built filesbuild/
: Directory containing the built filesindex.html
: HTML file for the web appletapplet.js
: JavaScript file for the web appletmanifest.json
: Manifest file for the web appletindex.js
: Built JavaScript bundle
packages/wasm-runner/
: WASM execution demo and playgroundpages/
: Next.js pages and componentslib/
: Core WASM execution logicpublic/
: Static assets
Apache License 2.0. © 2025 Tiles HQ. All rights reserved.