Codync
免费开源的 1:1 Grok Bot 与 Muse 替代方案。可在 iPhone、Mac 或 Linux 桌面上将 Claude 代码、Codex、Cursor 以及 40 多个编码代理作为持久机器人使用。支持群组聊天、线程、应用。
AI 翻译
尚未收集仓库信息。
尚未检测到更新。GitHub 发布版本后会显示在这里。
Schema-first REST framework for route-first TypeScript APIs
翻译准备中
取自仓库 README
正在加载完整 README。
查看完整 README ↗Routa is a schema-first, OpenAPI-aware REST framework for new TypeScript APIs.
The framework is built around one idea: the HTTP contract should be explicit in source. Route files define inputs, responses, middleware, metadata, and handler boundaries. From that contract, Routa can generate typed handlers, runtime validation, and OpenAPI. Routa can also start from an OpenAPI file and scaffold the first version of the source contract.
Routa v0 is intentionally narrow:
.yaml and .json inputThe official project creation command is:
pnpm create routa-ts@latest
Routa routes are filesystem-backed. Folders map to URL segments, and each route.ts file owns the methods for that path.
src/routes/users/route.ts
src/routes/users/$id/route.ts
Each method is declared as a route contract:
export default createRouteRoot("/users")({
post: createRoute({
input: {
body: CreateUserSchema,
},
responses: {
success: {
status: 201,
schema: UserSchema,
},
},
run: async ({ input, ctx }) => {
return users.createUser(input.body, ctx);
},
}),
});
Handlers return named outcomes from the declared response map. Business logic stays in application-owned services, modules, use cases, or domain code. Routa owns the HTTP boundary: routing, validation, middleware context, typed responses, and OpenAPI.
docs/ Domain decisions and historical design material
.dex/ Local V1 maps, specifications, and tickets (gitignored)
packages/core/ @routa-ts/core framework API
packages/cli/ @routa-ts/cli routa command
packages/create-routa-ts/ create-routa-ts package for pnpm create routa-ts
examples/basic-api/ End-to-end Routa example app
examples/full-api/ Middleware, groups, and tenant-scoped example app
scripts/ Build, packaging, and CI helper scripts
The repo uses pnpm workspace metadata and Vite Plus for development tooling and task orchestration.
Developing Routa requires Node.js 24.11+ on the Node 24 line, or Node.js 26+,
and Vite Plus 1.3.0. The repository includes
.nvmrc and pins the backing package manager to pnpm 11.9.0 in package.json.
See Contributing for Vite Plus installation.
vp install --frozen-lockfile
vp run verify
vp run verify matches the full local pre-PR workflow. During iteration, use vp run quality
for formatting, typechecking, and unit tests. Vite Task caches package builds; validation
always executes.
Routa has a complete v0 implementation baseline in this repo. Implementation, tests, and public documentation define shipped behavior.
Active V1 priorities, specifications, and implementation tickets live in the project-local Dex tracker. Permanent product language and architectural decisions remain in GLOSSARY.md and docs/adr/.
Routa is released under the MIT License.