UNPKG

@microwiseai/claude-web-server

Version:

Local server for Web Claude Code - Unofficial web interface for Claude Code

29 lines (23 loc) 1.09 kB
#!/usr/bin/env node const { execSync } = require('child_process'); async function postInstall() { console.log('\n🎉 Claude Web Server installed successfully!\n'); // Check if this is a global install const isGlobal = process.env.npm_config_global === 'true'; if (!isGlobal) { console.log('ℹ️ For system-wide usage, install globally with: npm install -g @microwiseai/claude-web-server'); return; } // Since we can't use inquirer in postinstall (dependency issues), just show instructions console.log('\n✅ Setup complete!\n'); console.log('Next steps:'); console.log('1. Start the server: claude-web-server'); console.log('2. Open in browser: https://claude.microwiseai.com'); console.log('3. Or run in background: claude-web-server start --daemon'); console.log('\nTo enable auto-start: claude-web-server autostart --enable'); console.log('\nFor more options: claude-web-server --help'); } // Only run if this is actually a post-install script if (process.env.npm_lifecycle_event === 'postinstall') { postInstall().catch(console.error); }