Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/angry-melons-thank.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@namehash/nameai": patch
---

Rename nameai.dev to nameai.io
8 changes: 4 additions & 4 deletions apps/api.nameai.dev/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
## API
The API extends the NameGuard API and is fully compatible with it.

NameAI-specific endpoints are under the `https://api.nameai.dev` path prefix and
NameGuard-specific endpoints are under the `https://api.nameai.dev/nameguard` path prefix.
NameAI-specific endpoints are under the `https://api.nameai.io` path prefix and
NameGuard-specific endpoints are under the `https://api.nameai.io/nameguard` path prefix.

API documentation is available at [api.nameai.dev/docs](https://api.nameai.dev/docs) for NameAI and [api.nameai.dev/nameguard/docs](https://api.nameai.dev/nameguard/docs) for NameGuard.
API documentation is available at [api.nameai.io/docs](https://api.nameai.io/docs) for NameAI and [api.nameai.io/nameguard/docs](https://api.nameai.io/nameguard/docs) for NameGuard.

Lambda is publicly accessible under given domain [api.nameai.dev](https://api.nameai.dev)
Lambda is publicly accessible under given domain [api.nameai.io](https://api.nameai.io)

## SDK
The NameAI SDK provides a convenient way to interact with the NameAI API in your JavaScript/TypeScript applications. You can find the SDK implementation and documentation at [github.com/namehash/namekit/tree/main/packages/nameai-sdk](https://github.com/namehash/namekit/tree/main/packages/nameai-sdk).
Expand Down
4 changes: 2 additions & 2 deletions apps/api.nameai.dev/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[tool.poetry]
name = "nameai"
version = "0.1.6"
version = "0.1.7"
description = "NameHash NameAI API"
authors = ["NameHash Team <devops@namehash.io>"]
maintainers = ["NameHash Team <devops@namehash.io>"]
homepage = "https://www.nameai.dev/"
homepage = "https://www.nameai.io/"
repository = "https://github.com/namehash/nameai"
readme = "README.md"
license = "LICENSE"
Expand Down
2 changes: 1 addition & 1 deletion apps/nameai.dev/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default function Page() {
</div>
<div className="flex justify-center gap-2">
<Button asChild>
<Link target="_blank" href="https://api.nameai.dev/docs">
<Link target="_blank" href="https://api.nameai.io/docs">
API docs
</Link>
</Button>
Expand Down
2 changes: 1 addition & 1 deletion apps/nameai.dev/app/shared-metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const defaultMetaKeywords = [
"nameai",
];

export const baseUrl = "https://nameai.dev";
export const baseUrl = "https://nameai.io";

export const defaultMetaOpengraph: Metadata["openGraph"] = {
title: {
Expand Down
2 changes: 1 addition & 1 deletion packages/nameai-sdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![NPM Version](https://img.shields.io/npm/v/@namehash/nameai)](https://www.npmjs.com/package/@namehash/nameai)

[NameAI](https://nameai.dev) extends [NameGuard](https://nameguard.io) with sophisticated natural language processing capabilities to help evaluate and understand Ethereum Name Service (ENS) names.
[NameAI](https://nameai.io) extends [NameGuard](https://nameguard.io) with sophisticated natural language processing capabilities to help evaluate and understand Ethereum Name Service (ENS) names.

[NameGuard](https://nameguard.io) is designed to inspect and prevent malicious use of ENS names by providing comprehensive security checks. See the [NameGuard SDK documentation](../nameguard-sdk/README.md) for details about the base security features.

Expand Down
8 changes: 4 additions & 4 deletions packages/nameai-sdk/src/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,17 @@ describe("inspectName edge cases", () => {
describe("NameAI constructor", () => {
it("should ensure endpoint ends with trailing slash", () => {
const client1 = createClient({
nameaiEndpoint: "https://api.nameai.dev/nameai",
nameaiEndpoint: "https://api.nameai.io/nameai",
});
expect(client1["nameaiEndpoint"].href).toBe(
"https://api.nameai.dev/nameai/",
"https://api.nameai.io/nameai/",
);

const client2 = createClient({
nameaiEndpoint: "https://api.nameai.dev/nameai/",
nameaiEndpoint: "https://api.nameai.io/nameai/",
});
expect(client2["nameaiEndpoint"].href).toBe(
"https://api.nameai.dev/nameai/",
"https://api.nameai.io/nameai/",
);
});
});