Skip to content

Anonyfox/raven-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

RavenJS Landscape

RavenJS πŸ¦…

Zero-dependency JavaScript libraries for modern web development. Built by developers who've learned that survival comes from platform mastery, not framework dependency.

Website Documentation License Zero Dependencies ESM Only Node.js

How Ravens Hunt

import { html, css } from "@raven-js/beak";
import { Router, DevServer, Logger, Assets } from "@raven-js/wings";

// Template with zero dependencies
const styles = css`
  .app {
    padding: 2rem;
    color: #333;
  }
  .title {
    font-size: 2rem;
    font-weight: bold;
  }
  .features {
    list-style: none;
    padding: 0;
  }
  .feature {
    padding: 0.5rem 0;
  }
`;

const HomePage = () => {
  const advantages = [
    "Zero dependencies",
    "Platform primitives",
    "AI-native design",
  ];

  return html`
    <style>
      ${styles}
    </style>
    <div class="app">
      <h1 class="title">Ravens build. Others talk.</h1>
      <ul class="features">
        ${advantages.map(
          (feature) => html`<li class="feature">βœ“ ${feature}</li>`
        )}
      </ul>
    </div>
  `;
};

// Routing with production-ready middlewares
const router = new Router();
router.useEarly(new Logger()); // Request logging
router.use(new Assets({ assetsDir: "public" })); // Static files
router.get("/", (ctx) => ctx.html(HomePage()));

// Server in milliseconds, not minutes
const server = new DevServer(router);
await server.listen(3000);

Pro tip: Install the RavenJS VS Code extension for intelligent syntax highlighting and IntelliSense in your templates.

πŸš€ Advanced Production Setup β€” Full-scale deployment with clustering, SSL, and complex rendering
import { html, css } from "@raven-js/beak";
import {
  Router,
  ClusteredServer,
  Logger,
  Assets,
  generateSSLCert,
} from "@raven-js/wings";

// Advanced templating with complex data structures
const todos = [
  { id: 1, task: "Master platform primitives", done: true },
  { id: 2, task: "Eliminate dependency vulnerabilities", done: true },
  { id: 3, task: "Achieve apex performance", done: false },
];

const styles = css`
  .todo-app {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
  }
  .todo {
    display: flex;
    gap: 1rem;
    padding: 0.5rem 0;
  }
  .done {
    opacity: 0.6;
    text-decoration: line-through;
  }
`;

const TodoApp = () => html`
  <style>
    ${styles}
  </style>
  <div class="todo-app">
    <h2>πŸ¦… Raven Task Manager</h2>
    ${todos.map(
      (todo) => html`
        <div class="todo ${todo.done ? "done" : "pending"}">
          <span>${todo.done ? "βœ…" : "β­•"}</span>
          <span>${todo.task}</span>
        </div>
      `
    )}
  </div>
`;

// Production-grade router with full middleware stack
const router = new Router();
router.useEarly(new Logger({ production: true, includeHeaders: false }));
router.use(new Assets({ assetsDir: "public", maxAge: "1y" }));
router.get("/", (ctx) => ctx.html(TodoApp()));

// Clustered HTTPS server with auto-generated certificates
const { privateKey, certificate } = await generateSSLCert({
  commonName: "ravenjs.app",
  organization: "Apex Productions",
});

const server = new ClusteredServer(router, {
  sslCertificate: certificate,
  sslPrivateKey: privateKey,
});

await server.listen(443);

Next in the hunt: Three key tools complete the predator's arsenal β€” Hatch (CLI to bootstrap new apps instantly), Fledge (package apps into various deliverables), and Soar (ship directly to cloud platforms).

πŸ¦… ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ πŸ¦…

Raven Intelligence

πŸ›‘οΈ Zero-Dependency Security ⚑ Native-Speed Performance 🧠 AI-Native Intelligence
Every package is fortress-isolated with no external attack vectors or supply chain vulnerabilities. Platform primitives deliver millisecond builds and runtime speed without transpilation taxes. Self-documenting APIs teach both humans and machines, designed for AI collaboration from the ground up.

The Flock

🦜 Beak β€” Templating & Rendering

Zero-dependency templating for HTML, CSS, SQL, Markdown, and JavaScript. XSS protection built-in. Component architecture without framework overhead.

πŸ¦… Wings β€” Isomorphic Routing

Universal routing that works in server, browser, and CLI environments. Same route definitions everywhere. No framework lock-in, no configuration cancer.

⚑ ─────────────────────── ⚑

Territory Expansion

Ravens coordinate through collective intelligence. More packages emerge as the murder grows stronger.

πŸ“– Read the RavenJS Codex - The witnessed wisdom of framework wars and survival strategies 🏠 Explore the full ecosystem - Complete roadmap of planned territories


πŸ”— Quick Access

πŸ“š Documentation β€’ 🐦 Codex β€’ 🏠 Packages β€’ ⚑ Examples


πŸ¦… Support Raven Intelligence

If RavenJS sharpens your hunt, consider supporting its evolution:

GitHub Sponsors Buy Me a Coffee

Your sponsorship keeps RavenJS zero-dependency, platform-native, and AI-ready.


Crafted with predatory precision by Anonyfox β€’ Licensed under MIT

"In a world obsessed with the next shiny framework, ravens build what endures."

About

featherlight web framework and libraries

Resources

License

Stars

Watchers

Forks

Packages

No packages published