
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Alepha is a convention-driven TypeScript framework for building robust, end-to-end type-safe applications, from serverless APIs to full-stack React apps.
A convention-driven TypeScript framework for building type-safe full-stack applications.
npx @alepha/cli create my-app
Or manually:
npm install alepha
Alepha is an opinionated framework that handles everything from database to frontend. It uses a descriptor-based architecture ($action
, $page
, $repository
, etc.) and enforces type safety across the entire stack.
import { run } from "alepha";
import { $action } from "alepha/server";
class App {
hello = $action({
handler: () => "Hello world!",
})
}
run(App);
import { $action } from "alepha/server";
import { t } from "alepha/core";
class UserController {
getUser = $action({
schema: {
params: t.object({ id: t.string() }),
response: t.object({
name: t.string(),
email: t.string()
})
},
handler: async ({ params }) => {
return { name: "John", email: "john@example.com" };
}
});
}
import {$entity, $repository, pg} from "alepha/postgres";
import {t, Static} from "alepha";
export const users = $entity({
id: pg.primaryKey(),
name: t.string(),
email: t.string()
});
type CreateUser = Static<typeof users.$insertSchema>;
class UserService {
users = $repository(users);
async create(data: CreateUser) {
return await this.users.create(data);
}
}
import { $page } from "alepha/react";
class HomePage {
index = $page({
component: () => <div>Hello from React SSR!</div>
});
}
$action
, $page
, $repository
, $cache
, $email
, etc.$inject()
👉 For more information, please visit the documentation.
MIT
FAQs
Alepha is a convention-driven TypeScript framework for building robust, end-to-end type-safe applications, from serverless APIs to full-stack React apps.
We found that alepha demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.