### Initialize Yasunori API Development Environment with pnpm Source: https://github.com/times-yasunori/awesome-yasunori/blob/main/packages/api/README.md Commands to set up the local development environment for Yasunori APIs. This includes installing project dependencies, generating the `awesome-yasunori.json` file from `yasunori.toml`, and starting the development server. Remember to re-run `pnpm generate:json` after updating `yasunori.toml` to reflect changes. ```Shell $ pnpm install $ pnpm generate:json $ pnpm run dev ``` -------------------------------- ### Start Development Server Source: https://github.com/times-yasunori/awesome-yasunori/blob/main/packages/cljs-yasunori-block/README.md Executes the 'make dev' command to start the local development server for the cljs-yasunori-block project, enabling live development and testing. ```bash make dev ``` -------------------------------- ### Build and Start Wrangler Locally Source: https://github.com/times-yasunori/awesome-yasunori/blob/main/packages/web/README.md Builds the application for production and then starts the Wrangler server. This is used for local testing of Cloudflare Workers and Pages projects. ```sh npm run build npm run start ``` -------------------------------- ### Clone Repository and Install Dependencies for MCP Server Source: https://github.com/times-yasunori/awesome-yasunori/blob/main/packages/mcp/README.md This bash script outlines the initial steps to build the MCP server from source: cloning the Git repository, navigating into the project directory, and installing necessary dependencies using `pnpm`. ```bash git clone https://github.com/times-yasunori/awesome-yasunori.git cd awesome-yasunori pnpm install cd packages/mcp ``` -------------------------------- ### Run Clojure Yasunori Application Source: https://github.com/times-yasunori/awesome-yasunori/blob/main/packages/clojure-yasunori/README.md Demonstrates how to run the Clojure `yasunori` application from the command line using `clj` and retrieve an entry by ID. Includes example output. ```bash $ clj -A:dev -M -m yasunori.core 19 id: 19 date: '2024-09-26' at: 'vim-jp #times-yasunori' senpan: takeokunn meta: | Inspired by [ルイズコピペ](https://dic.pixiv.net/a/%E3%83%AB%E3%82%A4%E3%82%BA%E3%82%B3%E3%83%94%E3%83%9A) yasunori!yasunori!yasunori!yasunoriぅぅうううわぁああああああああああああああああああああああん!!! あぁああああ…ああ…あっあっー!あぁああああああ!!!yasunoriyasunoriyasunoriぅううぁわぁああああ!!! あぁクンカクンカ!クンカクンカ!スーハースーハー!スーハースーハー!いい匂いだなぁ…くんくん んはぁっ!yasunoriたんの黒髪ショートの髪をクンカクンカしたいお!クンカクンカ!あぁあ!! 間違えた!モフモフしたいお!モフモフ!モフモフ!髪髪モフモフ!カリカリモフモフ…きゅんきゅんきゅい!! vim-jpのyasunoriたんかわいかったよぅ!!あぁぁああ…あああ…あっあぁああああ!!ふぁぁあああんんっ!! OS削除されて良かったねyasunoriたん!あぁあああああ!かわいい!yasunoriたん!かわいい!あっああぁああ! awesome-yasunoriも出来て嬉し…いやぁああああああ!!!にゃああああああああん!!ぎゃああああああああ!! ぐあああああああああああ!!!vim-jpなんて現実じゃない!!!!あ…twitterもよく考えたら… y a s u n o r i ち ゃ ん は 現実 じ ゃ な い?にゃあああああああああああああん!!うぁああああああああああ!! そんなぁああああああ!!いやぁぁぁあああああああああ!!はぁああああああん!!vim-jpぁああああ!! この!ちきしょー!やめてやる!!現実なんかやめ…て…え!?見…てる?vim-jpのyasunoriちゃんが僕を見てる? vim-jpのyasunoriちゃんが僕を見てるぞ!yasunoriちゃんが僕を見てるぞ!vim-jpのyasunoriちゃんが僕を見てるぞ!! vim-jpのyasunoriちゃんが僕に話しかけてるぞ!!!よかった…世の中まだまだ捨てたモンじゃないんだねっ! いやっほぉおおおおおおお!!!僕にはyasunoriちゃんがいる!!やったよnatsukium!!ひとりでできるもん!!! あ、vim-jpのyasunoriちゃああああああああああああああん!!いやぁあああああああああああああああ!!!! あっあんああっああんあアリスエ様ぁあ!!k、kuuー!!こまもかぁああああああ!!!tomoyaァぁあああ!! ううっうぅうう!!俺の想いよyasunoriへ届け!!vim-jpのyasunoriへ届け! ``` -------------------------------- ### Build Clojure Uberjar Source: https://github.com/times-yasunori/awesome-yasunori/blob/main/packages/clojure-yasunori/README.md Instructions to build a standalone JAR (uberjar) for the Clojure application using `make build`. Includes an example of running the compiled JAR. ```bash $ make build $ java -jar target/yasunori-standalone.jar 1 id: 1 date: '2024-06-25' at: vim-jp radioお便り senpan: takeokunn meta: '' tomoyaさん、ありすえさんこんにちは。 はじめまして、yasunoriの母です。 yasunoriがソフトウェアエンジニアを志してから様子がおかしくなってしまいました。 家ですれ違う時「Vim....Vim....」という独り言をずっと唱えていたり、部屋からは「設定させていただきありがとうございます!!」という大声が聞こえてきたり, 「会合があるから東京に行ってくる、帰りは遅くなる」と言い残して出て行き、帰ってくると満面の笑みで「Vimはいいぞ」と一言言って自室に篭るようになりました. tomoyaさんありすえさんもVimコミュニティの人達だと伺いましたが、息子の身に一体何が起きてしまったのか教えていただけると幸いです. ``` -------------------------------- ### Build Clojure Native Executable with GraalVM Source: https://github.com/times-yasunori/awesome-yasunori/blob/main/packages/clojure-yasunori/README.md Instructions to build a native executable for the Clojure application using `make build.native` and GraalVM. Includes an example of running the compiled native binary. ```bash $ make build.native $ time ./target/yasunori 1 id: 1 date: '2024-06-25' at: vim-jp radioお便り senpan: takeokunn meta: '' tomoyaさん、ありすえさんこんにちは。 はじめまして、yasunoriの母です。 yasunoriがソフトウェアエンジニアを志してから様子がおかしくなってしまいました。 家ですれ違う時「Vim....Vim....」という独り言をずっと唱えていたり、部屋からは「設定させていただきありがとうございます!!」という大声が聞こえてきたり, 「会合があるから東京に行ってくる、帰りは遅くなる」と言い残して出て行き、帰ってくると満面の笑みで「Vimはいいぞ」と一言言って自室に篭るようになりました. tomoyaさんありすえさんもVimコミュニティの人達だと伺いましたが、息子の身に一体何が起きてしまったのか教えていただけると幸いです. ``` -------------------------------- ### Run Development Server (npm) Source: https://github.com/times-yasunori/awesome-yasunori/blob/main/packages/web/README.md Starts the local development server for the Awesome Yasunori web application. This command is typically used during active development to preview changes. ```sh npm run dev ``` -------------------------------- ### Run Development Server for Awesome Yasunori Image Generator Source: https://github.com/times-yasunori/awesome-yasunori/blob/main/packages/image-generator/REAME.md Command to start the local development server for the Awesome Yasunori Image Generator application, enabling local testing and development. ```sh npm run dev ``` -------------------------------- ### Yasunori API: Get Random Entry Source: https://github.com/times-yasunori/awesome-yasunori/blob/main/packages/clojure-yasunori/README.md Documents the API endpoint to retrieve a random yasunori entry. ```APIDOC API: https://api.yasunori.dev/awesome/random ``` -------------------------------- ### Yasunori API: Get Entry by ID Source: https://github.com/times-yasunori/awesome-yasunori/blob/main/packages/clojure-yasunori/README.md Documents the API endpoint to retrieve a specific yasunori entry by its ID. ```APIDOC API: https://api.yasunori.dev/awesome/{id} ``` -------------------------------- ### Access Yasunori API `awesome` Endpoint with cURL Source: https://github.com/times-yasunori/awesome-yasunori/blob/main/packages/api/README.md Demonstrates how to make a GET request to the `/awesome` endpoint of the Yasunori API using the `curl` command-line tool. This endpoint provides data from a curated list related to yasunori0418. ```Shell curl https://api.yasunori.dev/awesome ``` -------------------------------- ### Building the go-yasunori Executable Source: https://github.com/times-yasunori/awesome-yasunori/blob/main/packages/go-yasunori/README.md Demonstrates the commands to compile the Go project into an executable binary and then run it with an ID argument. Includes the expected output. ```bash $ go build $ ./go-yasunori 1 id: 1 date: 2024-06-25 at: vim-jp radioお便り senpan: takeokunn meta: ``` -------------------------------- ### Build Yasunori.NET Project for Release Source: https://github.com/times-yasunori/awesome-yasunori/blob/main/packages/Yasunori.NET/README.md Provides the command-line instruction to compile and build the Yasunori.NET project. The command specifies building in 'Release' configuration for optimized output. ```bash dotnet build -p:Configuration=Release ``` -------------------------------- ### Performance Benchmark for Compiled Binary Source: https://github.com/times-yasunori/awesome-yasunori/blob/main/packages/go-yasunori/README.md Shows the execution time metrics for running the compiled `yasunori` executable, demonstrating significantly improved performance compared to `go run`. ```bash $ ./go-yasunori 1 real 0m0.200s user 0m0.000s sys 0m0.000s ``` -------------------------------- ### Basic yasunori CLI Syntax Source: https://github.com/times-yasunori/awesome-yasunori/blob/main/packages/go-yasunori/README.md Demonstrates the command-line syntax for the `yasunori` tool, including options for showing random entries, listing all entries, or retrieving a specific entry by ID. ```bash yasunori yasunori -list yasunori id [id...] ``` -------------------------------- ### Performance Benchmark for go run Source: https://github.com/times-yasunori/awesome-yasunori/blob/main/packages/go-yasunori/README.md Shows the execution time metrics for running the `yasunori` tool directly using `go run`, indicating the overhead of the Go runtime. ```bash $ go run . 1 real 0m0.760s user 0m0.220s sys 0m0.360s ``` -------------------------------- ### Configure MCP Client to Use Latest Version from pkg.pr.new Source: https://github.com/times-yasunori/awesome-yasunori/blob/main/packages/mcp/README.md This JSON configuration snippet shows how to set up your MCP client to use the latest version of the 'awesome-yasunori' server by fetching it directly from `pkg.pr.new` using `npx`. ```json { "mcpServers": { "awesome-yasunori": { "command": "npx", "args": [ "-y", "https://pkg.pr.new/times-yasunori/awesome-yasunori/mcp@180" // you can check the latest version on pkg.pr.new ] } } } ``` -------------------------------- ### Yasunori CLI Command Syntax Overview Source: https://github.com/times-yasunori/awesome-yasunori/blob/main/packages/Yasunori.NET/README.md This section outlines the various command-line arguments and options available for the Yasunori tool. It demonstrates how to use the tool to list entries, retrieve images, or access specific entries by ID. ```CLI Syntax Yasunori Yasunori {-l | --list} Yasunori {-i | --image} Yasunori id [id...] Yasunori {-i | --image} id [id...] ``` -------------------------------- ### Build Application for Production (npm) Source: https://github.com/times-yasunori/awesome-yasunori/blob/main/packages/web/README.md Compiles and bundles the application for production deployment. This step is a prerequisite before deploying the application to Cloudflare Pages. ```sh npm run build ``` -------------------------------- ### Clojure Yasunori Command Line Syntax Source: https://github.com/times-yasunori/awesome-yasunori/blob/main/packages/clojure-yasunori/README.md Explains the basic command-line usage of the `yasunori` tool, including options for listing entries and retrieving specific entries by ID. ```bash yasunori yasunori -list yasunori id [id...] ``` -------------------------------- ### Deploy Yasunori APIs to Cloudflare Pages Source: https://github.com/times-yasunori/awesome-yasunori/blob/main/packages/api/README.md Command to initiate the deployment process for the Yasunori APIs. The application is deployed to Cloudflare Pages, leveraging Wrangler for the deployment workflow. ```Shell $ pnpm run deploy ``` -------------------------------- ### Build Project and Serve Statically Source: https://github.com/times-yasunori/awesome-yasunori/blob/main/packages/cljs-yasunori-block/README.md First, runs 'make yasunori' to compile and build the project. Afterwards, it uses Python's built-in HTTP server to serve the compiled output from the 'dist/public' directory, allowing for local testing of the production build. ```bash make yasunori python -m http.server -d dist/public ``` -------------------------------- ### Running yasunori CLI with ID Argument Source: https://github.com/times-yasunori/awesome-yasunori/blob/main/packages/go-yasunori/README.md Shows how to execute the `yasunori` command-line tool using `go run` to fetch a specific entry by its ID (e.g., ID 19). Includes the expected output format. ```bash $ go run . 19 id: 19 date: 2024-09-26 at: vim-jp #times-yasunori senpan: takeokunn meta: Inspired by [ルイズコピペ](https://dic.pixiv.net/a/%E3%83%AB%E3%82%A4%E3%82%BA%E3%82%B3%E3%83%94%E3%83%9A) ``` -------------------------------- ### Deploy Application to Cloudflare Pages (npm) Source: https://github.com/times-yasunori/awesome-yasunori/blob/main/packages/web/README.md Deploys the built application to Cloudflare Pages. This command pushes the production-ready build to the hosting platform. ```sh npm run deploy ``` -------------------------------- ### Build Awesome Yasunori Image Generator for Production Source: https://github.com/times-yasunori/awesome-yasunori/blob/main/packages/image-generator/REAME.md Command to build the Awesome Yasunori Image Generator application, preparing it for production deployment by optimizing and compiling assets. ```sh npm run build ``` -------------------------------- ### Performance: Clojure Uberjar Execution Source: https://github.com/times-yasunori/awesome-yasunori/blob/main/packages/clojure-yasunori/README.md Shows the performance metrics for running the Clojure application from its standalone uberjar, noting its speed improvement over direct `clj` execution. ```bash $ time java -jar target/yasunori-standalone.jar 1 real 0m1.621s user 0m2.474s sys 0m0.190s ``` -------------------------------- ### Configure MCP Client to Use Locally Built Server Source: https://github.com/times-yasunori/awesome-yasunori/blob/main/packages/mcp/README.md This JSON configuration snippet demonstrates how to register a locally built 'awesome-yasunori' MCP server with your client, specifying the absolute path to the compiled `index.mjs` file. ```json { "mcpServers": { "awesome-yasunori": { "command": "node", "args": [ "/Absolute/Path/Of/times-yasunori/awesome-yasunori/packages/mcp/dist/index.mjs" ] } } } ``` -------------------------------- ### Performance: Clojure CLI Execution Source: https://github.com/times-yasunori/awesome-yasunori/blob/main/packages/clojure-yasunori/README.md Shows the performance metrics for running the Clojure application directly via `clj`. ```bash $ time clj -A:dev -M -m yasunori.core 1 real 0m3.208s user 0m6.061s sys 0m0.317s ``` -------------------------------- ### Deploy Awesome Yasunori Image Generator to Cloudflare Pages Source: https://github.com/times-yasunori/awesome-yasunori/blob/main/packages/image-generator/REAME.md Command to deploy the built Awesome Yasunori Image Generator application to Cloudflare Pages, making it accessible online. ```sh npm run deploy ``` -------------------------------- ### Performance: Clojure Native Executable Execution Source: https://github.com/times-yasunori/awesome-yasunori/blob/main/packages/clojure-yasunori/README.md Shows the performance metrics for running the Clojure application as a native executable built with GraalVM, highlighting its significant speed improvement. ```bash $ time ./target/yasunori 1 real 0m0.181s user 0m0.030s sys 0m0.022s ``` -------------------------------- ### Build MCP Server from Source Source: https://github.com/times-yasunori/awesome-yasunori/blob/main/packages/mcp/README.md This command compiles the MCP server source code. After execution, the built server will be located in `packages/mcp/dist/index.mjs`. ```bash pnpm build ``` -------------------------------- ### Yasunori API: List All Entries Source: https://github.com/times-yasunori/awesome-yasunori/blob/main/packages/clojure-yasunori/README.md Documents the API endpoint to retrieve all yasunori entries. ```APIDOC API: https://api.yasunori.dev/awesome ``` -------------------------------- ### Yasunori API: List All Yasunori Entries Source: https://github.com/times-yasunori/awesome-yasunori/blob/main/packages/Yasunori.NET/README.md Details the API endpoint used to retrieve a comprehensive list of all available Yasunori entries. This corresponds to the -l or --list command-line option. ```APIDOC API: https://api.yasunori.dev/awesome ``` -------------------------------- ### Yasunori API: Retrieve Random Entry and OGP Image Source: https://github.com/times-yasunori/awesome-yasunori/blob/main/packages/Yasunori.NET/README.md Describes the API endpoints for fetching a random Yasunori entry and its corresponding Open Graph Protocol (OGP) image. These endpoints do not require any specific arguments. ```APIDOC API: https://api.yasunori.dev/awesome/random Image: https://image.yasunori.dev/ogp ``` -------------------------------- ### Run Yasunori API Development Utility Scripts Source: https://github.com/times-yasunori/awesome-yasunori/blob/main/packages/api/README.md Provides a set of common utility commands for maintaining code quality and ensuring correctness during Yasunori API development. These commands facilitate running tests, performing type checks, linting code, and formatting files. ```Shell $ pnpm test # Run tests $ pnpm typecheck # Run type checking $ pnpm lint # Run linting $ pnpm format # Run formatting ``` -------------------------------- ### Yasunori API: Retrieve Specific Entry and OGP Image by ID Source: https://github.com/times-yasunori/awesome-yasunori/blob/main/packages/Yasunori.NET/README.md Explains the API endpoints for accessing a specific Yasunori entry and its OGP image using a unique ID number. The {id} placeholder should be replaced with the desired entry's identifier. ```APIDOC API: https://api.yasunori.dev/awesome/{id} Image: https://image.yasunori.dev/ogp?id={id} ``` -------------------------------- ### API Endpoint for Listing yasunori Entries Source: https://github.com/times-yasunori/awesome-yasunori/blob/main/packages/go-yasunori/README.md Documents the API endpoint used to retrieve a list of all yasunori entries. ```APIDOC GET https://api.yasunori.dev/awesome Description: Fetches a list of all yasunori entries. Parameters: None ``` -------------------------------- ### API Endpoint for Random yasunori Entry Source: https://github.com/times-yasunori/awesome-yasunori/blob/main/packages/go-yasunori/README.md Documents the API endpoint used to fetch a random yasunori entry. This endpoint requires no arguments. ```APIDOC GET https://api.yasunori.dev/awesome/random Description: Fetches a random yasunori entry. Parameters: None ``` -------------------------------- ### Generate Types for Cloudflare Bindings (Typegen) Source: https://github.com/times-yasunori/awesome-yasunori/blob/main/packages/web/README.md Generates TypeScript types for Cloudflare bindings defined in `wrangler.toml`. Rerun this command whenever `wrangler.toml` changes to ensure type safety. ```sh npm run typegen ``` -------------------------------- ### Retrieve Awesome Yasunori Image by Specific ID Source: https://github.com/times-yasunori/awesome-yasunori/blob/main/packages/image-generator/REAME.md Demonstrates how to retrieve an image of Awesome Yasunori by sending a request with a specific ID as a query parameter. ```URL https://image.yasunori.dev/ogp?id=1 ``` -------------------------------- ### API Endpoint for Specific yasunori Entry by ID Source: https://github.com/times-yasunori/awesome-yasunori/blob/main/packages/go-yasunori/README.md Documents the API endpoint used to fetch a specific yasunori entry by its ID number. ```APIDOC GET https://api.yasunori.dev/awesome/{id} Description: Fetches a specific yasunori entry by its ID. Parameters: id (integer): The ID number of the yasunori entry to retrieve. ``` -------------------------------- ### Retrieve Random Awesome Yasunori Image Source: https://github.com/times-yasunori/awesome-yasunori/blob/main/packages/image-generator/REAME.md Shows how to retrieve a randomly selected image of Awesome Yasunori when no query parameters are provided in the request. ```URL https://image.yasunori.dev/ogp ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.