Преглед изворни кода

docs(license): note Apache-2.0 upstream fork — LICENSE header + NOTICE + README license section

Keeps upstream Apache-2.0 + Vercel copyright intact; adds fork attribution
(vercel-labs/json-render) and an Apache §4(b) modifications notice.

Session-Id: 481d7b9c

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
root пре 3 недеља
родитељ
комит
8fc30559f2
3 измењених фајлова са 47 додато и 0 уклоњено
  1. 12 0
      LICENSE
  2. 31 0
      NOTICE
  3. 4 0
      README.md

+ 12 - 0
LICENSE

@@ -1,3 +1,15 @@
+================================================================================
+ This project is a FORK of json-render by Vercel Inc.
+   Upstream:       https://github.com/vercel-labs/json-render
+   Original work:  Copyright 2025 Vercel Inc.
+   Modifications:  Copyright 2026 pch007 and contributors
+
+ Both the original work and the modifications in this fork are licensed under
+ the Apache License, Version 2.0 (full text below). The fork adds a real-`src`
+ Image, a Pressable component, and self-contained Lightbox & Modal components;
+ see the NOTICE file and README for a description of the changes.
+================================================================================
+
                                  Apache License
                            Version 2.0, January 2004
                         http://www.apache.org/licenses/

+ 31 - 0
NOTICE

@@ -0,0 +1,31 @@
+json-render — Oivo fork
+Copyright 2026 pch007 and contributors
+
+This product is a fork of "json-render" developed by Vercel Inc.
+  Upstream repository: https://github.com/vercel-labs/json-render
+  Original work:       Copyright 2025 Vercel Inc.
+
+Licensed under the Apache License, Version 2.0 (the "License"); you may not use
+these files except in compliance with the License. A copy of the License is
+provided in the LICENSE file in this repository.
+
+------------------------------------------------------------------------------
+Modifications in this fork (per Apache License, Version 2.0, Section 4(b)):
+
+  - Image: an optional real `src` now renders an actual <img> element
+    (object-cover), with a placeholder fallback when absent.
+  - Pressable: a clickable container that wraps arbitrary children and emits
+    a `press` event.
+  - Lightbox: a self-contained photo gallery (thumbnail grid + fullscreen
+    overlay with prev/next and keyboard/backdrop close) that manages its own
+    state.
+  - Modal: a self-contained modal whose trigger button and popup are a single
+    component, managing its own state.
+  - Playground: generation routed through the OpenAI-compatible ai.mm.mk
+    gateway.
+
+  Primary changed files:
+    apps/web/lib/render/registry.tsx
+    apps/web/lib/render/catalog.ts
+    apps/web/app/api/generate/route.ts
+------------------------------------------------------------------------------

+ 4 - 0
README.md

@@ -35,6 +35,10 @@ A fork of [vercel-labs/json-render](https://github.com/vercel-labs/json-render)
 
 The generate route is pointed at the OpenAI-compatible **ai.mm.mk** gateway (default model `anthropic/claude-haiku-4.5`) via `AI_API_URL` / `AI_API_KEY` / `AI_GATEWAY_MODEL`.
 
+## License
+
+This is a fork of [vercel-labs/json-render](https://github.com/vercel-labs/json-render), licensed under the **Apache License 2.0** — the same license as upstream. Original work © 2025 Vercel Inc.; fork modifications © 2026 pch007 and contributors. See [`LICENSE`](LICENSE) for the full text and [`NOTICE`](NOTICE) for the attribution and a summary of changes.
+
 ---
 
 # json-render