neuron-explorer
Qwen3.5‑4B 전용 조향형 뉴런 탐색기, 모든 MLP 뉴런을 밀어 결과를 보관·탐색
Cloudflare Workers·D1 기반 자체 백엔드, 정책을 SQL로 컴파일, 향상된 인증·자동 REST·읽기 전용 MCP 서버
Self-hosted backend on Cloudflare Workers and D1: policies compiled to SQL, Better Auth, auto REST and a read-only MCP server.
개발 도구TypeScript · JavaScriptGitHub @ozerozdas온라인운영자 미확인
써 보셨어요? 한 번만 눌러 주세요. 로그인은 필요 없어요.
개인 계정의 공개 저장소 소유자는 GitHub로 로그인해 운영자를 확인하고 소개를 직접 관리할 수 있습니다. 관리자 승인은 필요하지 않습니다.
로그인한 뒤 확인 파일을 만들어 이 저장소의 기본 브랜치에 30분 안에 커밋해 주세요. 다른 브랜치나 포크의 파일은 인정하지 않습니다. 파일을 올린 뒤 아래에서 확인하면 관리자 승인 없이 관리할 수 있습니다. 자격을 유지하려면 파일을 남겨 두세요.
로그인이 필요하면 로그인 화면으로 이동합니다. 로그인 후 이곳으로 돌아와 원하는 확인 버튼을 다시 눌러 주세요.
프로젝트 폴더에서 /nomorevibe verify를 실행하면 소유권을 확인하고 소개를 직접 관리할 수 있습니다.
1분 만에 확인하기Self-hosted, agent-safe backend on Cloudflare Workers + D1: policies compiled to SQL, Better Auth, auto REST and a read-only MCP server.
저장소 README에서 가져옴
README 전체를 불러오는 중입니다.
README 전문 보기 ↗A self-hosted backend on Cloudflare: one Worker and one D1 database in your account serve REST endpoints for your tables. Every endpoint is protected by policies written in TypeScript and compiled to SQL. An MCP server lets AI agents inspect exactly what production enforces.
WHERE clauses, so pagination and counts stay correct.Status: v0.4.1 (changelog). Early, but deployed and working. Upgrading from 0.4.0? See the upgrade guide. Read Status and limits before using it for anything important.
Requires Node 20+ and pnpm.
npm create @castra-kit@latest my-app
cd my-app
cp .dev.vars.example .dev.vars # set BETTER_AUTH_SECRET: openssl rand -base64 32
pnpm db:migrate:local
pnpm dev # http://localhost:8787/health
Deploy to your Cloudflare account (token permissions: docs/cloudflare-token.md):
CLOUDFLARE_API_TOKEN=... pnpm run deploy
The full walkthrough, including your first request and your first policy, is in Getting started.
import { authenticated, defineConfig, isPublic, owner, role } from "@castra-kit/core";
export default defineConfig({
database: "d1",
roles: ["admin", "editor"],
tables: {
posts: {
read: isPublic().where((q) => q.eb("status", "=", "published")).or(owner("author_id")),
create: authenticated(),
update: owner("author_id").or(role("editor", "admin")),
delete: role("admin"),
fields: { author_id: { setBy: "server" } },
},
},
});
// Any table not listed here is never exposed.
| Getting started | Scaffold, run, first request, first policy, deploy |
| Concepts and configuration | Rules, write checks, field rules, config reference |
| REST API | Routes, filters, sorting, pagination, includes, errors |
| Auth | Better Auth, sessions, roles, API keys |
| MCP | Tools, local stdio server, remote /mcp, tokens and scopes |
| CLI | castra generate, provision, migrate, deploy, doctor, mcp |
| Rate limiting | Per-IP write limits, WAF rule for reads |
| Status and limits | What is verified, D1 limits, what is out of scope |
| Security | Threat model, guarantees, known issues |
| Problem types | Every error code the API returns |
| Architecture · |
Questions and ideas: Discussions. Troubleshooting and FAQ: Wiki.
| Package | |
|---|---|
@castra-kit/core | Policy engine, schema snapshot, REST router, OpenAPI |
@castra-kit/auth | Better Auth wiring, roles, API keys |
@castra-kit/mcp | MCP tools, stdio server, /mcp route |
@castra-kit/app | createCastraApp: the Worker wiring in one call |
@castra-kit/cli | The castra command |
@castra-kit/create | Project scaffolder |
See CONTRIBUTING.md. Report vulnerabilities privately, as described in SECURITY.md.
MIT © Mehmet Özer Özdaş
| Design and one record per decision |