
Security News
PodRocket Podcast: Inside the Recent npm Supply Chain Attacks
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
@baeta/cli
Advanced tools
Building GraphQL APIs shouldn't be complicated. Baeta is a modern, modular, open-source GraphQL framework designed with flexibility in mind. It follows a granular approach where you only add what you need, helping developers focus on what matters most - creating powerful, scalable APIs without the boilerplate.
Baeta makes it easy to build better GraphQL APIs while staying flexible. Here's how:
Granular and Progressive: Start small and add features as you need them. Whether you're building a simple API or a complex system, Baeta scales with your needs.
Modular architecture: Baeta's modular design allows you to organize your GraphQL API into smaller, more manageable modules that can be added or removed as needed. This makes it easier to maintain and scale your API over time.
Schema-first approach: With Baeta, you define your schema first, and then logic and resolvers. This approach ensures a consistent and well-defined API for your clients and reduces boilerplate code.
type User {
id: ID!
name: String!
email: String!
age: Int
}
input UserWhereUnique {
id: ID
email: String
}
type Query {
user(where: UserWhereUnique!): User!
users: [User!]!
}
import { getUserModule } from "./typedef";
const { Query } = getUserModule();
Query.user(({ args }) => {
return dataSource.user.find(args.where);
});
Query.users(() => {
return dataSource.user.findMany();
});
const { Query, Mutation } = getUserModule();
Query.users.$auth({
$or: {
isPublic: true,
isLoggedIn: true,
},
});
import { getUserModule } from "./typedef";
const { User, Query } = getUserModule();
export const userCache = User.$createCache();
Query.user.$useCache(userCache);
Query.users.$useCache(userCache);
Baeta is compatible with all GraphQL servers, which makes it easy to integrate with your existing stack. It works seamlessly with popular GraphQL server libraries such as Graphql Yoga and Apollo Server, as well as other popular tools like Prisma, Drizzle and Kysely.
Baeta's development tools are built for Node.js, but the runtime code is environment-agnostic. This means your Baeta applications can run anywhere JavaScript runs, including:
Baeta was inspired by several amazing projects and people in the GraphQL ecosystem. Check out our Credits page to learn more about the individuals and projects that influenced Baeta's development.
Baeta is licensed under the MIT License.
FAQs
Unknown package
The npm package @baeta/cli receives a total of 22 weekly downloads. As such, @baeta/cli popularity was classified as not popular.
We found that @baeta/cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers 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
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
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.