crafta

Modular backend toolkit that acts as the backbone for Crafta ecosystem packages.

stablecraftacore

Overview

crafta core provides the runtime shape for package-based backend architecture.

  • Framework-like productivity with library-like flexibility
  • Composable middleware pipeline for large apps
  • Designed for incremental package adoption

Positioning

Crafta core is designed for teams that want production patterns without locking into monolith framework constraints.

  • Small primitives with ecosystem-level consistency
  • Supports drop-in auth and communication modules
  • Keeps business logic in your app, not hidden magic

Install

Start with a minimal Node.js app and install crafta from npm.

  • npm install crafta
  • Create app instance and plug packages
  • Expose only the routes your product needs

Minimal core setup

const { crafta } = require("crafta");

const app = crafta();
app.get("/health", (_req, res) => res.json({ ok: true }));
app.listen(3000);

Plugin Model

Packages behave like modules that can be switched on and configured with simple JSON objects.

  • Shared initialization shape across packages
  • Easy environment-aware toggles
  • Stable extension path as modules grow

Deployment

Crafta core is deployment-agnostic and can run in containerized or VM environments.

  • Works with Node process managers
  • Supports horizontal scaling with stateless APIs
  • Compatible with CI/CD release workflows

Best Practices

Use modular boundaries, central error handling, and observability from day one.

  • Keep domain logic in separate services
  • Use per-module config contracts
  • Track auth, data, and messaging events centrally

Next Steps

Continue with implementation in your app, then validate flows using staging-first checks before production rollout.