Files
colanode/scripts
Hakan Shehu 30e15e4bd3 Web version (#43)
* Create client package
* Create the UI package
* Init web app
* Use isomorphic 'ws' for web sockets
* File and asset implementations
* Use Opfs SAH version of sqlite in browser
* Generate Svg sprites for emojis and icons
* Include emojis sprite
* Improve and refactor assets
* More assets improvements
* Implement emoji and icons db import as readonly
* Improve import paths
* Handle concurrency limits for sqlite
* Fix event broadcast in web
* Pass windowId for subscribe and unsubscribe queries in desktop
* Remove asset context
* Implement avatar upload/download with the new structure
* Improve file handlings
* Move the necessary dependencies to client and ui packages
* Update packages
* Improve open file dialog
* Make sure database files are deleted in browser
* Improve avatar loading
* Improve file loading
* Fix some assets
* Implement asset caching for offline access
* Small fixes and improvements
* Use server instead of pre signed urls for file upload/download
* Cleanup some client related metadata
* Switch Axios with ky
* Refactor mutation results
* Minor concurrency fix
* Refactor web sockets
* Improve file uploading
* Handle connection close on server
* Use stream for downloading the file
* Add config options for cors
* Update document in all tabs on local change
* Include necessary icons for web
* Update docker compose
* Implement server upgrade required component
* Use correct client type and platform in web and desktop
* Improve service worker
* Improve versioning
* Fix an import
* Minor fixes
* Update some user endpoints
* Minor endpoint changes
* Enable app badge for desktop
* Add error handling in some database operations
* Update mutation naming convention
* Update query naming convention
* Update event and some metadata naming conventions
* Update event and job naming conventions in server
* Update Github workflow files
* Restructure assets directory
* Update packages
* Upgrade to Zod v4
* Upgrade to react 19
* Upgrade to tailwind v4
* Minor ui improvements
* Fix some cursor pointers
* Add browser not supported message in web
* Enhance server create flow, allow insecure connections and custom api paths
* Execute electron-rebuild as postinstall command
* Update docker compose
2025-06-11 00:14:17 +02:00
..
2025-06-11 00:14:17 +02:00
2025-06-11 00:14:17 +02:00
2025-01-08 22:18:07 +01:00

Colanode scripts

This folder contains a collection of one-time or utility scripts that support the Colanode application. These scripts are not part of the main application runtime; rather, they are used to generate assets, seed data, or perform other setup tasks.

Overview

  • Emoji Generator (/src/emojis) - Generates emoji files and metadata used in Colanode app.

  • Icons Generator (/src/icons) - Generates icon files and metadata used in Colanode app.

  • Seed Script (/src/seed) - Automatically creates dummy data for testing or local development. This includes:

    • Creating user accounts
    • Generating sample workspaces
    • Populating these workspaces with example content like pages, databases, and messages
  • Postinstall Script (/src/postinstall) - a script that runs immediately after you install dependencies (via npm install).

Usage

Each script can be run independently by calling the corresponding npm script in the root of scripts directory (as defined in the package.json):

  • Generate Emojis:
    npm run generate:emojis
    
  • Generate Icons:
    npm run generate:icons
    
  • Seed Data:
    npm run seed
    

The postinstall script typically runs automatically after each npm install, but you can also manually run it if needed:

node --no-warnings --loader ts-node/esm scripts/src/postinstall/index.ts