Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
IT Nachrichten22. September(22.09.2026 um 00:05 Uhr)
IT NachrichtenLizenzprobleme: AnyDesk und TeamViewer(22.09.2026 um 00:30 Uhr)
Apple iOS & macOSApple's iOS 27.2 beta 2 reveals new anti-snatching protections(22.09.2026 um 00:27 Uhr)
AI & KI NachrichtenUC Irvine to Study AI for Writing Instruction(21.09.2026 um 23:31 Uhr)
AI & KI NachrichtenBurnham to call for global effort to control threats posed by AI(21.09.2026 um 23:30 Uhr)
IT Nachrichten22. September(22.09.2026 um 00:05 Uhr)
IT NachrichtenLizenzprobleme: AnyDesk und TeamViewer(22.09.2026 um 00:30 Uhr)
Apple iOS & macOSApple's iOS 27.2 beta 2 reveals new anti-snatching protections(22.09.2026 um 00:27 Uhr)
AI & KI NachrichtenUC Irvine to Study AI for Writing Instruction(21.09.2026 um 23:31 Uhr)
AI & KI NachrichtenBurnham to call for global effort to control threats posed by AI(21.09.2026 um 23:30 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

Stop Containerizing Your 50-Line Scripts

We've all been there. You need to deploy a simple webhook handler — maybe 50 lines of code. What do you do? Write a Dockerfile Set up docker-compose.yml Pull a 500MB Node.js base image Install dependencies Configure environment v…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!

We've all been there. You need to deploy a simple webhook handler — maybe 50 lines of code. What do you do?




  • Write a Dockerfile

  • Set up docker-compose.yml

  • Pull a 500MB Node.js base image

  • Install dependencies

  • Configure environment variables

  • Set up a reverse proxy



For 50 lines of code.



Your VPS bloats with container layers. Each micro-task runs in its own Node.js process eating RAM. Updating a single line feels like a deployment ritual.






What if there was a simpler way?



M3M (Mini Services Manager) is a single Go binary that acts as a private runtime for your JavaScript services. No containers. No npm dependency hell. No cloud bills for things that should run on your $5 VPS.






Show Me the Code



Here's a complete service with an API endpoint and a scheduled task:




$service.boot(() => {
const users = $database.collection('users');

// HTTP Endpoint
$router.get('/users', (ctx) => {
return { users: users.find({}) };
});

$router.post('/users', (ctx) => {
const user = users.insert(ctx.body);
return { user };
});

// Cron Task (Every hour)
$schedule.every('1h', () => {
$logger.info('Total users:', users.count({}));
});
});

$service.start(() => {
$logger.info('Service is ready!');
});






That's it. No imports. No package.json. No build step. Write it in the browser, hit Save, and it runs.






Built-in Batteries



Every service has access to powerful modules via the $ prefix:
































Category Modules
Core
$service, $router, $schedule, $logger, $env
Data
$database, $storage, $goals
Network
$http, $mail
Utils
$crypto, $encoding, $utils, $validator
Media
$image, $draw





Routing with Middleware






$service.boot(() => {
// Auth middleware
const auth = (ctx) => {
const token = ctx.header('Authorization');
if (!token) {
ctx.status(401);
return { error: 'Unauthorized' };
}
};

// Protected routes
const api = $router.group('/api', auth);
api.get('/profile', (ctx) => {
return { user: ctx.get('user') };
});
});









Database with MongoDB-style Queries






const posts = $database.collection('posts');

// Insert
const post = posts.insert({
title: 'Hello World',
views: 0,
tags: ['intro', 'first']
});

// Query with operators
const popular = posts.find({
views: { $gte: 100 },
tags: { $contains: 'featured' }
});

// Update
posts.update(
{ _id: post._id },
{ $inc: { views: 1 } }
);









Scheduled Tasks






// Every 5 minutes
$schedule.every('5m', () => {
$logger.info('Checking for updates...');
});

// Cron expression
$schedule.cron('0 9 * * *', () => {
// Every day at 9 AM
sendDailyReport();
});

// One-time delayed execution
$schedule.after('30s', () => {
$logger.info('30 seconds have passed!');
});









HTTP Client






const response = $http.post('https://api.example.com/webhook', {
event: 'user_signup',
data: { email: '[email protected]' }
}, {
headers: { 'X-API-Key': $env.get('API_KEY') }
});

if (response.ok) {
$logger.info('Webhook sent successfully');
}









Service Lifecycle



M3M services have three lifecycle phases:




// 1. Boot: Initialize routes, schedules, connections
$service.boot(() => {
$router.get('/health', () => ({ status: 'ok' }));
});

// 2. Start: Service is ready, load initial data
$service.start(() => {
$logger.info('Service started!');
});

// 3. Shutdown: Clean up before stopping
$service.shutdown(() => {
$logger.info('Goodbye!');
});









Performance That Makes Sense



M3M runs comfortably on a $5/month VPS with 512MB RAM — with 20+ active services. The entire binary (including the web UI) is ~30MB.



Compare that to a typical setup where each Node.js container takes 100-200MB minimum.






Getting Started






Install






# Clone
git clone https://github.com/levskiy0/m3m.git
cd m3m

# Build (requires Go 1.24+, Node.js 20+)
make build

# Create first admin user
./build/m3m new-admin [email protected] yourpassword

# Run
./build/m3m serve









Real World Use Cases



M3M shines for:





  • Webhook handlers — Receive and process webhooks from Stripe, GitHub, etc.


  • Telegram/Discord bots — Self-hosted bots without the container tax


  • Internal APIs — Quick REST APIs for your tools


  • Scheduled tasks — Cron jobs with a nice UI


  • Data processors — ETL pipelines, scrapers, aggregators


  • Monitoring — Health checks, alerting, metrics col
    lection






Claude Code Integration



M3M includes an MCP server for Claude Code. Once connected, Claude knows the entire M3M API and can help write your services:




make build-mcp
claude mcp add m3m-api ./build/m3m-mcp






Now you can ask Claude: "Write me an M3M service that monitors a website and sends alerts via email when it's down" — and it will generate working code using the correct $http, $schedule, and $mail modules.






The Philosophy



M3M is for developers who want to:




  • Write logic in the browser, hit Save, and walk away

  • Not manage Docker for every 50-line script

  • Keep server resources for actual work

  • Avoid npm dependency hell for micro-tasks



It's not trying to replace Kubernetes or compete with serverless platforms. It's a practical tool for the practical developer who has better things to do than write Dockerfiles.

Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Stop Containerizing Your 50-Line Scripts

Thematisch verwandte Begriffe: Stop, Containerizing, Your, 50Line · 6 Treffer

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-49449 | Joplin is an open source note-taking and to-do application that organise…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick