Socket
Book a DemoInstallSign in
Socket

@soymaycol/mayreplit

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@soymaycol/mayreplit

Mantén tu Replit activo 24/7 sin APIs - Creado por SoyMaycol

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

@soymaycol/MayReplit

Mantén tu Replit activo 24/7 sin necesidad de APIs o servidores Express. Simple, eficiente y fácil de usar.

Creado por: SoyMaycol
GitHub: SoySapo6

🚀 Instalación

npm install @soymaycol/mayreplit

📋 Requisitos

  • Node.js 16+
  • Un archivo de cookies de Replit (cookies.json)

🎯 Uso Básico

import MayReplit from '@soymaycol/mayreplit'

const mayReplit = new MayReplit()

// Configurar tu Replit
mayReplit
  .setReplitUrl('https://replit.com/@tuusuario/TuProyecto')
  .setCookiesPath('./mis-cookies.json')
  .setScreenshotInterval(5 * 60 * 1000) // 5 minutos

// Iniciar el mantener activo
mayReplit.start().catch(console.error)

⚙️ Configuración Avanzada

import MayReplit from '@soymaycol/mayreplit'

const mayReplit = new MayReplit({
  replitUrl: 'https://replit.com/@tuusuario/TuProyecto',
  cookiesPath: './cookies.json',
  screenshotInterval: 3 * 60 * 1000, // 3 minutos
  headless: true // false para ver el navegador
})

mayReplit.start().catch(console.error)

📸 Obtener Screenshots

// Después de iniciar
setTimeout(() => {
  const screenshot = mayReplit.getScreenshot()
  if (screenshot) {
    console.log('📸 Screenshot disponible:', screenshot.length, 'bytes')
  }
}, 10000) // Esperar 10 segundos

🛑 Detener el Servicio

// Para detener correctamente
process.on('SIGINT', async () => {
  await mayReplit.stop()
  process.exit(0)
})

📁 Configuración de Cookies

  • Inicia sesión en Replit en tu navegador
  • Abre las herramientas de desarrollador (F12)
  • Ve a la pestaña "Application" → "Cookies"
  • Copia las cookies y guárdalas en un archivo JSON:
[
  {
    "name": "nombre_cookie",
    "value": "valor_cookie",
    "domain": ".replit.com",
    "path": "/",
    "expires": 1234567890,
    "httpOnly": false,
    "secure": true,
    "sameSite": "Lax"
  }
]

📖 API

Constructor

new MayReplit(options)

Opciones:

  • replitUrl (string): URL de tu Replit
  • cookiesPath (string): Ruta al archivo de cookies (default: './cookies.json')
  • screenshotInterval (number): Intervalo de screenshots en ms (default: 5 * 60 * 1000)
  • headless (boolean): Ejecutar navegador sin interfaz (default: true)

Métodos

  • setReplitUrl(url): Establece la URL del Replit
  • setCookiesPath(path): Establece la ruta de las cookies
  • setScreenshotInterval(ms): Establece el intervalo de screenshots
  • setHeadless(boolean): Configura modo headless
  • start(): Inicia el servicio
  • getScreenshot(): Obtiene el último screenshot
  • stop(): Detiene el servicio

Creado con ❤️ por SoyMaycol

Keywords

replit

FAQs

Package last updated on 14 Jun 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts